Question: I need python code and explaination for this task. In this assignment, you will be making use of this knowledge to extend a given simulation

I need python code and explaination for this task.
In this assignment, you will be making use of this knowledge to extend a given simulation to provide more functionality, complexity and allow automation. You will then report on your design and implementation, and the results generated by the simulation.
You will be simulating the behaviour and interaction of one or more puppies/dogs. The yard the dogs live in consists of grassed area, garden, fences, gates and house. We will view it from above. Your simulation will include dogs/puppies (multiple types possible), squirrels (a major distraction), humans (various types), yard/house (sectioned by surface and accessibility), toys and food sources, and senses (sight, smell and sound). This will be plotted as a top-view of the activities. The model can be assumed flat/2-D there may be bonus marks for 3D, but not required.
The assessable features for code are;
1. Animals: Represented as objects that know their position, name, colour and age and can strategise on their next activity. You should have at least Dogs/Puppies and Squirrels.
Prompts: How will you represent the animals themselves, and differentiate between
them in the simulation? How will they move and decide between movement options? Will they get hungry/thirsty/lonely/bored?
2. Humans: Humans will have varying relationships with the Animals. Some will be
owners/friends, some strangers/intruders. Humans will bring food and may play with the dog(s).
Prompts: How will you differentiate the humans? How will the dog sense the types of humans? Will there be a regularity of interaction, e.g. feed/play at certain times?
3. Food Sources/Toys: The main food sources for the dogs are given by humans. Your animals should have a value for energy/hunger that is increased by eating and
decreases over time. Food sources should deplete as they are eaten. Toys can be
played with and moved from place to place. Items may be buried, then found via smell.
Prompts: How will the animals find and respond to food sources? How will you track energy and the food source(s) being eaten? How will a toy be carried?
4. Senses: Each creature will have a way of sensing the world around them. You should have sight and smell as a starting point, then potentially add hearing.
Prompts: How will you code the sight of the animals? Many aspects of the simulation will have a smell, which may be in a trail that fades over time. You might do this as a parallel grid... Which senses/events will take priority?
5. Terrain and Obstacles: There should be at least two types of area in the terrain
back yard and house. Different animals will traverse their terrains in their own manner, although within a class they should have the same patterns. Obstacles might be fences, walls or doors/gates. These can be built in the code, however they will be better if read from a file.
Prompts: How will the animal know what terrain it is in? How will this affect their choice of movement for each time step? How will they get around obstacles?
6. Collisions/Interaction: How will your creatures seek out or avoid each other? They will need to detect each other and take action, with a decision being made on the outcome of any interactions.
Prompts: How will you detect a collision is imminent? What strategies will you have
for the animals to avoid each other?
NOTE:
There are marks allocated for flexibility and usability. For example, changing terrain input file, or numbers of dogs/humans/squirrels/food can give very different simulations. You can begin with hard-coded values and filenames, but should move to prompting for values, or a better approach is to use command line arguments to control the parameters of the experiment/simulation. Configuration files can also be used.
what is the actual code for this project
i just need the full project

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!