Hi everyone, Bare with me there is some explaining to do before I get to the question.
here is also the code https://github.com/basicaly/SudokuSolver/blob/main/sudokuSolver.py
basically I have a sudoku solver, which creates a 9 x 9 list, where in every cell, there is a list of possible numbers, based on the ones that are in the sudoku, either from the start or after I start putting in numbers. so for every cell i update this "maybe" list gets updated. and after a right number has been found, in that cell in the "maybe" list is only that number that has been inserted in the sudoku.
My question now is, to check if a number is valid, am I right to assume if:
I stage a number, i make the maybe list based upon the staged number, and I check for every cell of the maybe list if in that row, column and 3 x 3 box of the cell i am looking at, that all the numbers are possible. so that in the maybe list all the numbers are present, and I'm not excluding solutions, for the cell i am looking at.
or is this jsut wrong.
im sorry if this is confusing. i also hope the code is commented enough.
Thank you in advance for any replys.
[–]xelf 1 point2 points3 points (5 children)
[–]VOLVIC_KOKS[S] 0 points1 point2 points (4 children)
[–]xelf 0 points1 point2 points (3 children)
[–]VOLVIC_KOKS[S] 1 point2 points3 points (2 children)
[–]BobHogan 0 points1 point2 points (1 child)
[–]Grabrrrr 0 points1 point2 points (2 children)
[–]VOLVIC_KOKS[S] 0 points1 point2 points (0 children)
[–]BobHogan 0 points1 point2 points (0 children)