From 36c701c909d4cd1c54bf5367409a078dd3e01747 Mon Sep 17 00:00:00 2001 From: neogeek23 Date: Wed, 17 May 2017 08:41:54 -0500 Subject: [PATCH] Add files via upload Moved definition of variable to be outside of loop as it doesn't need to be defined on each iteration. --- tictactoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe.py b/tictactoe.py index 2bc5175..9e526f7 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -341,11 +341,11 @@ def create_board_from_inputs(): def play_tic_tac_toe(board): turn = 0 + max_attempts = 3 while not board.is_full() and not board.has_winner(): board.display() player_to_play = turn % 2 move_attempts = 1 - max_attempts = 3 coordinate_move = input( "\nPlayer " + str(player_to_play + 1) + " please input coordinates (.. ... .<3rd index>..) to place your '" +