Skip to content

Configuration Guide

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

Configuration Guide

Tweak compile‑time parameters to balance strength ↔ memory.

Macro / Template Arg Purpose Trade‑off
MaxMoves Size of the Move scratch buffer. ↑ RAM static
MaxDepth Tree search depth. ↑ Flash, ↑ CPU
evaluate() scale Range of scores. Too large wastes bits; too small causes collisions

Heuristic Tips

  • Normalize scores around 0; use symmetric ± values.
  • Use int16_t on AVR when possible.

Memory Saving Tricks

  • Disable Serial debug prints (#define MINIMAX_VERBOSE 0).
  • Store lookup tables in PROGMEM.
  • Prefer bit‑packed boards (example: Checkers uses 4‑bit squares).

Clone this wiki locally