| garytay
| Joined: 19 Oct 2005 | Posts: 1 | : | | Items |
|
Posted: Wed Oct 19, 2005 8:15 am Post subject: My sudoku helper |
|
|
I read abt this interesting puzzle a week back and thought i could try to implement a helper to figure out simple stuff like Sole candidates.
Still in the infancy stages this puzzle helper takes the view from the cell view.
http://www.garytay.net/soduku.php
Written in PHP.
I used OOP and the theory that closely resembles how humans analyse the soduku puzzle.
The class contains the puzzle and has a function to grab individual cells and the analysis "Row/Col/Region" is done and returned in a array that is further analyse in a Row/Col/Region way.
In short ->
A human looks at cell X and figures out the candidates of this cell.
All the possibilities are shown on the right grid (after u submit the puzzle).
No brute force Attack/guesswork included nor the advance puzzle solving techniques yet until i could figure em out.
PS : No "protection" for mis-inputs are coded in... just a simple tryout on this wonderful game. |
|