Design a game using C++?

Sameh

New member
I'm required to design a game as follows:

Description:
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.
___________________________________________________________________

I only need help on how to start the design, how to creat a Grid Display, & how to use the Arrow Buttons and assign some keys for some tasks
 
Back
Top