Пример #1
0
 def end(self):
     """End the game with a win."""
     self.board._reveal_board()
     print(self.board)
     print('Enter "new" for a new game or "quit" to quit.')
     while True:
         command = MenuCommand()
         if command.action == 'new':
             self.start()
         elif command.action == 'quit':
             self.exit()
         else:
             self.usage()