From cfd635145f4d78e00b51e73a391512a9f45fe470 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 2 May 2021 21:52:12 -0400 Subject: [PATCH] fix computer last move --- python_game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_game.py b/python_game.py index 16d8df5..1665b4e 100644 --- a/python_game.py +++ b/python_game.py @@ -83,7 +83,7 @@ def handle_turn(): # take player input choice = input('Choose a position from 1 to 9: ') else: - choice = random.choice(find_open_spaces()) + choice = random.choice(find_open_spaces()) + 1 else: # take player input choice = input('Choose a position from 1 to 9: ')