Write a program that will enable you to play a simple tic-tac-toe game. It may look like the one in Figure 4.
In case you wanted to use the same colors as in the gif above, you may find the ANSI escape codes useful.
16 Tic-tac-toe ← → 16.2 Solution