Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following is an assignment to be coded in Python 3.5. Please follow the instructions carefully and completely. The superclass for Human should be Predator
The following is an assignment to be coded in Python 3.5. Please follow the instructions carefully and completely. The superclass for Human should be Predator I believe.
The link below is the code the assignment is based upon: https://pastebin.com/50T5RKek
Problem 1. Prey-Predators-Humans Problem Take the prey-predator problem described in Chapter 13 and add humans. Use the file program13- 14.py, attached to the assignment page. A human is a predator that eats prey. It also moves, breeds like an Animal, and kills predators (e.g. to keep prey for humans or for fun) Here are the detailed rules pertaining to humans: 1. A Human object moves like an Animal object on the island grid. 2. A Human object eats Prey just like a Predator object, with starving time given by a Human starve time class attribute, initialized in main0 3. A Human object breeds like an Animal object, with the breeding period given by a Human breed time class attribute, initialized in main0 4. A Human object hunts Predator objects periodically. Every Human.hunt time clock ticks (starting with the Human object's creation time), if a Predator is in a neighboring cell (using check grid0), Problem 1. Prey-Predators-Humans Problem Take the prey-predator problem described in Chapter 13 and add humans. Use the file program13- 14.py, attached to the assignment page. A human is a predator that eats prey. It also moves, breeds like an Animal, and kills predators (e.g. to keep prey for humans or for fun) Here are the detailed rules pertaining to humans: 1. A Human object moves like an Animal object on the island grid. 2. A Human object eats Prey just like a Predator object, with starving time given by a Human starve time class attribute, initialized in main0 3. A Human object breeds like an Animal object, with the breeding period given by a Human breed time class attribute, initialized in main0 4. A Human object hunts Predator objects periodically. Every Human.hunt time clock ticks (starting with the Human object's creation time), if a Predator is in a neighboring cell (using check grid0)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started