Skip to content

syatsuzuka/sample_nqueen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample code for Neural Network

This is a sample code to solve N Queen Puzzle using neural network. You can read Wikipedia - Eight Queens Puzzle to know what N Queen Puzzle is. Here, I also included the calculation result not for 8 queens puzzle, but 100 queens puzzle, and you can see the demo from Youtube.

In order to compile GUI edition, you need to install X11 library.

Prerequisite

  • Install gcc
  • Install X11 (for GUI edition)

How To Use

Step.1) Get source code.

$ git clone https://github.com/syatsuzuka/sample_nqueen.git

Step.2) Compile source code to create executable.

$ cd sample_nqueen/src

$ make

If you don't need GUI edition, you can execute the following command to create only CUI edition.

$ make cui_main

Step.3) Run the executable file.

$ ./cui_main <Matrix Size> [Seed Number for rand]

$ ./gui_main <Matrix Size> [Seed Number for rand]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published