16.1 Problem

Write a program that will enable you to play a simple tic-tac-toe game. It may look like the one in Figure 4.

Figure 4: A simple terminal based tic tac toe game (animation works only in an HTML document).

In case you wanted to use the same colors as in the gif above, you may find the ANSI escape codes useful.



CC BY-NC-SA 4.0 Bartlomiej Lukaszuk