Skip to content

Configuration Guide

Trent M. Wyatt edited this page Apr 23, 2025 · 2 revisions

Configuration Guide

Tune compile‑time parameters for your 2 KB RAM / 32 KB flash microcontroller.

Parameter Purpose Trade‑off
MaxMoves Size of the Move scratch buffer ↑ Static RAM
MaxDepth Search depth (ply) ↑ Flash & CPU
Heuristic scale Range of evaluate() scores Too wide wastes bits; too narrow causes ties

Heuristic Tips

  • Keep scores symmetric around 0.
  • Use int16_t for AVR.

Memory‑Saving Tricks

  • Disable Serial debug prints (#define MINIMAX_VERBOSE 0).
  • Store constant tables in PROGMEM.
  • Represent boards with bit‑packed integers.

Clone this wiki locally