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

If you liked this page, please share it on Twitter, Facebook, Google+, or by using the Permalink.

You can send me comments at , or @JWorthe.

Do you find this website useful? Check out my support page for options on how to buy me a cup of coffee.

More on Worthe It

Latest Post

19 Sep 2017

An awesome tool for software documentation and visualizing graphs
Browse the Blog Archive

16 Dec 2014 - 19 Sep 2017

See all of the stuff I've written and put on this site.