This assignment you will create a C++ programof lions hunting a gazelle on the S
ID: 655835 • Letter: T
Question
This assignment you will create a C++ programof lions hunting a gazelle on the Serengeti.
The rules for the simulation are:Correctly implement the Serengeti simulation with the following constraints:
Lions move up to 1 meter per turn
Gazelle moves up to 2 meters per turn
Lions win if 2 are adjacent to the gazelle at the start of the turn.
Gazelle wins if it has not been eaten by the end of turn 51.
Gazelle starts in center, lions start in random locations at least 5 meters from the gazelle.
Creatures move in real space and then are printed on the grid based upon the integer part of their location.
Creatures cannot move into cells occupied by other cretures, and may not move over the border.
Curses library used for outputting the board each step.
Two dimensional array of pointers to creatures used to store the creatures.
Explanation / Answer
S.NO.
Requirements
1
Two-dimensional array of pointers to Creatures used to represent the board.
2
Serengeti rules properly implemented
3
Program compiles, is organized properly into interface and implementation files, and is syntactically correct.
4
Creature
S.NO.
Requirements
1
Two-dimensional array of pointers to Creatures used to represent the board.
2
Serengeti rules properly implemented
3
Program compiles, is organized properly into interface and implementation files, and is syntactically correct.
4
Creature
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.