Baroody's Game Development Site

A Website to help you program computer games

Tic Tac Toe Tutorial

OK, here we go with our first game!  It's the classic, Tic Tac Toe.  I think you all know how to play this game...basically, it's a grid with nine spaces as shown below:

Tic Tac Toe Game Grid

The first player places an "X" in one of the nine spaces.  The next player places an "O" in one of the remaining eight spaces.  The game continues to alternate in this manner until one of the players get three of their marks in a row (horizontally, vertically, or diagonally) or there are no spaces left, in which case the game ends in a draw.

Pretty simple, right?  Let's see if we can come up with a version of this using Visual Basic.

To continue, click here or select Step 1: The Form on the navigation bar to the right.