Posts

8 QUEENS program using the JAVA

8 QUEENS program using the JAVA What is 8 queens game    :       Every one knows how to play the chess in that most power full, dangerous and second most tallest piece in the chess board.       And know you have to keep the 8 queens in the chess board so that non of the queen can kill the other one. There is a probability that you can keep only 6, 7 and 8 of them maximum number of placing the queens is 8.  And u can see the code bellow.     Bellow photo will be the actual output and when you gave the in put between 1 to 64 it will convert in to the rows and columns of the the chess board and replace the number that you gave as "8" and powers of the queen (All the vertical, horizontal and the diagonal rows will be placed with the "1")    Code starts from here package com.company; import sun.awt.geom.AreaOp; import java.sql.SQLOutput; import java.util.Scanner; public cl...
Recent posts