coxmediagroup/Tic-Tac-Toe — pull request #105 by mwieher (2013-07-26 14:54:19+00:00)
Title: Tic-Tac-Toe back-end

Hello,

I was referred by Dylan Thompson, and he mentioned your team was looking for a Django developer to help out.

I've built out a simple Tic-Tac-Toe Django back-end with a very rudimentary User Interface, since this is the best way to express my current skill set. While I can work with templates, and am focused very much on growing into JavaScript; especially Backbone.js and JQuery; most of my experience is with back-end development, so I wrote this as a semi-REST-ful architecture that plays Tic-Tac-Toe. The README has more details on how to play and interact with the game AI.

In short, there are only two URLs for this application,

/new-game/
-- will create a new game board and (50% of the time) the AI will make the first move.
/player-move/?board={ ...
-- accepts a board definition and a board ID describing the player's move, will either end the game if the player won, or make a move and win, or let the player make another move.

My focus on this challenge was to build out a Django based back-end, to show the parts of Django that I'm most familiar with, and to create the mechanism for the Tic-Tac-Toe game to be played.

While I feel as if the game is slightly incomplete without a more fully developed UI, I feel that this represents a solid back-end that can be plugged into any front-end, as desired; and still be played pretty easily.