Ah darnit, looks like the creator of Pacman, Toru Iwatani has died today. Utter genius!

I played that game so many times on so many platforms and spend so much money in the arcades when it first came out. I thought I had sussed-out how and why the ghosts move as they do and managed to get to around level 10 pretty much all the time.

Last year I had a go at making a version of it in HTML5 and got completely stuck! Then I found this article. Seems I was completely wrong about the movement. It’s so simple (relatively) but utter genius!
Anyway, here’s as far as I got using the proper game mechanics.

Play the game