Actually fix the diagnoal checks

This commit is contained in:
Eryn Wells 2017-09-30 13:31:12 -07:00
parent 4a95079c5c
commit 0cec60d20c

View file

@ -76,9 +76,9 @@ class Board:
return result
# Check diagonals.
for x,y,z in [(0, 4, 8), (2, 4, 6)]:
for x,y,z in ((0, 4, 8), (2, 4, 6)):
diag = b[x] + b[y] + b[z]
result = __check(col)
result = __check(diag)
if result:
return result