Instructions for Running JGAP Sudoku Solver
To download and run SudokuSolver, following these instructions:
- Download the jgap compressed tar archive: jgap.tar.Z
- Create a directory on your Linux account named sudoku and put the tar archive there.
- Uncompress the archive: uncompress jgap.tar.Z
- Extract the files from the archive: tar xvf jgap.tar
- This will create a directory named jgap containing all the JGAP files, including the Sudoku example. The Sudoku example is located in: jgap/examples/src/examples/.
- To compile all the Sudoku files, use the following command from the jgap directory:
javac -classpath jgap-examples.jar:jgap.jar:classes -d classes examples/src/examples/Sudoku*.java
- To run the SudokuSolver on the problem we were trying in class, use on a single command line:
java -Xmx500M -classpath jgap-examples.jar:jgap.jar:classes examples.SudokuSolver 9:1=2,3=1,4=9,7=3,20=5,23=8,24=4,25=7,29=2,32=3,34=1,38=8,39=6,41=9,42=3,46=3,48=7,51=5,55=8,56=1,57=4,60=6,73=4,76=6,77=7,79=8