From 9bfcfed56963efffe78210afecd531060d812223 Mon Sep 17 00:00:00 2001 From: Daniel Piron Date: Wed, 3 Mar 2021 16:22:09 -0500 Subject: [PATCH] Center and left hand vertical wins correctly detected --- 89 Tic-Tac-Toe/python/tictactoe2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/89 Tic-Tac-Toe/python/tictactoe2.py b/89 Tic-Tac-Toe/python/tictactoe2.py index 63a68d0f..181e86eb 100755 --- a/89 Tic-Tac-Toe/python/tictactoe2.py +++ b/89 Tic-Tac-Toe/python/tictactoe2.py @@ -127,7 +127,7 @@ def determine_winner(board, g): return Winner.PLAYER # Check for matching vertical lines - for i in range(Space.TOP_LEFT.value, Space.TOP_LEFT.value + 1, 1): # Second third of Line 1115 + for i in range(Space.TOP_LEFT.value, Space.TOP_RIGHT.value + 1, 1): # Second third of Line 1115 if board[i] != board[i+3] or board[i] != board[i+6]: # Last third of Line 1115 continue # First third of 1150 elif board[i] == OccupiedBy.COMPUTER: # Line 1135