コード例 #1
0
def show_achieved_treasure(treasure):
    new_screen()
    print(treasure)
    wait_for_continue_command()
コード例 #2
0
def show_fight_information(fight):
    new_screen()
    print(
        FIGHT_INFORMATION_PARTS_SEPARATOR_WHEN_PRINTING.join(
            fight.get_fight_information()))
    wait_for_continue_command()
コード例 #3
0
def print_hero_initial_information(hero):
    new_screen()
    print(HERO_INFORMATION_TEXT)
    hero.print_hero()
    wait_for_continue_command()
コード例 #4
0
def read_input_name_and_title_for_hero():
    new_screen()
    print(CREATE_HERO_TEXT)
    name = input(INPUT_NAME_TEXT)
    title = input(INPUT_TITLE_TEXT)
    return (name, title)
コード例 #5
0
def print_intro():
    new_screen()
    print(INTRO_TEXT)
コード例 #6
0
def show_game_over_screen():
    new_screen()
    print(GAME_OVER_TEXT)
コード例 #7
0
def game_turn(dungeon):
    new_screen()
    print_map_with_legend(dungeon)
    pressed_key_for_turn = get_pressed_key_for_turn()
    select_player_turn_depending_on_pressed_key_for_turn(
        dungeon, pressed_key_for_turn)