3 ms·
Pacman uses a pseudo-random-generator in the frightened-ghost movement (to pick a random direction at intersections - but only for ghosts in frightened mode).
by flohofwoe 4y ago
Pacman uses a pseudo-random-generator in the frightened-ghost movement (to pick a random direction at intersections - but only for ghosts in frightened mode).
In general "randomness" and "balancing" don't work too well together.
PRNGs in arcade machines and home computers often used a variant of xorshift since that's easy to implement in hardware, but most often this was just for noise generation in the audio chip.