diff --git a/tictactoe.py b/tictactoe.py index 058c302..3b2900e 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -179,7 +179,7 @@ def restart(): if event.type == pygame.KEYDOWN: if event.key == pygame.K_r: restart() - player = 1 + player = PLAYER % 2 + 1 game_over = False pygame.display.update()