Sudoku

2013-03-26 Thread Eric Parry
I downloaded the following program from somewhere using a link from Wikipedia and inserted the “most difficult Sudoku puzzle ever” string into it and ran it. It worked fine and solved the puzzle in about 4 seconds. However I cannot understand how it works. It seems to go backwards and forwards

Re: Sudoku

2013-03-27 Thread Eric Parry
Thank you all for your help and suggestions. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Sudoku

2013-03-27 Thread Eric Parry
On Wednesday, March 27, 2013 6:28:01 PM UTC+10:30, Ulrich Eckhardt wrote: Am 27.03.2013 06:44, schrieb Eric Parry: I downloaded the following program from somewhere using a link from Wikipedia and inserted the “most difficult Sudoku puzzle ever” string into it and ran it. It worked

Re: Sudoku

2013-03-28 Thread Eric Parry
On Thursday, March 28, 2013 3:06:02 PM UTC+10:30, Dave Angel wrote: On 03/27/2013 11:00 PM, Eric Parry wrote: On Wednesday, March 27, 2013 6:28:01 PM UTC+10:30, Ulrich Eckhardt wrote: SNIP the double-spaced garbage that GoogleGroups put in - see http://wiki.python.org/moin

Re: Sudoku

2013-03-28 Thread Eric Parry
On Friday, March 29, 2013 9:58:27 AM UTC+10:30, Dave Angel wrote: On 03/28/2013 06:11 PM, Eric Parry wrote: On Thursday, March 28, 2013 3:06:02 PM UTC+10:30, Dave Angel wrote: SNIP Are you familiar with recursion? Notice the last line in the function r() calls

Re: Sudoku

2013-03-29 Thread Eric Parry
On Friday, March 29, 2013 9:15:36 AM UTC+10:30, Chris Angelico wrote: On Fri, Mar 29, 2013 at 9:11 AM, Eric Parry joan4e...@gmail.com wrote: Thank you for that explanation. No, I do not understand recursion. It is missing from my Python manual. I would be pleased to receive further

Re: Sudoku

2013-03-30 Thread Eric Parry
On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote: On 03/29/2013 05:47 PM, Eric Parry wrote: SNIP That explains why the program keeps running after a solution is found. A recursive function can be designed to find all solutions, in which case it would

Re: Sudoku

2013-03-31 Thread Eric Parry
On Sunday, March 31, 2013 9:45:36 AM UTC+10:30, Dave Angel wrote: On 03/30/2013 06:06 PM, Eric Parry wrote: On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote: On 03/29/2013 05:47 PM, Eric Parry wrote: SNIP Sometimes a bug in such a function will cause

Re: Sudoku

2013-03-31 Thread Eric Parry
On Monday, April 1, 2013 8:33:47 AM UTC+10:30, Eric Parry wrote: On Sunday, March 31, 2013 9:45:36 AM UTC+10:30, Dave Angel wrote: On 03/30/2013 06:06 PM, Eric Parry wrote: On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote: On 03/29/2013 05:47 PM, Eric

Re: Sudoku

2013-03-31 Thread Eric Parry
Sorry. Won't happen again. signing off this topic. Eric. -- http://mail.python.org/mailman/listinfo/python-list