Professional Documents
Culture Documents
Level 4
Level 4
N (int): the number of rows and columns of the board (range: 1 - 100)
boardMatrix (StringList): N strings with the length of N
pacmanRow (int): the row that Pacman is in (starting with 1) movementSequence (String): a sequence of
pacmanColumn (int): the column that Pacman is in (starting with 1) movements that will collect all the coins
maxMovementSequenceLength (int): the maximum amount of steps that
Pacman can take (always 25000 in this level)
7 UUULLLRRRDDLLLLUDRRRRDDLLLLRRRRU
WWWWWWW
WGCCCCW
WCWWWCW
WCCCCCW
WGWWWPW
WCCCCCW
WWWWWWW This solution is correct since it will collect all
5 6 the coins, however there would be many other correct
25000 solutions.