Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- lets the user type in the opposing teams move.
- """
- def getMove(self):
- move = input("Please input your move as: (row, column)?")
- if (chr(move[1]) >= 65 and chr(move[1]) <= 72) and (column >= 1 and column <= 8):
- print("You have entered a move outside the board space. Row is 1-8, Column is A-H")
- self.getMove()
- else:
- column = chr(str(move[1])) - 65 - 1
- row = move[0]
- return (row, column)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement