The program try all possibility, and count the ones that follows the laws of the problem.
More informations can be found here.
On Ubuntu / Debian :
sudo apt install make gccOn Archlinux :
sudo pacman -S install make gccClone the repository :
git clone https://github.com/Liloche19/nqueen.git
cd nqueenThen, compile the project :
make(OPTIONAL) :
After use, you can remove all binary files (object), by running the following command :
make cleanYou can also remove the executable file by running the following command :
make fclean./nqueen sizeThe outpout will look like this :
SIZE : [number], SOLUTIONS : [number]If you have any proposition, you can contact me. I will be happy to improve this projet.