Tic Tac Toe

 

Create a VB program in which two players play a game of Tic Tac Toe. Download & unzip (i.e. uncompress) this TicTacToe2Player.zip file and use it as a starting point for this project. (See this video to learn how to download and unzip one of our projects.)

Add the following features for full credit:

- use graphics and elements of good user interface (colorful, Exit button, Reset game button, etc.)
- cheat detection that prevents a player from taking another player's position
- end the game when a player wins and when there is a draw
- announce the game result in a MessageBox or Label
- good hints must be displayed when the Hints button is clicked
- include a game reset Button that clears the screen and begins a new game

For even more credit:
- keep track of the number of wins for "X" and the number of wins for "O" in one or more Labels
- automatically end the program and announce the winner who first gets 5 wins (draws do not count)

Note that the Name properties of the buttons are arranged in rows and columns where the first digit is the row number and the second digit is the column number. Here is the arrangement of buttons

b11   b12   b13
b21   b22   b23
b31   b32   b33

Here are some useful code segments.

If (btn11.Text = "X" And btn12.Text = "X" and btn13.Text = "X") Then ' X wins - top row
   MessageBox.Show("X won")
End If 

Your program must follow the Visual Basic Coding Standards. Review the Program Check Off list.

Upload the following files to DropItTo.Me/cminich. Your first name and last initial should replace "JohnD" in the filenames.

  • Follow these directions to make a screen capture graphic named TicTacToe2PlayerJohnD.png.
  • Follow these directions to make a pdf of your source code named TicTacToe2PlayerJohnD.pdf.
  • Follow these directions to make a screencast video named TicTacToe2PlayerJohnD.mp4. Do not record audio with this screencast. Be sure that the video shows "X" winning a game, then reset the game and show a draw before exiting the game.

Past Projects:
David T

Your program must follow standard Windows conventions as well as our school's Visual Basic Coding Standards.