What do we need?
Anyone knows how tic-tac-toe works: it is a 1vs1 game that is played in a 3 x 3 grid, where the goal is to create a sequence of three symbols of the same type in a horizontal, vertical, or diagonal row. The game is turn-based, where each player can place his symbol (typically O or X) anywhere in the grid.
This game has a huge history and many people have written books and programs talking about it. We will be a part of them, discovering how even the simplest game can be complicated when talking about computer games.
In order to create this game, we need the following:
- A static camera that is always pointing to the grid
- A 3 x 3 grid that is made by nine individual square Static Mesh
- Two Symbols: O and X
- A user interface showing which player can make his move and the state of the game
- A game logic: a controller for the grid state and a turn handler