Skip to content

Instantly share code, notes, and snippets.

@jamesshah
Created November 14, 2019 04:39
Show Gist options
  • Save jamesshah/9c087415668a7ef95535f163e8002cc7 to your computer and use it in GitHub Desktop.
Save jamesshah/9c087415668a7ef95535f163e8002cc7 to your computer and use it in GitHub Desktop.
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