HI everyone,,,i am a beginner in c++ & i have an a assignment that i cant even start & i need in advice that i can get so plzzzzzzz help,,, the assignment is about a game
The Predator‐Prey game is a simple board game where a set of predators and preys move freely across
the board. The goal of the game is that predators eat all the preys available.
The following is a description of the game rules:
Predators and preys move on a 2‐dimensional closed grid of size 12x12 cells. Predators and preys
are not allowed to move outside the grid.
There are two kinds of predators: snakes, and scorpions. On the other hand, there are three kinds of
preys: bugs, ants, and worms.
Scorpions eat bugs and ants but not worms, while snakes eat worms and bugs but not ants.
The game consists of successive turns. During one turn, each of the creatures moves one step into
one of the adjacent cells (up, down, left, or right). If there is no empty adjacent cell, the creature
stays in its place during this turn.
Predators’ movements are controlled by the user, while preys move randomly.
Each turn starts by prompting the user to move each of the predators, then the preys take their turn
and each of them moves one random step.
A predator breeds if it survives for 24 moves, while a prey breeds if it survives for 12 turns. The new
offspring is of the same type, and is added into one of the adjacent cells (top, bottom, left, or right).
Naturally, if there is no empty adjacent cell no breeding takes place.
A predator eats a prey if it is in one of the predator’s adjacent cells (top, bottom, left, or right) and is
of the proper type.
A predator starves and dies if it moves 12 turns without eating a prey.
Your program should display the game board along with the current creatures. Use the characters ‘S’ for
snakes, ‘X’ for scorpions, ‘B’ for bugs, ‘A’ for ants, and ‘W’ for worms.
Initialize your game board with 1 snake, 1 scorpion, 12 ants, 12 worms, and 12 bugs. Place them in
random locations.
i need any help concerning the syntax or an idea that i can use,,,,i.e: the game is prefered to be made using OOP concepts(object oriented programming)