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 puppiesdogs 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 dogspuppies multiple types possible squirrels a major distraction humans various types yardhouse sectioned by surface and accessibility toys and food sources, and senses sight smell and sound This will be plotted as a topview of the activities. The model can be assumed flatD there may be bonus marks for D but not required.
The assessable features for code are;
Animals: Represented as objects that know their position, name, colour and age and can strategise on their next activity. You should have at least DogsPuppies 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 hungrythirstylonelybored
Humans: Humans will have varying relationships with the Animals. Some will be
ownersfriends some strangersintruders Humans will bring food and may play with the dogs
Prompts: How will you differentiate the humans? How will the dog sense the types of humans? Will there be a regularity of interaction, eg feedplay at certain times?
Food SourcesToys: The main food sources for the dogs are given by humans. Your animals should have a value for energyhunger 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 sources being eaten? How will a toy be carried
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 sensesevents will take priority?
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 doorsgates 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?
CollisionsInteraction: 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 dogshumanssquirrelsfood can give very different simulations. You can begin with hardcoded 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 experimentsimulation 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
