forked from austinsmorris/sudoku-solver-php
-
Notifications
You must be signed in to change notification settings - Fork 0
b3nnee/sudoku-solver-php
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a sudoku solver class for php based on the solution by Peter Norvig (http://norvig.com/sudoku.html). To use the class, simply instantiate a Sudoku object: $sudoku = new Sudoku(); Then, just pass a puzzle string to the solve() method: $sudoku->solve($puzzle); You can simply echo this output or manipulate the string for other formatting. The puzzle itself should be a string of initial values for each square read right to left, top to bottom, starting in the upper left. For blank squares, use a zero, period, underscore, or hyphen. An example puzzlem implementation is located in the puzzle.php file in the example folder. Enjoy!
About
A sudoku solver in php mostly based on Norvig's solution.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published