Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
