In this chapter, we have written an AI for Tic-Tac-Toe. With the command line interface, you can play this game against the AI or another human. You can also see how the AI plays against the AI. We have written various tests for the application.
You have learned how Minimax works for turn-based games. You can apply this to other turn-based games as well. If you want to know more on strategies for such games, you can take a look at game theory, the mathematical study of these games.
Reading this means that you have finished the Functional Programming part of this book. One chapter remains, which will explain how you can migrate a legacy JavaScript code base to TypeScript.