Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write in python, please, ( below in text is the context of question, actual question, 2 , is in image provided ) Each CuteCreature object
Write in python, please,
below in text is the context of question, actual question, is in image provided
Each CuteCreature object has the following instance attributes:
Species a string indicating the type of creature such as BowlbasoreSquaretell
or Peekashoe
Level a positive integer indicating how powerful the creature is
Current hit points a nonnegative integer indicating how much damage the creature
can take before being incapacitated
Maximum hit points a positive integer indicating the highest possible value of current
hit points
Attack rating an integer indicating how effective this creature is at attacking another
creature higher values mean stronger attacks
Defense rating an integer indicating how effective this creature is at resisting an
attack from another creature higher values mean stronger defenses
Experience points a nonnegative integer indicating the creatures cumulative expe
rience. Creatures use experience points to determine when to level up and become
more powerful.
Experience value a nonnegative integer indicating how many experience points this
creature is worth when defeated by another creature
is special a Boolean variable that determines whether this creature is considered
special Internally, special creatures are exactly the same as nonspecial creatures.
However, they have a slightly different appearance and are somehow very highly prized
by the players of your game.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started