Created
November 14, 2019 04:39
-
-
Save jamesshah/9c087415668a7ef95535f163e8002cc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def game(): | |
turn = 'X' | |
count = 0 | |
for i in range(10): | |
printBoard(theBoard) | |
print("It's your turn," + turn + ".Move to which place?") | |
move = input() | |
if theBoard[move] == ' ': | |
theBoard[move] = turn | |
count += 1 | |
else: | |
print("That place is already filled.\nMove to which place?") | |
continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment