Practice

In this step, you studied:
  • console output
  • variables
  • data types
  • arrays
That is enough to start creating a tic-tac-toe game.

Game board

At this stage, the task is to create a game board and print it to the console. The board consists of nine cells — a great use case for an array.
Line 1, Char 1

Printing the game board to the console

For players to see the game board, it needs to be printed to the console. The game board has 3 rows of 3 cells — let's print them.
Line 1, Char 1

Adding indices to the board

The board is printed to the console, but how will players know which index corresponds to each cell? To solve this, initialize the array so that each element contains a string representation of its index:
Line 1, Char 1

Summary

Great job! A good start! You have done a lot of work studying the theory and taken the first step toward writing your own game. It gets more interesting from here!