Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nqueen - C

A program that solves the nqueen problem in C

The program try all possibility, and count the ones that follows the laws of the problem.

More informations can be found here.

🛠️ Installation

Make sure to have the necessary dependencies :

On Ubuntu / Debian :

sudo apt install make gcc

On Archlinux :

sudo pacman -S install make gcc

This is how to install the project :

Clone the repository :

git clone https://github.com/Liloche19/nqueen.git
cd nqueen

Then, compile the project :

make

(OPTIONAL) :

After use, you can remove all binary files (object), by running the following command :

make clean

You can also remove the executable file by running the following command :

make fclean

This is how to launch the project :

./nqueen size

The outpout will look like this :

SIZE : [number], SOLUTIONS : [number]

Contribution

If you have any proposition, you can contact me. I will be happy to improve this projet.

About

A C program that solve the n queen problem

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages