Skip to content

Instantly share code, notes, and snippets.

@daniel-schroeder-dev
Created January 6, 2022 02:30
Show Gist options
  • Select an option

  • Save daniel-schroeder-dev/71cff766c23aea44d5b17c4f717ca5fd to your computer and use it in GitHub Desktop.

Select an option

Save daniel-schroeder-dev/71cff766c23aea44d5b17c4f717ca5fd to your computer and use it in GitHub Desktop.
Student project from winter break
# -*- coding: utf-8 -*-
"""Copy of The freaking impossible coding project to finish during winterbreak
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1SVMJ3M3Q_DZ6aOwP-pDPWwg08jNO-87F
"""
# Harini
Attack1 = 60
Defense1 = 10
Hp1 = 130
# Arth
Attack2 = 60
Defense2 = 20
Hp2 = 120
# Maahit
Attack3 = 60
Defense3 = 20
Hp3 = 120
# Andrew
Attack4 = 70
Defense4 = 10
Hp4 = 120
# Yaxin
Attack5 = 50
Defense5 = 20
Hp5 = 130
# Aadhya
Attack6 = 50
Defens6 = 10
Hp6 = 140
# Luke
Attack7 = 40
Defense7 = 20
Hp7 = 140
# Yujia
Attack8 = 50
Defense8 = 10
Hp8 = 140
# Yoohnyuk
Attack9 = 30
Defense9 = 30
Hp9 = 140
# Elliot
Attack10 = 60
Defense10 = 10
Hp10 = 130
# Tanishk
Attack11 = 60
Defense11 = 20
Hp11 = 120
# Shambavi
Attack12 = 30
Defense12 = 40
Hp12 = 130
# Rachel
Attack13 = 50
Defense13 = 20
Hp13 = 130
# An
Attack14 = 60
Defense14 = 10
Hp14 = 130
# Mario
Attack15 = 70
Defense15 = 10
Hp15 = 120
import random
print("Welcome to Pokemon! A-4 Edition")
characterselection = input(
"first choose a character\n Harini\n Maahit\n Andrew\n Arth\n Yujia\n Yoohnyuk\n Mario\n An\n Rachel\n Shambhavi\n Tanishk\n Elliot\n Luke\n Aadhya\n Yaxin\n"
)
if characterselection == "Harini":
print("Okay, Harini it is\n")
print(" ")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
print(" ")
if question2 == "Yes":
print("Here\nAttack1 = 60\nDefense1 = 10\nHp1 = 130")
else:
print("Oh, okay")
print(" ")
print("Since you chose your character let's begin with a match!")
print(" ")
print("You shall be fighting JEFF")
print(" ")
def firstbattle():
Attack1 = 60
Defense1 = 10
Hp1 = 130
jeffhp = 100
jeffdf = 20
jeffatk = 50
while jeffhp >= 0 and Hp1 >= 0:
attack = input("What move will you choose?(Kick-60 damage)\n")
print(" ")
if attack == "Kick":
jeffhp = round(jeffhp - (Attack1 - Attack1 * jeffdf / 100))
print("Jeff's hp is now", jeffhp)
print(
" "
)
jeffattack = 1
if jeffattack == 1:
print("Jeff used big mad")
print(
" "
)
Hp1 = round(Hp1 - (50 - 50 * Defense1 / 100))
print(characterselection, "'s hp is now", Hp1)
print(
" "
)
firstbattle()
print("Since you won your first battle, it's time to learn more about moves")
print(" ")
print(
"Moves are abilities you use to either support your character, or attack your enemy"
)
print(" ")
print("You have 2 moves in total, one support and one attack")
print(" ")
print(
"In your first battle we touched on attack moves, and in this one we will learn about support moves"
)
print(" ")
print("Support moves are used to buff your attack or reduce the opponents defense")
print(" ")
Hp1 = 130
###################################
def playagain():
secondbattle()
def secondbattle():
Attack1 = 60
Defense1 = 10
Hp1 = 130
jeffdf = 20
jeffatk = 50
jeffhp = 100
while jeffhp >= 0 and Hp1 >= 0:
moves = input(
"What move will you choose?(Kick- 60 damage, Growl atk increase by 10%\n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
if moves == "Kick":
jeffhp = round(jeffhp - (Attack1 - Attack1 * jeffdf / 100))
print("Jeff's hp is now", jeffhp)
print(
" "
)
if jeffhp >= 0:
jeffattack = random.randint(1, 2)
if jeffattack == 1:
Hp1 = Hp1 - (jeffatk - jeffatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if jeffattack == 2:
jeffatk = round(jeffatk + jeffatk * 0.10)
print("Jeff's attack is now", jeffatk)
print(
" "
)
if jeffhp <= 0:
secondbattle = 1
elif Hp1 <= 0:
secondbattle = 0
print("welp. harini died.")
print(
" "
)
else:
print("Mission accomplished. Jeff died.")
print(
" "
)
break
else:
print("Jeff won. You should try again.")
print(" ")
playagain()
secondbattle()
print("Game - Congratulations, you finished the tutorial!!!")
print(" ")
print(
". . . In the world of school... in which all students are brainwashed to obtain good grades to not get beaten by their parents. One kid rises"
)
print(" ")
print(
"That one child",
characterselection,
" is motivated to obtain her goal of no more tests and school",
)
print(" ")
print(
"To accomplish this she must fight the great 7 tests, those being Math, Literature, Science, History, Logic, Vocabulary, and P.E."
)
print(" ")
print(
"On one fine day, our protagonist",
characterselection,
"decided to go on a walk, and was greeted, by the king of school and also known as the principle... Mr.Rico",
)
print(" ")
print("You thinking you could beat Mr.Rico, challenge him")
print(" ")
def impossiblebattle():
Ricohp = 10000
Ricoatk = 1000000000
Ricodef = 10000000000000000000
Hp1 = 130
Attack1 = 60
Defense1 = 10
while Ricohp >= 0 and Hp1 >= 0:
moves = input(
"What move will you choose?(Kick- 60 damage, Growl atk increase by 10%\n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
else:
Ricohp = round(Ricohp - (Attack1 - Attack1 * Ricodef / 100))
print("Rico's hp is now", Ricohp)
print(
" "
)
if Ricohp >= 0 and Hp1 >= 0:
Ricoattack = random.randint(1, 2)
if Ricoattack == 1:
Hp1 = Hp1 - (Ricoatk - Ricoatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if Ricoattack == 2:
Ricoatk = round(Ricoatk + Ricoatk * 0.10)
print("Rico's attack is now", Ricoatk)
print(
" "
)
if Hp1 <= 0:
print("Ah Harini lost, as expected.")
impossiblebattle()
print(
"As you run in defeat to escape the wrath of Mr.Rico and go back to class, you meet your friend Ben"
)
print(" ")
print(
"Ben - Ah, you lost against Mr.Rico again, haven't you", characterselection, "?"
)
print(" ")
print("Ben - I might know a way to make you stronger... come meet me after class")
print(" ")
print(
"After class ended,",
characterselection,
"and Ben made their way to the secret cave behind the school",
)
print(" ")
print(
"Ben - Rumors say that if you are able to find the secret in this cave, you will be able to obtain exceptional power, why don't you try it out"
)
print(" ")
print(
"As you enter the cave, you are passed with three options, go front left or right"
)
print(" ")
def mazestuff():
mazequestion = input("What do you choose?(Front, Left or Right?)\n")
print(" ")
if mazequestion == "Left":
print("That is correct, you move on")
print(" ")
elif mazequestion == "Right":
print("That is incorrect")
print(" ")
mazestuff()
elif mazequestion == "Front":
print("That is incorrect")
print(" ")
mazestuff()
print(
"You encounter another person trying to obtain the secret power, in an urge to stop him you decide to battle him!"
)
print(" ")
Attack1 = 60
Defense1 = 10
Hp1 = 130
Jordf = 30
Joratk = 40
Jorhp = 130
while Jorhp >= 0 and Hp1 >= 0:
moves = input(
"What move will you choose?(Kick- 60 damage, Growl atk increase by 10%\n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
else:
Jorhp = round(Jorhp - (Attack1 - Attack1 * Jordf / 100))
print("Jordan's hp is now", Jorhp)
print(
" "
)
if Jorhp >= 0:
Jorattack = random.randint(1, 2)
if Jorattack == 1:
Hp1 = Hp1 - (Joratk - Joratk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if Jorattack == 2:
Joratk = round(Joratk + Joratk * 0.10)
print("Jordan's attack is now", Joratk)
print(
" "
)
if Jorhp <= 0:
fourthbattle1 = 1
print("Nice you won!")
print(
" "
)
break
if Hp1 <= 0:
print(
"Jordan won. Frustrated you ran out the cave, and after healing yourself you decided to challenge the cave all over again, this time confident you could beat jordan"
)
print(
" "
)
mazestuff()
def mazestuff2():
print(
"After you beat Jordan you continue on the cave and you and faced with another option"
)
print(" ")
mazequestion1 = input("What do you choose?(Left, Right, Front)\n")
print(" ")
if mazequestion1 == "Front":
print("You are incorrect")
print(" ")
mazestuff2()
elif mazequestion1 == "Left":
print("You are incorrect")
print(" ")
mazestuff2()
elif mazequestion1 == "Right":
print("You are correct")
print(" ")
mazequestion3 = input(
"As you continue through the maze you find an odd relic half covered in dirt, do you pick it up(Yes, No)\n"
)
print(" ")
score = 0
if mazequestion3 == "Yes":
print("congratulations, you obtained dungeon key")
print(" ")
print(
"Okay, you continue through your journey and encounter a gate, with a lockhole in it"
)
print(" ")
score = 1
else:
print(
"Maahit - Bruhhh you're just a werido... let's pretend you say yes cause I'm way too lazy to code some dumb battle for you to obtain the relic \n which is a dunegon key in which you have to fight a scary boss. oop. I said too much"
)
print(" ")
score = 1
if score == 1:
print("You open the sealed door")
print(" ")
print(
"After you open the door you encounter an odd entity, as you walk closer you notice that it's a Math Test!"
)
print(" ")
print(
"Eager to gain power, you challenge the test, hopeing that by beating it you will gain a certain power"
)
print(" ")
def testbattle1():
Attack1 = 60
Defense1 = 10
Hp1 = 130
Testdef = 70
Testatk = 50
Testhp = 150
print(
"Before going into battle, you have a chance to buff yourself, if you get this problem right, you can DOUBLE your stats"
)
print(" ")
mathquestion = input(
"Solve for c to (2c-1)/9 + c/4 = (c+3)/6 (You may write it down on a paper and write the expression as c=blank exactly like this)\n"
)
print(" ")
if mathquestion == "c=2":
print("Congrats that's right!")
print(" ")
Attack1 = Attack1 * 2
Defense1 = Defense1 * 2
Hp1 = Hp1 * 2
else:
print("Ahhh that's incorrect, sorry about that")
print(" ")
while Testhp >= 0 and Hp1 >= 0:
moves = input(
"What move will you choose?(Kick- 120 damage, Growl atk increase by 10%\n"
)
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
else:
Testhp = round(Testhp - (Attack1 - Attack1 * Testdef / 100))
print("Math Test's hp is now", Testhp)
print(
" "
)
if Testhp >= 0:
Testattack = random.randint(1, 2)
if Testattack == 1:
Hp1 = Hp1 - (Testatk - Testatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if Testattack == 2:
Testatk = round(Testatk + Testatk * 0.30)
print("Math Test's attack is now", Testatk)
print(
" "
)
if Testhp <= 0:
print(
"The Math Test is trying to revive itself! Quick solve this math problem to make sure it doesn't revive"
)
print(
" "
)
graphquestion = input(
"What is y = mx+b(Is it, Slope, Slope-Intercept-Form, y-intercept, x-intercept)\n"
)
print(
" "
)
if graphquestion == "Slope-Intercept-Form":
print("That is correct")
print(
" "
)
print(
"You beat it... you beat the Math Test, as he is knocked out you see a crystal slip out and watch as it explodes"
)
print(
" "
)
print(
"After you appear victorious after the battle, you depart from the cave proud."
)
print(
" "
)
print("Leaving the cave you encounter Mr.Rico")
print(
" "
)
print("Mr.Rico - Did you break one of my crystals!!!!")
print(
" "
)
print(
"Mr.Rico battles you and absolutely annihilates you, but you notice he has gotten weaker, or you stronger..."
)
print(
" "
)
print("Your stat's have doubled!!!!")
print(
" "
)
else:
print(
"That is incorrect the math test is reviving....time is turning back, you have to complete everything all over again.. good luck"
)
print(
" "
)
testbattle1()
if Hp1 <= 0:
print("You lost the battle... noooo you ran out of there like crazy")
print(
" "
)
print(
"You know that the only way you can become stronger and beat Mr.Rico is to win this!, so you repeat the whole thing again, this time good luck"
)
print(
" "
)
testbattle1()
mazestuff()
mazestuff2()
testbattle1()
Attack1 = Attack1 * 2
Defense1 = Defense1 * 2
Hp1 = Hp1 * 2
print("The next day, you try to find clues on the tests")
print(" ")
print("You ask your friends and you find out nothing")
print(" ")
print(
"When you go to History Class you notice that a test similar to the math test is popping out of Mrs.Maniscarco's desk"
)
print(" ")
print("After class, you rummage through Mrs.Maniscarco's drawers to find the test")
print(" ")
print("After you find it, it spoke to you saying,'Yo, what's up'")
print(" ")
print("Shocked, you replied,'you can speak?!'")
print(" ")
print(
"'Yessir', replied the History test,'I've heard from the other tests that your trying to beat the King of tests'"
)
print(" ")
print(
"And I was thinking, that if you solve all three of my questions i'll hand over my crystal and tell the location of the other tests"
)
print(" ")
print("'But why?', you asked")
print(" ")
print(
"Pff.. probably because the creator of this game is too lazy to add lore to the location of the other tests"
)
print(" ")
print("Anyway... onto the first question")
print(" ")
def historythingy():
historyscore = 0
questionhis1 = input(
"What is always infront of you, but you rarely notice it?(Answer in one word and capitalize)\n"
)
print(" ")
if questionhis1 == "Nose":
print("That's correct")
print(" ")
historyscore = historyscore + 1
elif questionhis1 != "Nose":
print(
"Try again, but i'll give you a hint, it's a 4 letter word and the first letter is 'n'"
)
print(" ")
print("Onto the next question")
print(" ")
questionhis2 = input(
"I’m tall when I’m young, and I’m short when I’m old. What am I?(Answer is one word and capitalize)\n"
)
print(" ")
if questionhis2 == "Candle":
print("Ohh, that's impressive, you got it right")
print(" ")
historyscore = historyscore + 1
else:
print("That is incorrect")
print(" ")
print("i'll give you a hint though, it starts with a c")
print(" ")
print("Final question...")
print(" ")
question7651 = input(
"How did the French treat the Natives in America? (Good or Bad)\n"
)
if question7651 == "Good":
print("That's correct, now to see how many you got right")
print(" ")
historyscore = historyscore + 1
elif question7651 != "Good":
print("That's incorrect, now to ssee how many you got right")
print(" ")
if historyscore == 3:
print("You got all correct now i'll tell you the location of each test!")
print(" ")
print(
"Okay... so you found the Math test and me, meaning that there are 5 tests remaining"
)
print(" ")
print(
"Those being the Science Test, The P.E. Test, The Literature test, The Logic Test, and The Grammar Test"
)
print(" ")
print("Three of those tests, are in the remaining dungeons of the school")
print(" ")
print(
"To find the math test, you were at the East Dungeon, the others being the North Dungeon, the West Dungeon, and the South Dungeon"
)
print(" ")
print(
"After finishing those dungeons, come back to me, so I can gague your power level to see if you are worthy of fighting the final two test"
)
print(" ")
else:
print(
"Dang, since you didn't get all of them correct I won't tell you all the locations, try again and see if you get it right this time"
)
print(" ")
historythingy()
print("After leaving the classroom you set course to go to the North Dungeon")
print(" ")
print(
"As you reach the enterance, you are greeted by a tall figure with shabby ginger hair "
)
print(" ")
print("??? - Yo, I heard you were trying to beat the king of tests Mr.Rico")
print(" ")
print("You - What about it? Have you come to challenge me?")
print(" ")
print(
"??? - No, actually the opposite, my name is Tarte, and I wanted to assist you in your battles"
)
print(" ")
print("Reluctantly you agreed")
print(" ")
print("You - I mean I need all the help possible, I'm fighting a formidiable enemy")
print(" ")
print("Tarte - Nice, allying with you, Harini")
print(
"Game - Congratuations, you have obtained an ally, in other words, after you get knocked out or die, your ally will come out and fight for you,\n if you both die, then you lose"
)
print(" ")
print("Let's try out this feature!")
def doublebattle():
Jeffyhp = 550
Jeffyatk = 100
Jeffydef = 20
Tartehp = 260
Tarteatk = 110
Tartedef = 20
lifescore = 2
Hp1 = 260
Attack1 = 120
Defense1 = 20
while Jeffyhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 120 damage, Growl atk increase by 10%\n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
else:
Jeffyhp = round(Jeffyhp - (Attack1 - Attack1 * Jeffydef / 100))
print("Jeffy's hp is now", Jeffyhp)
print(
" "
)
if Jeffyhp >= 0:
Jeffyattack = random.randint(1, 2)
if Jeffyattack == 1:
Hp1 = Hp1 - (Jeffyatk - Jeffyatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if Jeffyattack == 2:
Jeffyatk = round(Jeffyatk + Jeffyatk * 0.30)
print("Jeffy's attack is now", Jeffyatk)
print(" ")
if Jeffyhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and Jeffyhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 110 damage, Beserker atk increase by 30%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Your attack is now", Tarteatk)
print(
" "
)
else:
Jeffyhp = round(
Jeffyhp - (Tarteatk - Tarteatk * Jeffydef / 100)
)
print("Jeffy's hp is now", Jeffyhp)
print(
" "
)
if Jeffyhp >= 0:
Jeffyattack = random.randint(1, 2)
if Jeffyattack == 1:
Tartehp = Tartehp - (Jeffyatk - Jeffyatk * Tartedef / 100)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if Jeffyattack == 2:
Jeffyatk = round(Jeffyatk + Jeffyatk * 0.30)
print("Jeffy's attack is now", Jeffyatk)
print(" ")
if Jeffyhp <= 0:
print("Congrats you won")
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
doublebattle()
doublebattle()
print(
"Tarte - Well then, I also know the locations for each test, I'm pretty sure the test in this dungeon is the Grammar test, let's beat it!"
)
print(" ")
print(
"As you enter the door, you notice a big square in front of you, and under it instructions."
)
print(" ")
print("Find out the amount of errors in the sentence below.")
print(" ")
print("the fat cat was playing with it's friends")
print(" ")
def grammarquestions():
grammarquestion = input("How many errors are in the sentence?\n")
if grammarquestion == "3":
print("You are correct!")
else:
print("That is incorrect, try again.")
grammarquestions()
grammarquestions()
print(
"As the door opens, you are greeted by a person guarding the dungeon, and you fight him"
)
def guardbattle():
guardhp = 930
guardatk = 50
guarddef = 20
Tartehp = 250
Tarteatk = 110
Tartedef = 40
lifescore = 2
Hp1 = 260
Attack1 = 120
Defense1 = 20
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 120 damage, Growl atk increase by 10%\n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
else:
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print("The Guard's hp is now", guardhp)
print(
" "
)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("Guard's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 110 damage, Beserker atk increase by 30%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Your attack is now", Tarteatk)
print(
" "
)
else:
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("Guard's hp is now", guardhp)
print(
" "
)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Tartehp = Tartehp - (guardatk - guardatk * Tartedef / 100)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("Guard's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
guardbattle()
guardbattle()
print(
"After you beat the battle, you and Tarte continued through the dungeon fighting enemy by enemy"
)
print(" ")
print("Then, you reached a gigantic door")
print(" ")
print("Tarte - This is probably, the test door, let's open it")
print(" ")
print(
"As you open the door, you look at the Grammar Test, terrifying as it is, you still have to fight it "
)
print(" ")
print("This time, you are given an insane buff to quadriple your power")
def Grammartest():
grammarhp = 10000
grammaratk = 100
grammardef = 50
Tartehp = 250
Tarteatk = 110
Tartedef = 40
lifescore = 2
Hp1 = 260
Attack1 = 120
Defense1 = 20
grammarquestion = input(
"""The county cleared this path and paved it with packed gravel, so they would have a peaceful place to hike and bike.
Which of the following alternatives to the underlined portion would NOT be acceptable?
path, paving
path and then paved
path before paving
path paved\n"""
)
if grammarquestion == "path paved":
print("you are correct! You get the buff")
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
else:
print(
"That is incorrect.... good luck beating the Grammar test, it will not be easy"
)
while grammarhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick 480 damage, Growl atk increase by 10%\n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
else:
grammarhp = round(grammarhp - (Attack1 - Attack1 * grammardef / 100))
print("The Grammar Test's hp is now", grammarhp)
print(
" "
)
if grammarhp >= 0:
grammarattack = random.randint(1, 2)
if grammarattack == 1:
Hp1 = Hp1 - (grammaratk - grammaratk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if grammarattack == 2:
grammaratk = round(grammaratk + grammaratk * 0.10)
print("Grammar Test's attack is now", grammaratk)
print(" ")
if grammarhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and grammarhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Your attack is now", Tarteatk)
print(
" "
)
else:
grammarhp = round(
grammarhp - (Tarteatk - Tarteatk * grammardef / 100)
)
print("Grammar Test's hp is now", grammarhp)
print(
" "
)
if grammarhp >= 0:
grammarattack = random.randint(1, 2)
if grammarattack == 1:
Tartehp = Tartehp - (
grammaratk - grammaratk * Tartedef / 100
)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if grammarattack == 2:
grammaratk = round(grammaratk + grammaratk * 0.30)
print("Grammar Test's attack is now", grammaratk)
print(" ")
if grammarhp <= 0:
print(
"It's reviving.... can you really afford to fight this monster again at full hp?? You need to beat this question\n"
)
hardgrammarquestion = input(
"""
The fresco is a dynamic work because, by capturing the energy, humanity, and collective achievement of the Detroit workers, celebrates all working men and women.
NO CHANGE
that
while
that was\n"""
)
if hardgrammarquestion == "that":
print(
"Amazing.. it was correct, you succesfully beat the Grammar test"
)
print(
"It seems every time you beat a test, the buffs you gain stay with your character, that seems pretty nice!"
)
break
else:
print("you failed..... it's reviving... good luck")
Grammartest()
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Grammartest()
Grammartest()
print(
"After leaving the North Dungeon, you make your way to the next one, the South Dungeon"
)
print(" ")
print("Before you're about to open the gate someone yells WAIT!")
print(" ")
print(
"Shocked you looked at the direction of the noise and you notice a girl with blonde hair wearing a blue dress"
)
print(" ")
print(
"??? - Wait, my name is Mary and you see, I hate the King of Tests too, so I wanted to join you on your journey"
)
print(" ")
print(
"Harini - I thought KSJDJGLKJNFLKGAJFLKGJALFGJLAK why do so many people want to join my team"
)
print(" ")
print("Harini - Fine... I see why not another person can join my team.")
print(" ")
print(
"Congrats!!!! you unlocked another character, except what's special about this one is it doesn't attack!, now that may seem like a useless character, but\n SHE CAN HEAL AND APPLY DEBUFFS!!!!"
)
print(" ")
print("Let's try her out!")
print(" ")
def Johnnybattle():
guardhp = 5000
guardatk = 80
guarddef = 40
Tartehp = 250
Tarteatk = 110
Tartedef = 40
Hp1 = 260
Attack1 = 120
Defense1 = 20
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
lifescore = 2
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 60 damage, Growl atk increase by 10%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20% \n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Your attack is now", Attack1)
print(
" "
)
elif moves == "Kick":
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print(" Johnny's hp is now", guardhp)
print(
" "
)
elif moves == "Heal":
Hp1 = Hp1 + 100
print("The player's Hp is now", Hp1)
elif moves == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The enemy's defense is now", guarddef)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("Johnny's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Your attack is now", Tarteatk)
print(
" "
)
elif moves1 == "Lacerate":
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("Johnny's hp is now", guardhp)
print(
" "
)
elif moves1 == "Heal":
Tartehp = Tartehp + 100
print("The player's Hp is now", Tartehp)
elif moves1 == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The enemy's defense is now", guarddef)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Tartehp = Tartehp - (guardatk - guardatk * Tartedef / 100)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("Johnny's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Johnnybattle()
Johnnybattle()
print(
"Game - Now that you have leart the basics about support, I think it's time for you to enter the dungeon"
)
def literaturequestion1():
literaturequestion = input(
"As you enter the dungeon you are greeted by another puzzle, what is the ryhme scheme of a shakespearean sonnet?\n(Write in capital letters and spaces for each 4 letters)\n"
)
if literaturequestion == "ABAB CDCD EFEF GG":
print("You are correct, the door opens")
else:
print("You're incorrect, try again!")
literaturequestion1()
literaturequestion1()
print("As you enter through the door, you encounter another guard")
def Guardbattle1():
guardhp = 5000
guardatk = 150
guarddef = 40
Tartehp = 250
Tarteatk = 110
Tartedef = 40
Hp1 = 260
Attack1 = 120
Defense1 = 20
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
lifescore = 2
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 60 damage, Growl atk increase by 10%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20% \n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Harini's Attack is now", Attack1)
print(
" "
)
elif moves == "Kick":
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print("The Guard's hp is now", guardhp)
print(
" "
)
elif moves == "Heal":
Hp1 = Hp1 + 100
print("Harini's Hp is now", Hp1)
elif moves == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The Guard's defense is now", guarddef)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Guards's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Tarte's attack is now", Tarteatk)
print(
" "
)
elif moves1 == "Lacerate":
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("The Guards's hp is now", guardhp)
print(
" "
)
elif moves1 == "Heal":
Tartehp = Tartehp + 100
print("Tarte's Hp is now", Tartehp)
elif moves1 == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The Guard's defense is now", guarddef)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Tartehp = Tartehp - (guardatk - guardatk * Tartedef / 100)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Guard's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Guardbattle1()
Guardbattle1()
print(
"As usual, you would open the next door to fight the literature test, but the problem was, it was already open!"
)
print(
"As you peer through the openning of the door you see another person single handedly beating the literature test!"
)
print(
"Shocked, you walked to them and asked, how the $@!$ did you beat that test so easily!?"
)
print(
"??? - I also hate the King of TestsI decide to handle the tests myself\n I've already beaten the Literature, P.E., and Logic Tests, what about you?\n"
)
print("I've beaten the Grammar, Math, and History Tests")
print(
"??? - Well, then since we have 6 more advasaries to beat why don't we ally for a little bit?"
)
print("My name is Cimaris, nice to meet you.")
print(
"Game - Noice, another ally, but you don't play for him, he plays as well except he fights on his own volition!"
)
print("Game - Let's try this monster out!")
def Guardbattle3():
guardhp = 10000
guardatk = 150
guarddef = 40
Tartehp = 250
Tarteatk = 110
Tartedef = 40
Hp1 = 260
Attack1 = 120
Defense1 = 20
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
Cimarishp = 2000
Cimarisatk = 400
Cimarisdef = 40
lifescore = 2
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 480 damage, Growl atk increase by 10%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20% \n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Harini's Attack is now", Attack1)
print(
" "
)
elif moves == "Kick":
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print("The Guard's hp is now", guardhp)
print(
" "
)
elif moves == "Heal":
Hp1 = Hp1 + 100
print("Harini's Hp is now", Hp1)
elif moves == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The Guard's defense is now", guarddef)
if Cimarishp <= 0:
print("Cimaris got knocked out, he is unable to battle")
if Cimarishp >= 0:
moves2 = random.randint(1, 2)
if moves2 == 1:
print("Cimaris uses Flare blitz")
guardhp = guardhp - (Cimarisatk - Cimarisatk * guarddef / 100)
print("The Guard's hp is", guardhp)
if moves2 == 2:
print("Cimaris uses rage")
Cimarisatk = Cimarisatk * 1.3
print("Cimaris's Attack is now", Cimarisatk)
attackwhere = random.randint(1, 2)
if guardhp > 0:
if attackwhere == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The guard attacked Harini")
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Guards's attack is now", guardatk)
print(" ")
else:
if guardhp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The guard attacked Cimaris")
Cimarishp = Cimarishp - (guardatk - guardatk * Cimarisdef / 100)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Guards's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Tarte's attack is now", Tarteatk)
print(
" "
)
elif moves1 == "Lacerate":
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("The Guards's hp is now", guardhp)
print(
" "
)
elif moves1 == "Heal":
Tartehp = Tartehp + 100
print("Tarte's Hp is now", Tartehp)
elif moves1 == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The Guard's defense is now", guarddef)
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
Tartehp = Tartehp - (guardatk - guardatk * Tartedef / 100)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Guard's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Guardbattle3()
Guardbattle3()
print(
"Yea, now that Cimaris is on your team your really op, so the bosses are going to get REALLY hard now, good luck :P"
)
print(
"After leaving the dungeon, you go back to the history test to see if you are worth enough to fight the final test, the science test"
)
print("After talking to the History Test, you must face his challenge.")
print(
"History Test - The Challenge is simple, beat me in my strongest form, let's begin and don't worry I won't revive"
)
def Historytestbattle():
guardhp = 20000
guardatk = 100
guarddef = 0
Tartehp = 250
Tarteatk = 110
Tartedef = 40
Hp1 = 260
Attack1 = 120
Defense1 = 20
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
Cimarishp = 2000
Cimarisatk = 400
Cimarisdef = 40
lifescore = 2
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 480 damage, Growl atk increase by 10%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20% \n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Harini's Attack is now", Attack1)
print(
" "
)
elif moves == "Kick":
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print("The History Test's hp is now", guardhp)
print(
" "
)
elif moves == "Heal":
Hp1 = Hp1 + 100
print("Harini's Hp is now", Hp1)
elif moves == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The History Test's defense is now", guarddef)
if Cimarishp <= 0:
print("Cimaris got knocked out, he is unable to battle")
if Cimarishp >= 0:
moves2 = random.randint(1, 2)
if moves2 == 1:
print("Cimaris uses Flare blitz")
guardhp = guardhp - (Cimarisatk - Cimarisatk * guarddef / 100)
print("The History Test's hp is", guardhp)
if moves2 == 2:
print("Cimaris uses rage")
Cimarisatk = Cimarisatk * 1.3
print("Cimaris's Attack is now", Cimarisatk)
if Hp1 > 0:
attackwhere = random.randint(1, 2)
if guardhp > 0:
if attackwhere == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The History Test attacked Harini")
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The History Test's attack is now", guardatk)
print(" ")
else:
if guardhp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The History Test attacked Cimaris")
Cimarishp = Cimarishp - (
guardatk - guardatk * Cimarisdef / 100
)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The History Test's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Tarte's attack is now", Tarteatk)
print(
" "
)
elif moves1 == "Lacerate":
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("The History Test's hp is now", guardhp)
print(
" "
)
elif moves1 == "Heal":
Tartehp = Tartehp + 100
print("Tarte's Hp is now", Tartehp)
elif moves1 == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The History Test's defense is now", guarddef)
if Tartehp > 0:
attackwhere1 = random.randint(1, 2)
if guardhp > 0:
if attackwhere1 == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The History Test attacked Tarte")
Tartehp = Tartehp - (
guardatk - guardatk * Tartedef / 100
)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The History Test's attack is now", guardatk)
print(" ")
elif attackwhere1 == 2:
if Cimarishp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The History Test attacked Cimaris")
Cimarishp = Cimarishp - (
guardatk - guardatk * Cimarisdef / 100
)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The History Test's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Historytestbattle()
Historytestbattle()
print("You are ready to fight the final test, the Science test")
print("You - Yes, I'm confident that i'll win")
print(
"History Test - Very well then, the science teacher has a chamber hidden behind his whiteboard, that's where the Science Test hides, good luck."
)
print(
"After school ends, you sneak into the Science Teacher's classroom and somehow get the whiteboard to come off the wall and notice the enterance"
)
print(
"You then slowly creep into it and put the whiteboard back to its previous spot"
)
print(
"It's pitch black for a second, but then lights start to turn on illuminating a hallway"
)
print(
"As there is no other paths to follow, you decide to to follow the light's until you reach a large room in which the science test resides"
)
print("The battle begins... and this time. There will be no buff")
def Finaltestbattle():
guardhp = 35000
guardatk = 50
guarddef = 20
Tartehp = 250
Tarteatk = 110
Tartedef = 40
Hp1 = 260
Attack1 = 120
Defense1 = 20
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
Cimarishp = 2000
Cimarisatk = 400
Cimarisdef = 40
lifescore = 2
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 480 damage, Growl atk increase by 10%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20% \n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Harini's Attack is now", Attack1)
print(
" "
)
elif moves == "Kick":
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print("The Science Test's hp is now", guardhp)
print(
" "
)
elif moves == "Heal":
Hp1 = Hp1 + 100
print("Harini's Hp is now", Hp1)
elif moves == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The Science Test's defense is now", guarddef)
if Cimarishp <= 0:
print("Cimaris got knocked out, he is unable to battle")
if Cimarishp >= 0:
moves2 = random.randint(1, 2)
if moves2 == 1:
print("Cimaris uses Flare blitz")
guardhp = guardhp - (Cimarisatk - Cimarisatk * guarddef / 100)
print("The Science Test's hp is", guardhp)
if moves2 == 2:
print("Cimaris uses rage")
Cimarisatk = Cimarisatk * 1.3
print("Cimaris's Attack is now", Cimarisatk)
if Hp1 > 0:
attackwhere = random.randint(1, 2)
if guardhp > 0:
if attackwhere == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The Science Test attacked Harini")
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.10)
print("The Science Test's attack is now", guardatk)
print(" ")
else:
if guardhp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The Science Test attacked Cimaris")
Cimarishp = Cimarishp - (
guardatk - guardatk * Cimarisdef / 100
)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Science Test's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Tarte's attack is now", Tarteatk)
print(
" "
)
elif moves1 == "Lacerate":
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("The Science Test's hp is now", guardhp)
print(
" "
)
elif moves1 == "Heal":
Tartehp = Tartehp + 100
print("Tarte's Hp is now", Tartehp)
elif moves1 == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("The Science Test's defense is now", guarddef)
if Tartehp > 0:
attackwhere1 = random.randint(1, 2)
if guardhp > 0:
if attackwhere1 == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The Science Test attacked Tarte")
Tartehp = Tartehp - (
guardatk - guardatk * Tartedef / 100
)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Science Test's attack is now", guardatk)
print(" ")
elif attackwhere1 == 2:
if Cimarishp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("The Science Test attacked Cimaris")
Cimarishp = Cimarishp - (
guardatk - guardatk * Cimarisdef / 100
)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Science Test's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print(
"??? - This won't do...... this will not do...... I won't lose so easily, I think it's time to end you right now",
characterselection,
"...",
)
print(
"Mr.Rico - I'm done with you killing all of my tests, you have weakened me enough, how about this? If I beat you right here right now, I will expell you and ruin your life"
)
print(
"If you win, which won't happen, i'll admit defeat, and I'll get rid of school"
)
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Finaltestbattle()
Finaltestbattle()
print("Mr.Rico - I will beat you...", characterselection, "....")
print("Mr. Rico - And then, I can also beat Tarte, Cimaris, and Mary")
def Finalbattle():
guardhp = 50000
guardatk = 50
guarddef = 20
Tartehp = 250
Tarteatk = 110
Tartedef = 40
Hp1 = 260
Attack1 = 120
Defense1 = 20
Tartehp = Tartehp * 4
Tarteatk = Tarteatk * 4
Tartedef = Tartedef * 2
Hp1 = Hp1 * 4
Attack1 = Attack1 * 4
Defense1 = Defense1 * 2
Cimarishp = 2000
Cimarisatk = 400
Cimarisdef = 40
lifescore = 2
while guardhp >= 0 and Hp1 >= 0 and Tartehp >= 0:
moves = input(
"What move will you choose?(Kick- 480 damage, Growl atk increase by 10%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20% \n"
)
print(" ")
if moves == "Growl":
Attack1 = Attack1 + Attack1 * 0.10
print("Harini's Attack is now", Attack1)
print(
" "
)
elif moves == "Kick":
guardhp = round(guardhp - (Attack1 - Attack1 * guarddef / 100))
print("Mr.Rico's hp is now", guardhp)
print(
" "
)
elif moves == "Heal":
Hp1 = Hp1 + 100
print("Harini's Hp is now", Hp1)
elif moves == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("Mr. Rico's defense is now", guarddef)
if Cimarishp <= 0:
print("Cimaris got knocked out, he is unable to battle")
if Cimarishp >= 0:
moves2 = random.randint(1, 2)
if moves2 == 1:
print("Cimaris uses Flare blitz")
guardhp = guardhp - (Cimarisatk - Cimarisatk * guarddef / 100)
print("Mr.Rico's hp is", guardhp)
if moves2 == 2:
print("Cimaris uses rage")
Cimarisatk = Cimarisatk * 1.3
print("Cimaris's Attack is now", Cimarisatk)
if Hp1 > 0:
attackwhere = random.randint(1, 2)
if guardhp > 0:
if attackwhere == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("Mr.Rico attacked Harini")
Hp1 = Hp1 - (guardatk - guardatk * Defense1 / 100)
print("Harini's Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.10)
print("Mr.Rico's attack is now", guardatk)
print(" ")
else:
if guardhp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("Mr.Rico attacked Cimaris")
Cimarishp = Cimarishp - (
guardatk - guardatk * Cimarisdef / 100
)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("The Science Test's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print("Congrats you won")
break
if Hp1 <= 0:
lifescore = lifescore - 1
print("Harini got knocked out, now it's Tarte's turn to fight")
print(
" "
)
while Tartehp >= 0 and guardhp >= 0:
moves1 = input(
"What move will you choose?(Lacerate - 100 damage, Beserker atk increase by 30%\nHeal heal's player's hp by 100, or Debuff, lowers your opponent's defense by 20%\n"
)
print(
" "
)
if moves1 == "Beserker":
Tarteatk = Tarteatk + Tarteatk * 0.30
print("Tarte's attack is now", Tarteatk)
print(
" "
)
elif moves1 == "Lacerate":
guardhp = round(
guardhp - (Tarteatk - Tarteatk * guarddef / 100)
)
print("Mr.Rico's hp is now", guardhp)
print(
" "
)
elif moves1 == "Heal":
Tartehp = Tartehp + 100
print("Tarte's Hp is now", Tartehp)
elif moves1 == "Debuff":
guarddef = guarddef - guarddef * 0.20
print("Mr.Rico's defense is now", guarddef)
if Tartehp > 0:
attackwhere1 = random.randint(1, 2)
if guardhp > 0:
if attackwhere1 == 1:
if guardhp >= 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("Mr.Rico attacked Tarte")
Tartehp = Tartehp - (
guardatk - guardatk * Tartedef / 100
)
print("Tarte's Hp is now", Tartehp)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("Mr.Rico's attack is now", guardatk)
print(" ")
elif attackwhere1 == 2:
if Cimarishp > 0:
guardattack = random.randint(1, 2)
if guardattack == 1:
print("Mr.Rico attacked Cimaris")
Cimarishp = Cimarishp - (
guardatk - guardatk * Cimarisdef / 100
)
print("Cimaris' Hp is now", Hp1)
print(
" "
)
if guardattack == 2:
guardatk = round(guardatk + guardatk * 0.30)
print("Mr.Rico's attack is now", guardatk)
print(" ")
if guardhp <= 0:
print(
"Mr.Rico - . . . it's over isn't it.... I lost......... very well.... you win..... school.. will.. never.. exist anymore. I bid you farewell"
)
break
if Tartehp <= 0:
lifescore = lifescore - 1
if lifescore == 0:
print("You have lost, try again")
Finalbattle()
Finalbattle()
print("It's over.. school is gone!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :D k bai")
print("Credits goes to!!!!!")
print(
"Maahit, for literally everything .-. I'm still waiting for an editor, someone to make a good plot line and well, a grahpic desinger which should have been Shambhavi, but no luck :c"
)
if characterselection == "Yaxin":
print("Okay, Yaxin it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack5 = 50\nDefense5 = 20\nHp5 = 130)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Maahit":
print("Okay, Maahit it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats?(You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack3 = 60\nDefense3 = 20\nHp3 = 120)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Arth":
question1 = input("So you pick Arth?\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? ((You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack2 = 60\nDefense2 = 20\nHp2 = 120)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Yujia":
print("Okay, Yujia it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack8 = 50\nDefense8 = 10\nHp8 = 140)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "An":
print("Okay, An it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack14 = 60\nDefense14 = 10\nHp14 = 130)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Rachel":
print("Okay, Rachel it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack13 = 50\nDefense13 = 20\nHp13 = 130)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Yoohnyuk":
print("Okay, Yoohnyuk it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack9 = 30\nDefense9 = 30\nHp9 = 140)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Shambhavi":
print("Okay, Shambhavi it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack12 = 30\nDefense12 = 40\nHp12 = 130)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Luke":
print("Okay, Luke it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack7 = 40\nDefense7 = 20\nHp7 = 140)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Tanishk":
print("Okay, Tanishk it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack11 = 60\nDefense11 = 20\nHp11 = 120)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Andrew":
print("Okay, Andrew it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack4 = 70\nDefense4 = 10\nHp4 = 120)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Elliot":
print("Okay, Elliot it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack10 = 60\nDefense10 = 10\nHp10 = 130)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Mario":
print("Okay, Mario it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack15 = 70\nDefense15 = 10\nHp15 = 120)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
if characterselection == "Aadhya":
print("Okay, Aadhya it is\n")
question2 = input(
"This is the beginning of our journey! Amazing! Would you like to see your stats? (You only get to see them once)\n"
)
if question2 == "Yes":
print("Here\nAttack6 = 50\nDefense6 = 10\nHp6 = 140)")
else:
print(
"Oh, okay, remember you can always check it by doing /question then entering stats"
)
print("Since you chose your character let's begin with a match!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment