Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eedec13

Browse files
committed
Removed distracting comment.
1 parent 8e039f2 commit eedec13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def place(col, row):
493493

494494
def conflicted(self, state, row, col):
495495
"Would placing a queen at (row, col) conflict with anything?"
496-
for c in range(col): # Fixed subtle bug: range(col-1) is 0..n-2
496+
for c in range(col):
497497
if self.conflict(row, col, state[c], c):
498498
return True
499499
return False

0 commit comments

Comments
 (0)