logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Natsha TakiaFinance
(5/5)

917 Answers

Hire Me
expert
Quality ExpertBusiness
(5/5)

962 Answers

Hire Me
expert
lahiruEducation
(/5)

784 Answers

Hire Me
expert
Peck KellerTechnical writing
(5/5)

906 Answers

Hire Me
Python Programming
(5/5)

Suppose you’re designing a video game where the objective is to travel around the world collecting cute cartoonish creatures

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

1. Suppose you’re designing a video game where the objective is to travel around the world collecting cute cartoonish creatures that become stronger over time by fighting other cute cartoonish creatures. (This is totally the best idea ever! Why hasn’t anyone thought of this before?!)

 

Within a file named cute creature.py, write a class CuteCreature that includes the following instance methods.

(a) (3 points) Each CuteCreature object has the following instance attributes:1

Species - a string indicating the type of creature (such as ‘Bowlbasore,’ ‘Squaretell,’ or ‘Peekashoe’)

Level – a positive integer indicating how powerful the creature is

Current hit points – a non-negative 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 – a non-negative integer indicating how effective this creature is at attacking another creature

Defense rating - a non-negative integer indicating how effective this creature is at resisting an attack from another creature

Experience points – a non-negative integer indicating the creature’s cumulative expe- rience. Creatures use experience points to determine when to “level up” and become more powerful.

Experience value – a non-negative 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 non-special creatures. However, they have a slightly different appearance and are somehow very highly prized by the players of your game.

Write a constructor that takes parameters for species, maximum hit points, attack rating, defense rating, experience value, and “special” status. A newly created CuteCreature should have a level of 1, current hit points equal to the maximum hit points, and zero experience points.

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme