Question: Question 1 Create a simplified pacman game using C++ program. Your program must declare and implement at least 3 classes, namely it follows the following
Question 1
Create a simplified pacman game using C++ program.
Your program must declare and implement at least 3 classes, namely it follows the following classes. The maze layout is given..
111111111111
212002000001
100002200000
122222111111
222222222221
111111111111

Rules for Pacman game
1. Pacman and monster must move within the boundary of the maze.
2. Pacman and monster cannot go over the maze wall.
3. Points are collected if the pacman goes over the maze location with food.
4. Game end if pacman get eaten by monster. Monster eat pacman if it goes into the same position as pacman.
Output:

Class Creature Responsibility Responsible for managing the pacman and monster in the game Manage the maze. Run the game Check if the movement is valid Maze CGame Start of Pacman game */*p* ** Num rows = 6 Num columns = 12 1 1 1 1 1 1 1 1 1 1 1 1 1 2 3 0 2 0 0 0 0 1 1 0 0 0 0 2 2 0 0 0 0 0 1 2 2 2 2 2 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 1 1 11111111111 Your collected points 0 Pacman at position (1, 3) enter move >> Player enter >>a (left) *P * Num rows = 6 Num columns = 12 1 1 1 1 1 1 1 1 1 1 2 1 3 0 0 2 0 0 0 0 0 1 1 0 0 0 0 2 2 0 0 0 0 0 1 2 2 2 2 2 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 11111111111 Your collected points Pacman at position (1, 2) enter move >>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
