473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Sudoko solver

Hi all,

I wonder if somebody had a Sudoko solver written in Python ?

Rony
Jul 4 '06 #1
8 2534
Rony Steelandt wrote:
I wonder if somebody had a Sudoko solver written in Python ?
http://www.google.com/search?q=python+soduko returns some 15000 hits,
including this little gem:

http://norvig.com/sudoku.html

</F>

Jul 4 '06 #2
I have one myself (~400 records). it uses the simplest rules, and then trial
and error, but it works so far.
--
Ángel Gutiérrez Rodr*guez - ag*@fq.uniovi.es
Instituto de Ciencia de los Materiales de Madrid - CSIC
SpLine - European Syncrothorn Radiation Facility - Grenoble - France

Postal adress: Departamento de Qu*mica F*sica y Anal*tica
Universidad de Oviedo - c/Julián Claver*a 8 33006 - Oviedo
Asturias - Spain
E-mail: ag*@fq.uniovi.es Telf.: +34-985103687
Jul 4 '06 #3
Rony Steelandt wrote:
Hi all,

I wonder if somebody had a Sudoko solver written in Python ?

Rony
Dude, there's like a million of them. Try "Sudoko solver Python" in
google.

I wrote one myself based on Knuth's Dancing Links algorithm and using
Tkinter for the gui. I'll send it to you or post it here if you really
want. But try google first. ;-) there are certainly bound to be
better ones out there.
~Simon

Jul 4 '06 #4

"Sybren Stuvel" <sy*******@YOURthirdtower.com.imaginationa crit dans le
message de news: sl**********************@schuimige.stuvel.eu...
Rony Steelandt enlightened us with:
>I wonder if somebody had a Sudoko solver written in Python ?

Check out http://www.stuvel.eu/sodoku - it is a Sudoku game with the
ability to solve & create new puzzles.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
yes thanks Sybren, I just found yours.
looks good and I have wx installed

@to others,
sorry for the question, you where right, google had the answer
thanks

rony
Jul 4 '06 #5

"Sybren Stuvel" <sy*******@YOURthirdtower.com.imaginationa crit dans le
message de news: sl**********************@schuimige.stuvel.eu...
Rony Steelandt enlightened us with:
>I wonder if somebody had a Sudoko solver written in Python ?

Check out http://www.stuvel.eu/sodoku - it is a Sudoku game with the
ability to solve & create new puzzles.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
it looks like both zip files are corrupted (for windows platform)?
I managed to install from source so not a big problem, but it would be nice
to have the puzzle pack

Rony
Jul 4 '06 #6

"Sybren Stuvel" <sy*******@YOURthirdtower.com.imaginationa crit dans le
message de news: sl**********************@schuimige.stuvel.eu...
Rony Steelandt enlightened us with:
>it looks like both zip files are corrupted (for windows platform)?

Can you tell me more? So far I can only tell you that they work just
fine for me, and 'unzip -t puzzlepack*.zip' tells me the ZIP is fine.
This is on Linux.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Yes, this is on windows using winzip
It says the zip file is not a valid zipfile

Could you send your zip directly to me by mail ? bucodi (at) yahoo (dot) fr
Rony
Jul 4 '06 #7
Rony Steelandt wrote:
Yes, this is on windows using winzip
It says the zip file is not a valid zipfile
make sure you save it to disk before opening it.

</F>

Jul 4 '06 #8
In article <44*********************@news.orange.fr>, Rony Steelandt wrote:
Yes, this is on windows using winzip
It says the zip file is not a valid zipfile
Works fine for me on Windows. Try deleting the file you downloaded,
clearing your browser cache, and trying again.

On the other hand, when you run it it immediately pops up a huge
dialog saying that there is a new version available, "404 File Not
Found", and a huge pile of HTML source. The game itself seems to work
though.
Jul 4 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Aaron | last post by:
I am trying to write a Python script file which analyses data in an iterative manner. During each iteration, I wish to utilise the Solver function in Excel to perform some constrained, non-linear...
0
by: Josh Golden | last post by:
has anyone every used the solver add-in for Excel? it allows you to solve linear and non-linear problems given certain conditions. I was wondering if something like this exists already in .NET? ...
3
by: Mr.Doubt | last post by:
I'm trying to run a Excel macro, which uses SOLVER.XLA Add-In, in VB.NET application. When the macro is executed I get the following error message "Solver: An unexpected internal error occured,...
11
by: ago | last post by:
Inspired by some recent readings on LinuxJournal and an ASPN recipe, I decided to revamp my old python hack... The new code is a combination of (2) reduction methods and brute force and it is quite...
0
by: engsolnorm | last post by:
A co-worker and I want to increase our knowledge of Python. I have a tiny bit of exposure to python. He has none, but has wide experience with C, C++, NET, C#, etc. We agreed we'd do a Sudoku...
7
by: Holger Fitschen | last post by:
Hi to all, I want to use the Excel solver in a VB.Net project. The macro Sub Makro1Solver() Application.Run "Solver.xla!Auto_Open" SolverReset Worksheets(1).Select...
3
by: akristensen | last post by:
I am new to this site, so be patient if I do not ask the question correctly. Current Target Platform: Browser: MS IE, script language: Javascript (will use VBScript, but JS is preferred), External...
9
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
1
Thekid
by: Thekid | last post by:
Hi, I found this sudoku solver online and it works good but I was wondering how I could get the answer that's in matrix form, to also print out in a single comma-delimited line, instead of 9 rows of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.