Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print (currentPlayer + "'s turn")
- print("Column?")
- co = int(input())
- print("Row?")
- ro = int(input())
- current = get_state(grid,ro,co)
- if current != 'x':
- print ("That spot is taken!")
- else:
- set_state(grid, ro, co, currentPlayer)
- if is_winner(grid):
- print (currentPlayer + "'s wins!")
- ongoing = False
- else:
- if currentPlayer == 'X':
- currentPlayer = 'O'
- elif currentPlayer == 'O':
- curentPlayer = 'Y'
- elif currentPlayer == 'Y':
- currentPlayer = 'X'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement