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
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.