Re: A Sudoku solver in Tcl
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: A Sudoku solver in Tcl

From: Kaitzschu <kaitzschu@kaitzschu.cjb.net.nospam.plz.invalid>
Date: Sat Dec 03 2005 - 04:42:45 CET

On Sat, 3 Dec 2005, Frank Ranner wrote:

> Bernard Desgraupes wrote:
> What I would like is a sudoku widget that I could use to solve puzzles
> myself. You would start with a grid, add the given numbers and then be
> able to enter numbers as you deduce them. Some form of 'pencilling'
> potential numbers would be nice.
>
> For the desperate, a 'hint' button and a 'I give up - solve the bloody
> thing' button would be cool.
>
> Any takers?

I have one .) But it is ugly, can't verify the puzzle, pencils potentials
(after box-line-row reduction) by itself, doesn't allow you to take back
your moves, and is incompatible with parameter format the solver takes.

So it is nothing to be proud of, but it is a nice toy for personal use
when I solve 16x16 sudokus, hand-pencilling got very, very frustrating :)
And it isn't really that hard to write up, try it (if you have spare time
an hour or three).

Those 'hint' and 'solve' would need incorporating some code from solver.
Maybe if this wasn't so ugly... Although I kind of like the way the grid
gets smaller and smaller when candidates lessen.

-- 
-Kaitzschu
s="TCL ";while true;do echo -en "\r$s";s=${s:1:${#s}}${s:0:1};sleep .1;done
Received on Sun Dec 11 13:53:18 2005