Python Forum
Sudoku Solver in Python - Can someone explain this code ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sudoku Solver in Python - Can someone explain this code ?
#3
Nearly all sudoku solvers work the same way.

Try yo put a number in the first open box.
If successful move on to the next open box. If not, undo the last box and try a different number.

It annoys me that sudoku solvers arrange values in rows and columns. The puzzle is drawn that way, but storing values in a 2D array just makes the code more complicared. It is easier if the puzzle is flattened out into an 81 element 1D list.
Reply


Messages In This Thread
RE: Sudoku Solver in Python - Can someone explain this code ? - by deanhystad - Jun-24-2022, 03:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Explain the python code in this definition Led_Zeppelin 1 773 Jan-13-2023, 10:20 PM
Last Post: deanhystad
  I am new to python and Could someone please explain how this below code is working? kartheekdas 2 1,054 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
  Explain the python code in this definition Led_Zeppelin 1 1,132 Oct-27-2022, 04:04 AM
Last Post: deanhystad
  Can someone explain this small snippet of code like I am a 5 year old? PythonNPC 3 1,293 Apr-08-2022, 05:54 PM
Last Post: deanhystad
  Could you explain each part of the code? Tsushida 2 1,554 Mar-20-2022, 08:19 AM
Last Post: Larz60+
  Sudoku Solver, please help to solve a problem. AdithyaR 5 2,174 Oct-28-2021, 03:15 PM
Last Post: deanhystad
  building a sudoku solver usercat123 7 2,851 Oct-01-2021, 08:57 PM
Last Post: deanhystad
  What is the run time complexity of this code and please explain? samlee916 2 2,330 Nov-06-2020, 02:37 PM
Last Post: deanhystad
  poplib - parsing message body, could somebody please help explain this code t4keheart 2 2,339 Oct-12-2020, 01:59 PM
Last Post: t4keheart
  unable to use result of solver in another function ross1993hall 0 1,430 Aug-10-2020, 10:29 AM
Last Post: ross1993hall

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020