Question: The code that follows sets up some basic information about the party and the boss, then executes a battle simulation: Code Listing krogg Characterf Krogg,

 The code that follows sets up some basic information about the
party and the boss, then executes a battle simulation: Code Listing krogg
Characterf Krogg, 180, 20, 20) glinda Character('Glinda, 120, 5, 20. 5) goofhey

The code that follows sets up some basic information about the party and the boss, then executes a battle simulation: Code Listing krogg Characterf Krogg, 180, 20, 20) glinda Character('Glinda, 120, 5, 20. 5) goofhey Character("Geoffrey. 150, 15, i5) party [krogs glinda, geoffrey boss - Character('Boss, 500, 25, 15) round 1 while (not boss.isDead) and (not isPartyDead(party) print Round, round) # krogg attacks krogg attack(boss) # geoffrey attacks geoffrey attack(boss) # glinda heals glinda heal(party # boss attacks for partyMember in party boss attack(party Member) # show progress for party Member in party print(partyMember) print(boss) print round + 1 if isParty Dcadiparty The code that follows sets up some basic information about the party and the boss, then executes a battle simulation: Code Listing krogg Characterf Krogg, 180, 20, 20) glinda Character('Glinda, 120, 5, 20. 5) goofhey Character("Geoffrey. 150, 15, i5) party [krogs glinda, geoffrey boss - Character('Boss, 500, 25, 15) round 1 while (not boss.isDead) and (not isPartyDead(party) print Round, round) # krogg attacks krogg attack(boss) # geoffrey attacks geoffrey attack(boss) # glinda heals glinda heal(party # boss attacks for partyMember in party boss attack(party Member) # show progress for party Member in party print(partyMember) print(boss) print round + 1 if isParty Dcadiparty

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!