Assignment 32 - Tic Tac Toe

Goals

The purpose of the assignment is to learn to

  1. Create games using NonBlockingGame
  2. Manage a datastructure of values.

Programming part

Tasks

Setup

To start simple initialize a grid which is 3 by 3. Display the numbers 1-9 in the grid like the following.

1 | 2 | 3 --- | --- | --- 4 | 5 | 6 7 | 8 | 9

User Input

Take an integer input from the user that matches the above grid (1-9). If the input is invalid display a message to the player and skip their turn. Otherwise place a mark on the position the player specified. Use a different mark for each player.

Help

For C++

NonBlockingGame documentation

For Python

NonBlockingGame documentation