Lab 06 Pre-lab. Program a Tic-tac-toe Board Game

Objectives: Program the following tasks before lab.

  • create two 2-dimensional arrays to model a tic-tac-toe game board
  • use of dynamic text to display whose turn it is
  • mouse up event for each cell
  • toggle between player 1 and player

Note: As for the pre-lab, there is no code to check winner. In addition, when you click on the marked cells again, it still changes. In the lab next week, we will add code to check winner and make the marked cells non-clickable.

How the Completed Prelab File Works: