'flask': 0,
    'short sword': 0,
    'special item': 0,
    'golden goblet': 0,
    'cake': 0,
    'special item2': 0,
    'special item3': 0,
    'milk': 0
}

print("Welcome to the maze game...\n")

should_continue = True
while should_continue:
    if room_number == 1:
        room_number = r1.run_room(player_inventory)
    elif room_number == 2:
        room_number = r2.run_room(player_inventory)
    elif room_number == 3:
        room_number = r3.run_room(player_inventory)
    elif room_number == 4:
        room_number = r4.run_room(player_inventory)
    elif room_number == 5:
        room_number = r5.run_room(player_inventory)
    elif room_number == 6:
        room_number = r6.run_room(player_inventory)
    elif room_number == 7:
        room_number = r7.run_room(player_inventory)
    elif room_number == 8:
        room_number = r8.run_room(player_inventory)
    elif room_number == 9:
Beispiel #2
0
print("\n\tWelcome to the Dungeon of the Claw!")
should_continue = True
while should_continue:
    if room_number == 15:
        room_number = r15.run_room
        print("GAME OVER")
        break
    elif room_number == 14:
        room_number = r14.run_room()
        break
    elif room_number == 0:
        room_number = r0.run_room()
    elif room_number == 1:
        room_number = r1.run_room(player_inventory, player_equipped,
                                  combat_off_inventory, combat_spell_inventory,
                                  mobs, player_health)
    elif room_number == 2:
        room_number = r2.run_room(player_inventory, player_equipped,
                                  player_health, combat_spell_inventory)
    elif room_number == 3:
        room_number = r3.run_room(player_inventory, player_equipped,
                                  combat_off_inventory, combat_spell_inventory,
                                  mobs, player_health)
    elif room_number == 4:
        room_number = r4.run_room(player_inventory, player_equipped,
                                  combat_off_inventory, combat_spell_inventory,
                                  mobs, player_health)
    elif room_number == 5:
        room_number = r5.run_room(player_inventory, player_equipped,
                                  combat_off_inventory, combat_spell_inventory,
Beispiel #3
0
import adventure_game.rooms.room11 as r11
import adventure_game.rooms.room12 as r12
import adventure_game.rooms.room13 as r13
import adventure_game.my_utils as util

from colorama import init
init()
# Default the player to the first room
room_number = 1

print("Welcome to the cavern of the kobold king...\n")

should_continue = True
while should_continue:
    if room_number == 1:
        room_number = r1.run_room(util.player_inventory)
    elif room_number == 2:
        room_number = r2.run_room(util.player_inventory)
    elif room_number == 3:
        room_number = r3.run_room(util.player_inventory)
    elif room_number == 4:
        room_number = r4.run_room(util.player_inventory)
    elif room_number == 5:
        room_number = r5.run_room(util.player_inventory)
    elif room_number == 6:
        room_number = r6.run_room(util.player_inventory)
    elif room_number == 7:
        room_number = r7.run_room(util.player_inventory)
    elif room_number == 8:
        room_number = r8.run_room(util.player_inventory)
    elif room_number == 9: