Melvin's digital garden

Tic-Tac-Toe AI

Simple rule-based AI that plays tic-tac-toe.

Prefer lower numbered rules.

  1. win if I have two in a row
  2. block if opp has two in a row
  3. else put according to priority of cell

Links to this note