print('| COMMANDS') print('|') print('| 1: Attack monsters') print('| 2: Move to different house') print('| 3: Show current location') print('| 4: List weapons') print('| 5: Restart game') print('| 0: Exit') print('--------------------------------------------------') command = raw_input('> Enter a command: ') # if command is 1, player and monsters fight if (command == '1'): game.attack() print('') print('Player HP: {}'.format(game.get_player().get_player_hp())) # if command is 2, player moves to a different house elif (command == '2'): print('') row = 0 col = 0 # get user input for move location try: row = input('> Enter a row (0-4): ') col = input('> Enter a column (0-4): ')