<commit_before>"""
A simple text adventure designed as a learning experience for new programmers.
"""
__author__ = '<NAME>'
import world
from player import Player


def play():
    world.load_tiles()
    player = Player()
    player.location_x, player.location_y = world.return_start_coordinates()
    while player.is_alive() and not player.victory:
        room = world.tile_exists(player.location_x, player.location_y)
        room.modify_player(player)
        # Check again since the room could have changed the player's state
        if player.is_alive() and not player.victory:
            print("Choose an action:\n")
            available_actions = room.available_actions()
            for action in available_actions:
                print(action)
            action_input = input('Action: ')
            for action in available_actions:
                if action_input == action.hotkey:
                    player.do_action(action, **action.kwargs)
                    break


if __name__ == "__main__":
    play()
<commit_msg>Removed player location initialization code<commit_after>"""
A simple text adventure designed as a learning experience for new programmers.
"""
__author__ = '<NAME>'
import world
from player import Player


def play():
    world.load_tiles()
    player = Player()
    while player.is_alive() and not player.victory:
        room = world.tile_exists(player.location_x, player.location_y)
        room.modify_player(player)
        # Check again since the room could have changed the player's state
        if player.is_alive() and not player.victory:
            print("Choose an action:\n")
            available_actions = room.available_actions()
            for action in available_actions:
                print(action)
            action_input = input('Action: ')
            for action in available_actions:
                if action_input == action.hotkey:
                    player.do_action(action, **action.kwargs)
                    break


if __name__ == "__main__":
    play()

{'fraction_non_alphanumeric': 0.08629191321499013, 'fraction_numerical': 0.0, 'mean_word_length': 2.4506802721088436, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3917132', 'n_tokens_mistral': 543, 'n_tokens_neox': 522, 'n_words': 161}