(5/5)

Hire Me
(4/5)

Hire Me
(5/5)

Hire Me
(5/5)

Hire Me
(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

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)

## 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

Get Free Quote!

426 Experts Online