A Game of Tic-Tac-Toe

. . with a Twist

This example uses Javascript to interactively receive input from the users playing the game. At first, it asks you to select which player is to go first. From there each player simply clicks on a square until all squares are chosen (a draw) or one player has three in a row (either across, down or diagonoly).

Remember, the best way to win this game is not to play the game.