DEV Community

Discussion on: Pac-Man Patterns — Ghost Movement (Strategy Pattern)

Collapse
 
arminreichert profile image
Armin Reichert

You might like my Java Pac-Man implementation. It also uses "delegation" for the ghost behavior but main emphasis is on using explicitly defined state machines all over the place.

github.com/armin-reichert/pacman