| View previous topic :: View next topic |
| Author |
Message |
Icos Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 524
|
Posted: Wed Jun 20, 2007 3:57 am Post subject: Brute-force Sudoku Solver |
|
|
Attached is a brute-force Sudoku solver I made back then in 2006 when I was doing an examination project on Sudoku. It uses a very simple trial-and-error method to find the solution. Note that it only gives the first solution it has found. I also included a check to see if the "solution" is valid or not. Read the instructions to see more about it. I have included a sample puzzle in the archive for you guys to try it out.
=] Have fun.
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jun 20, 2007 4:03 am Post subject: |
|
|
| It's wiser to find first some numbers that are 100% correct, and then brute-force on the non-full squares
|
|
| Back to top |
|
 |
Icos Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 524
|
Posted: Wed Jun 20, 2007 4:18 am Post subject: |
|
|
| If you find numbers that are 100% correct, that wouldn't be brute-force, isnt it? I would call that partially logical then.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jun 20, 2007 8:01 am Post subject: |
|
|
Uh, this is useless. Because you can't choose which kind of sodoku you have.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jun 20, 2007 8:19 am Post subject: |
|
|
| Yes, you can.
|
|
| Back to top |
|
 |
Icos Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 524
|
Posted: Wed Jun 20, 2007 8:23 am Post subject: |
|
|
| oib111 wrote: | | Uh, this is useless. Because you can't choose which kind of sodoku you have. |
Did you even read the instructions?
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jun 20, 2007 8:24 am Post subject: |
|
|
Oops. Sorry. Got it!
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|