Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago