Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You may need to zoom in on the image but what I need is for you to in great detail explain line for line what

You may need to zoom in on the image but what I need is for you to in great detail explain line for line what is going on in a way where a beginner can understand it. Thank you. It is done in python. image text in transcribed
me-py main.py XP magic.py f rom classes.game import Person, bcolors f rom classes.magic import Spell from classes.inventory import Item #create black magic fire Spell("Pire", 10, 100, "black") thunder = Spell ("Thunder", 10, 100, "black") blizzard Spell ("Blizzard", 10, 100, "black") meteor Spell ("Meteor", 20, 200, "black") quake Spell ("Quake", 14, 140, "black") eate white magic cure-Spe "cure", 12, 120, "white" cura Spell ("Cura", 18, 200, "white") Items potion Item("Potion", "potion, "Heals 50 HP, 50) hipotion Item("Bi-Potion", "potion", Beals 100 HP", 100) superpotion = Item("Super Potion", "potion", "Heals 500 HP, 500) elixer Item("Elixer", "elixer, "Fully restores HP/MP of one party memeber, 9999) hielixer-Item("MegaBlixer", "elixer", "Fully restores Eparty's HP/MP", 9999) grenade Item("Grenade", "attack "Deals 500 damage", 500) set up our player player-item= [potion, hipotion, superpotion, elixer, hielier, grenade enemy player spells [fire, thunder, blizzard, meteor, cure, cura] 6 player - Ferson (460, es, 0, 34, player_spells, player_item) Person (1200, 65, 45, 25, 1, 1) runningTrue print (bcolors.FAIL + bcolors.BOLD + AN EMEMY ATTACKS! + bcolors. ENDC) 30 while running: print ( player.choose action ) choice - input Choose actions:l index# int (choice) -1 if indexi

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions