Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 , 1 , 1 , 0 , 1 , 1 1 , 1 , 1 , 0 , 3 , - 5 1 ,
:;
str pacMapmap
str 'PacMan could not get to the power pellet and was eaten
by ghosts with uneaten pellets remaining.
Notes:
The four quadrants of the map are evenly divided, and will always be an even
number.
PacMan will always be in only one of the quadrants.
The power pellet should not be included in your total count of uneaten pellets.
There will be no uneaten pellets outside of the quadrant PacMan is located in
There could be more than one ghost in the subarray, but there will never be more than
one power pellet.
we cannot use the find function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started