# Kyle S. Dencker
# July 12, 2013
# SI@UCF First Week Programming Contest
# Problem A Testing Program

import random

class Player:
    
    #Constructor
    def __init__(self, name, maxhp):
        print("Create object")

        
    #Place all methods for your class here
    def dodge(self):
        print "Return true or false if the player dodges the attack."
        print "The player has 50% chance to dodge the attack."

    def isDead(self):
        print("Do not return anything.  Print out if the player is dead or alive.")

    def currentHP(self):
        print("returns the current amount of HP the player has")

    def damage(self, amount):
        print("The player takes 'amount' of damage.  This is subtracted from their current hp")

    def heal(self):
        print("the player heals 10 hp.")

    def attack(self):
        print("returns a random number between 5-15")
    

def main():
    print("Welcome to the player tester!")
    print("Press 7 at anytime to exit the program")

    vname = input("What is your player's name?")
    maxHP = int(input("What is your player's max HP?"))

    mainPlayer = Player(vname, maxHP)
    option = -1;

    while option != 7:
        option = int(input("What would you like to do? (1-dodge, 2-Is Player Dead?, 3-Current HP, 4-Take Damage, 5-Heal, 6-Attack)"))

        if option == 1:
            print ("The method returned:", mainPlayer.dodge())

        if option == 2:
            mainPlayer.isDead()

        if option == 3:
            print ("The method returned:", mainPlayer.currentHP())

        if option == 4:
            damage = int(input("How much damage?"))
            mainPlayer.damage(damage)

        if option == 5:
            mainPlayer.heal()

        if option == 6:
            print ("The method returned:", mainPlayer.attack())

    print("Goodbye")
        
main();
