In the last year, thanks to the Ms. Pac-Man Versus Ghosts Competition, the game of Ms. Pac-Man has gained increasing attention from academics in the field of computational intelligence. In this paper, we contribute to this research stream by presenting a simple genetic algorithm with lexicographic ranking (GALR) for the optimization of flocking strategy-based ghost controllers. Flocking strategies are a paradigm for intelligent agents characterized by showing emergent behavior and for having very little computational and memory requirements, making them well suited for commercial applications and mobile devices. In particular, we study empirically the effect of optimizing homogeneous and heterogeneous teams. The computational analysis shows that the flocking strategy-based controllers generated by the proposed GALR outperform the ghost controllers included in the competition framework and some of those presented in the literature.