From 1bf689951bbba98e56b86e6c3d294a1dcf48374b Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 30 Sep 2017 11:42:49 -0700 Subject: [PATCH] Fix a typo --- tictactoe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tictactoe.py b/tictactoe.py index 7a2e40f..224b303 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -76,8 +76,8 @@ class Board: return result # Check diagonals. - for d_idx in [(0, 4, 8), (2, 4, 6)]: - diag = b[0] + b[4] + b[8] + for x,y,z in [(0, 4, 8), (2, 4, 6)]: + diag = b[x] + b[y] + b[z] result = __check(col) if result: return result