by Jayson Hurst, Mathias Hailu, ..., Liam DeVoe
to run:
./runtest
-
ghost move
- pick the first valid move and move to it
-
map get loc
- just return
field.get(loc)
- just return
-
pacman get valid moves
- check the four locations in cardinal directions and add them to the return list if they aren't a wall
-
pacman move
- pick any valid move randomly and move to it
-
pacman is_ghost_is_range
- returns true if there is a ghost 1 tile in any direction of Pacman and false otherwise
-
pacman consume
- consumes a cookie and returns the cookie component if there is one at Pacman's position and null otherwise
-
ghost move
- add a ghost to the frame next to two walls, make sure it moved to one of the two remaining locations without walls
-
map get loc
- add ghosts and pacman to the map and make sure retrieving them returns the location where we put them
-
ghost in range
- make sure no ghost is in range when no ghosts are on the board. Then make sure a ghost is in range only when it's one tile away from pacman
-
pacman move
- put pacman at (1,1) and successfully move 3 times
-
pacman consume
- ensure pacman fails to consume a cookie at (9,12) (the readme example) and the pacman can successfully eat a cookie at (1,1)