Tic Tac Toe with JavaScript

Here is a great coding challenge for someone who has never done this. Write a complete game from scratch with no libraries or frameworks. Clearly this was a job for JavaScript. I chose to make a tic-tac-toe game. It took just about an hour which isn’t half bad since this is my first attempt at a JavaScript game.

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.