Your job will be to make this simulation more complex, by adding additional
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Your job will be to make this simulation more complex, by adding additional

Modify sample/starter Python code (which will be provided) as follows: The provided sample/starter code is an "artificial life" simulation that has two kinds of entities (critters and food) exist in the world. The critters can move around the world and eat the food (they grow when they eat it). Your job will be to make this simulation more complex, by adding additional behaviors/simulation rules, and by adding a new entity to the world.

Meet the following requirements:

1) editing the existing entities before creating a new one; and

2) add two new fields to the critter that correspond to stats (e.g. hunger, tiredness, loneliness);

3) add three new behaviors to the critter that use these stats (e.g. die, breed, sleep, hunt, shout);

4) add rules to the simulation that corresponds to these new behaviors and stats (e.g. upon dying, create new food where the critter used to exist, or when two critters overlap, they should breed and create a new critter with combined traits); and

5) create a new entity (i.e. a new class, in a new tab) that has at least one behavior and that interacts in the simulation.

Also, Add the following to the above. Answer the following questions:

A) How does programming in an object-oriented style feel similar and different to how you've approached programming thus far?;

B) Were there some things that were easy to model? Some things that were hard? Why do you think so?;

C) Were there times where you needed to decide where to write code that seemed relevant to multiple entities? How did you resolve that?; and

D) How, if at all, did this lab help reinforce other programming concepts we have already covered in class, such as functions, lists, or dictionaries?

Provide the following:

1) A zip file of the directory containing your sketch for the lab assignment (zip the full directory, not just the directory contents) - this will include the image file; and

2) screenshots or video demonstrating the output of the lab

smithgillianlab6

Hint
ComputerA simulation is a model that mimics the operation of an existing or proposed system, providing evidence for decision-making by being able to test different scenarios or process changes. This can be coupled with virtual reality technologies for a more immersive experience. Some examples include fire drills, weather forecasting, CGI graphics in entertainment, and simulation used in healthcar...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.