huionoob
New Coder
#AttackPower : input the raw power of the LAST pokemon attack, not compatible with attacks contains special effects
#AttackCost : 1.5 for specific energy, 1 for colorless energy
PokemononeHP = 1000
Prizeone = 1
Resistanceone = 0
OneFinalPower = 0
OneAttackPower = 20
AttackCostOne = 2
OneEvolution = 0
PokemontwoHP = 90
Prizetwo = 1
Resistancetwo = 30
TwoFinalPower = 0
TwoAttackPower = 60
AttackCostTwo = 2.5
TwoEvolution = 2
OneFinalPowerstepone = 0
OneFinalPowersteptwo = 0
OneFinalPowerstepthree = 0
OneFinalPowerstepfour = 0
TheVeryFinalResultOfPokemonOne = 0
TwoFinalPowerstepone = 0
TwoFinalPowersteptwo = 0
TwoFinalPowerstepthree = 0
TwoFinalPowerstepfour = 0
TheVeryFinalResultOfPokemonTwo = 0
def prizecardcalculation():
Powertakenbyeachprizecard = (PokemononeHP+PokemontwoHP)/2
OneFinalPowerstepone = OneFinalPower - (Powertakenbyeachprizecard * Prizeone)
TwoFinalPowerstepone = TwoFinalPower - (Powertakenbyeachprizecard * Prizetwo)
print("Pokemon one gets minus " + str(Powertakenbyeachprizecard * Prizeone) + " power.")
print("Pokemon two gets minus " + str(Powertakenbyeachprizecard * Prizetwo) + " power.")
def resistancefavour():
if Resistanceone == 0:
print("Pokemon one gets no resistance favour.")
else:
print("Resistance favour added for pokemon one.")
OneFinalPowersteptwo = OneFinalPowerstepone + Resistanceone
if Resistancetwo == 0:
print("Pokemon two gets no resistance favour.")
else:
print("Resistance favour added for pokemon two.")
TwoFinalPowersteptwo = TwoFinalPowerstepone + Resistancetwo
print(TwoFinalPowersteptwo)
def stageweakness():
global OneFinalPowerstepthree, TwoFinalPowerstepthree
stageweaknessbase = 0
if PokemononeHP > PokemontwoHP:
stageweaknessbase = PokemononeHP - PokemontwoHP
stageweaknessbase * OneEvolution
OneFinalPowerstepthree = OneFinalPowersteptwo - stageweaknessbase
TwoFinalPowerstepthree = TwoFinalPowersteptwo
if PokemontwoHP > PokemononeHP:
stageweaknessbase = PokemontwoHP - PokemononeHP
stageweaknessbase * OneEvolution
TwoFinalPowerstepthree = TwoFinalPowersteptwo - stageweaknessbase
OneFinalPowerstepthree = TwoFinalPowerstepthree
print(OneFinalPowerstepthree)
print(TwoFinalPowerstepthree)
def functionattackefficency():
Oneefficency = 0
Twoefficency = 0
Oneefficency = OneAttackPower / AttackCostOne
Twoefficency = TwoAttackPower / AttackCostTwo
print("Attack efficency for pokemon one = " + str(Oneefficency))
print("Attack efficency for pokemon two = " + str(Twoefficency))
OneFinalPowerstepfour = OneFinalPowerstepthree + Oneefficency
TwoFinalPowerstepfour = TwoFinalPowerstepthree + Twoefficency
print(OneFinalPowerstepfour)
def hitpointsdifference():
diffenrence = 0
if PokemononeHP > PokemontwoHP:
diffenrence = PokemononeHP - PokemontwoHP
print("Hit points diffenrence is " + str(diffenrence) + " more for Pokemon one")
TheVeryFinalResultOfPokemonOne = OneFinalPowerstepfour + diffenrence
print(TheVeryFinalResultOfPokemonOne)
if PokemontwoHP > PokemononeHP:
diffenrence = PokemontwoHP - PokemononeHP
print("Hit points diffenrence is " + str(diffenrence) + " more for Pokemon two")
TheVeryFinalResultOfPokemonTwo = TwoFinalPowerstepfour + diffenrence
def finalpowercalculation():
print(TheVeryFinalResultOfPokemonOne)
if TheVeryFinalResultOfPokemonOne > TheVeryFinalResultOfPokemonTwo:
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("POKEMON ONE IS THE WINNER WITH " + str(TheVeryFinalResultOfPokemonOne) + " CALCULATION POINTS!!!")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
if TheVeryFinalResultOfPokemonTwo > TheVeryFinalResultOfPokemonOne:
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("POKEMON TWO IS THE WINNER WITH " + str(TheVeryFinalResultOfPokemonTwo) + " CALCULATION POINTS!!!")
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
else:
print("A TIE OF POWER!!!")
print(TheVeryFinalResultOfPokemonOne)
print("POKEMON ONE STANDING STILL WITH " + str(TheVeryFinalResultOfPokemonOne) + " POINTS")
print("POKEMON TWO HOLDING THE MIGHTY WITH " + str(TheVeryFinalResultOfPokemonTwo) + " POINTS")
def runfunctions():
prizecardcalculation()
resistancefavour()
stageweakness()
functionattackefficency()
hitpointsdifference()
finalpowercalculation()
#Final run:
runfunctions()