Python Forum
Sudoku Solver, please help to solve a problem.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sudoku Solver, please help to solve a problem.
#3
in check9(n, ma), macopy is not a copy of ma, it is ma. If you want a copy of ma you should use:
macopy = ma.copy()
This line near the top of the file does nothing:
global dc,count,gv,gvn,fncount,mast
global tells python to use the global scope when assigning values to variables. This line, not being inside a function, is in the global scope already. Using "global" only makes sense inside of a function.
bowlofred likes this post
Reply


Messages In This Thread
RE: Sudoku Solver, please help to solve a problem. - by deanhystad - Oct-28-2021, 07:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can someone help me solve this programming problem? SuchUmami 6 1,054 Nov-20-2023, 10:01 AM
Last Post: EdwardMatthew
  A simple problem, how best to solve it? SuchUmami 2 789 Sep-01-2023, 05:36 AM
Last Post: Pedroski55
  Sudoku Solver in Python - Can someone explain this code ? qwemx 6 2,259 Jun-27-2022, 12:46 PM
Last Post: deanhystad
  How to solve this simple problem? Check if cvs first element is the same in each row? thesquid 2 1,328 Jun-14-2022, 08:35 PM
Last Post: thesquid
  How do I solve the second problem? Cranberry 1 1,195 May-16-2022, 11:56 AM
Last Post: Larz60+
  Try to solve GTG multiplication table problem. Frankduc 6 2,118 Jan-18-2022, 08:26 PM
Last Post: Frankduc
  building a sudoku solver usercat123 7 2,887 Oct-01-2021, 08:57 PM
Last Post: deanhystad
  General list size question to solve problem Milfredo 3 2,448 Sep-27-2020, 08:42 AM
Last Post: Milfredo
  unable to use result of solver in another function ross1993hall 0 1,448 Aug-10-2020, 10:29 AM
Last Post: ross1993hall
  I want to solve the following problem srisrinu 4 6,063 May-09-2020, 01:07 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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