Lessons Building a Magic Square Tic-Tac-Toe AI

Posted on 28th May 2018 by Ryan Somma in Geeking Out
Magic Square Tic Tac Toe

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:

  1. Each player takes turns rolling the dice. Starting at zero, they add each role to their score.
  2. 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    
  3. The first player to reach 100 wins.

[Continue Reading…]

Comments Off on Lessons Building a Magic Square Tic-Tac-Toe AI