Lessons Building a Magic Square Tic-Tac-Toe AI
Magic Square Tic Tac Toe
Introduction
Adding to my expanding collection of Explorable Explanations (EEs), I’ve been interested in isomorphs of various board games. For example, the game Snakes and Ladders / Chutes and Ladders (a game with zero player agency originally intended to teach Hindu children the concepts of karma and destiny), can be played with just a six-sided dice and some rules:
- Each player takes turns rolling the dice. Starting at zero, they add each role to their score.
- If a player’s score is any of the following, change it according to this chart:
Value New Value Value New Value 1 38 48 26 4 14 49 11 9 31 56 53 21 42 63 19 28 84 64 60 36 44 92 73 51 67 95 76 71 91 98 78 80 100 - The first player to reach 100 wins.




