0
Can someone help with an algorithm to solve the 8-queens problem using Java
School work
3 Respostas
0
the algorithm should start by placing a queen somewhere then the algorithm should go trow all queens and look which places on the board are ok to place a queen.
Then it should place one queen on the ok spots.
if the algorithm fails to place 8 queens all queens are removed and the starting position oft the first queen is changed.
helps?
0
use maybe an arraylist
0
good luck Frigate !