"""
In this simple RPG game, the hero fights the goblin. He has the options to:
1. fight goblin
2. do nothing - in which case the goblin will attack him anyway
3. flee
"""
from time import sleep
from random import random, choice
from characters import *
from party import *
from battle import *
from store import *

battle_engine = Battle()
shopping_engine = Store()
print("Welcome to another land. What is your name?")
user_name = input("> ")
user_hero = Hero(user_name)
medic = Medic()
brock = HumanShield()
hero_party = Party([user_hero, medic, brock])
enemies = [Goblin, Wizard, Zombie, Shadow]

while Battle.battles_remaining > 0:
    enemy_party = []
    while len(enemy_party) < 3:
        enemy_party.append(choice(enemies)())
    enemy_party = Party(enemy_party)
    print("Encountered enemy party!")
    print("Prepare to battle a %s, %s, and %s!" % (enemy_party.party[0].name, enemy_party.party[1].name, enemy_party.party[2].name))
    if not battle_engine.do_battle(hero_party, enemy_party):
        print("Game Over...")
        break
    shopping_engine.go_shopping(user_hero)
print("You Win!")
5efb89b03d3a91a5a06dcabe0561a0ca21856dd2
<mask token>

<mask token>
print('Welcome to another land. What is your name?')
<mask token>
while Battle.battles_remaining > 0:
    enemy_party = []
    while len(enemy_party) < 3:
        enemy_party.append(choice(enemies)())
    enemy_party = Party(enemy_party)
    print('Encountered enemy party!')
    print('Prepare to battle a %s, %s, and %s!' % (enemy_party.party[0].
        name, enemy_party.party[1].name, enemy_party.party[2].name))
    if not battle_engine.do_battle(hero_party, enemy_party):
        print('Game Over...')
        break
    shopping_engine.go_shopping(user_hero)
print('You Win!')

<mask token>
battle_engine = Battle()
shopping_engine = Store()
print('Welcome to another land. What is your name?')
user_name = input('> ')
user_hero = Hero(user_name)
medic = Medic()
brock = HumanShield()
hero_party = Party([user_hero, medic, brock])
enemies = [Goblin, Wizard, Zombie, Shadow]
while Battle.battles_remaining > 0:
    enemy_party = []
    while len(enemy_party) < 3:
        enemy_party.append(choice(enemies)())
    enemy_party = Party(enemy_party)
    print('Encountered enemy party!')
    print('Prepare to battle a %s, %s, and %s!' % (enemy_party.party[0].
        name, enemy_party.party[1].name, enemy_party.party[2].name))
    if not battle_engine.do_battle(hero_party, enemy_party):
        print('Game Over...')
        break
    shopping_engine.go_shopping(user_hero)
print('You Win!')

<mask token>
from time import sleep
from random import random, choice
from characters import *
from party import *
from battle import *
from store import *
battle_engine = Battle()
shopping_engine = Store()
print('Welcome to another land. What is your name?')
user_name = input('> ')
user_hero = Hero(user_name)
medic = Medic()
brock = HumanShield()
hero_party = Party([user_hero, medic, brock])
enemies = [Goblin, Wizard, Zombie, Shadow]
while Battle.battles_remaining > 0:
    enemy_party = []
    while len(enemy_party) < 3:
        enemy_party.append(choice(enemies)())
    enemy_party = Party(enemy_party)
    print('Encountered enemy party!')
    print('Prepare to battle a %s, %s, and %s!' % (enemy_party.party[0].
        name, enemy_party.party[1].name, enemy_party.party[2].name))
    if not battle_engine.do_battle(hero_party, enemy_party):
        print('Game Over...')
        break
    shopping_engine.go_shopping(user_hero)
print('You Win!')

"""
In this simple RPG game, the hero fights the goblin. He has the options to:
1. fight goblin
2. do nothing - in which case the goblin will attack him anyway
3. flee
"""
from time import sleep
from random import random, choice
from characters import *
from party import *
from battle import *
from store import *

battle_engine = Battle()
shopping_engine = Store()
print("Welcome to another land. What is your name?")
user_name = input("> ")
user_hero = Hero(user_name)
medic = Medic()
brock = HumanShield()
hero_party = Party([user_hero, medic, brock])
enemies = [Goblin, Wizard, Zombie, Shadow]

while Battle.battles_remaining > 0:
    enemy_party = []
    while len(enemy_party) < 3:
        enemy_party.append(choice(enemies)())
    enemy_party = Party(enemy_party)
    print("Encountered enemy party!")
    print("Prepare to battle a %s, %s, and %s!" % (enemy_party.party[0].name, enemy_party.party[1].name, enemy_party.party[2].name))
    if not battle_engine.do_battle(hero_party, enemy_party):
        print("Game Over...")
        break
    shopping_engine.go_shopping(user_hero)
print("You Win!")