re: Pac-Man Patterns — Ghost Movement (Strategy Pattern) VIEW POST

FULL DISCUSSION
 

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

code of conduct - report abuse