Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
image text in transcribed
image text in transcribed
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

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago