Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. """
  2. lets the user type in the opposing teams move.
  3. """
  4. def getMove(self):
  5. move = input("Please input your move as: (row, column)?")
  6.  
  7. if (chr(move[1]) >= 65 and chr(move[1]) <= 72) and (column >= 1 and column <= 8):
  8. print("You have entered a move outside the board space. Row is 1-8, Column is A-H")
  9. self.getMove()
  10. else:
  11. column = chr(str(move[1])) - 65 - 1
  12. row = move[0]
  13. return (row, column)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement