This is a simple tic tac toe game that supports single and local multiplayer modes. Try it here.
The multiplayer game mode is simple, tiles are placed on the board by using a flag that determins which player's turn it is. However, the single player mode uses the minimax algorithm and an evaluation function to find the best counter move for a given input.