Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 974 Bytes

File metadata and controls

32 lines (17 loc) · 974 Bytes

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]