From 0cec60d20c61aea0e8503a2d0c597c6a2ace642f Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 30 Sep 2017 13:31:12 -0700 Subject: [PATCH] Actually fix the diagnoal checks --- tictactoe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tictactoe.py b/tictactoe.py index 38a2e09..0541fe0 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -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