The Tic-Tac-Toe game can be found in the /TwoPlayerGame/examples folder. You should compile and upload the program to your two devices according to the procedures outlined on the previous page of this guide.

Player 1 always plays the "X" and Player 2 always plays the "O". It depends upon the state of the IS_PLAYER_1 flag that you set when you compiled and uploaded the code to your device. The opening splash screen will tell you which one you have.

After the connection has been made between the two devices there will be a coin toss to decide who goes first. When it is your turn you will use the joystick to move your "X" or "O" around the 3 x 3 grid. It will appear green if the square is empty. It will turn red if you try to overwrite an existing symbol and it will not let you place your symbol there. When you have it in position, press the "Select" button. Your symbol will turn white. It will then be the other players turn. The image on the left shows the "O" getting ready to make the second move of the game. Note his symbol is green. On the right "X" tries to place in the same location and his symbol turns red indicating an illegal move.

Turns alternate until someone gets three in a row either horizontally, vertically, or diagonally or until all nine squares have been filled with no winner. In that case the game is declared a draw. Additionally to demonstrate the features of the system you can press the "Start" button to forfeit the game. When the game is over you will be prompted to press "Start" to start a new game. Make sure that you and your opponent don't start exactly simultaneously so that you are not both offering at the same time.

This guide was first published on Jul 07, 2020. It was last updated on Jul 07, 2020.
This page (Playing Tic-Tac-Toe) was last updated on Sep 20, 2020.