Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - basic sudoku solver

Author
Message
noobnerd
12
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 4th Jan 2012 21:38 Edited at: 19th Mar 2013 21:40
hey!

(like most of my snippets this one uses the a2plugin but its not necessary )
i made this litle piece of code just for fun, it is a basic sudokusolver, not that good so it wont solve anything very advanced...

it will solve the "haastava" sudokus from this site
http://alypaa.com/sudoku

and any harder ones it will fill partly.

there might be an easier way to do this but this is the way i didi it

use the numberkeys to select numbers and then place them with the mouse(click)

press enter(return) to unselect numbers
when you are ready, press space to start solving

if you press space at the start it will solve simultaneously as you fill in numbers, this can lead to false results

i think the fun thing with this one is that it only uses logic, so no iteration

Attachments

Login to view attachments
Rapidrory
13
Years of Service
User Offline
Joined: 21st Aug 2009
Location:
Posted: 3rd Feb 2012 22:28
Nice little program there, worked fine on the two i tried.

noobnerd
12
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 4th Feb 2012 21:49
thanks!

Login to post a reply

Server time is: 2022-12-01 12:33:24
Your offset time is: 2022-12-01 12:33:24