Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the little error in valid() function #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# THIS FORK IS CREATED BY ME FOR THE PURPOSE OF AN ERROR CORRECTION PULL REQUEST TO THE ORIGINAL REPO.

# Sudoku-GUI-Solver
This is a sudoku solver using the backtracking algorithm. It includes a graphical GUI as well as a text based version.

Expand Down
2 changes: 1 addition & 1 deletion solver (text).py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def valid(bo, pos, num):

# Check Col
for i in range(0, len(bo)):
if bo[i][pos[1]] == num and pos[1] != i:
if bo[i][pos[1]] == num and pos[0] != i:
return False

# Check box
Expand Down