From 3777e435b8d27c87cd584423ce89ca4ff4bbde56 Mon Sep 17 00:00:00 2001 From: Mohab Mohsen <54236117+Mohabeldiin@users.noreply.github.com> Date: Fri, 28 May 2021 22:39:04 -0700 Subject: [PATCH] which player start after restart? this change makes the winner to start the new round --- tictactoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()