The Interactive Pacbot

Every year, Entelect hosts an AI programming challenge (you can find out more about it here. In 2014, the competition was a two player variant on Pacman. Entrants would each write a program which would control one of the two Pacmen, as they strove to eat the most pills.

At the same time, I was interested in trying out a JavaScript based games programming library called Phaser. I wrote an interactive implementation of the game's rules, which could be played by two people head to head in a web browser.

Strictly adhering to the game's rules makes it a bit unintuitive, since the rules were designed for humans to write a program to play, not to play themselves. For example, the game is strictly turn based. The yellow player will always go first, and the red player can do nothing until the yellow player has made their move.

The game requires a keyboard or gamepads to play. It will technically load on mobile devices, but you won't be able to control anything.

The source code is available on GitHub