Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. print (currentPlayer + "'s turn")
  2. print("Column?")
  3. co = int(input())
  4. print("Row?")
  5. ro = int(input())
  6. current = get_state(grid,ro,co)
  7. if current != 'x':
  8. print ("That spot is taken!")
  9. else:
  10. set_state(grid, ro, co, currentPlayer)
  11. if is_winner(grid):
  12. print (currentPlayer + "'s wins!")
  13. ongoing = False
  14. else:
  15. if currentPlayer == 'X':
  16. currentPlayer = 'O'
  17. elif currentPlayer == 'O':
  18. curentPlayer = 'Y'
  19. elif currentPlayer == 'Y':
  20. currentPlayer = 'X'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement