The game itself is pretty basic but outlines some pretty important concepts in game design. I’m going to work on bridging a more elegant algorithm for calculating a win or draw but that will have to wait until another day.
I’ve also decided that I’m going to tackle a few more games, and of course, share them with the good folks of the internets. So far I have in mind to build Snake, Pac-Man and Tetris.
All of my source is on JSFiddle so feel free to use/abuse it as you wish.