Skip to content

Example Sketches

Trent M. Wyatt edited this page Apr 23, 2025 · 1 revision

Example Sketches

Each directory under examples/ is a complete playable game.

Sketch Input AI Depth Notes
Checkers Algebraic (e.g., B6‑A5) 4 Kinging & multi‑jumps
Connect‑Four Column number 4 7 × 6 standard board
Gomoku row col (e.g., 7 7) 3 15 × 15 board
Othello row col 4 8 × 8 Reversi

Running an Example

arduino-cli compile --fqbn arduino:avr:uno examples/ConnectFour/ConnectFour.ino
arduino-cli upload  --fqbn arduino:avr:uno -p /dev/ttyUSB0 examples/ConnectFour/ConnectFour.ino

Porting an Example

  1. Identify board representation.
  2. Implement evaluate, generateMoves, etc.
  3. Tune MaxMoves, MaxDepth.

Clone this wiki locally