Chooses a move with a small negamax alpha-beta search.
This is intentionally a rules engine, not a tournament engine: it searches legal
positions, orders captures and promotions first, and evaluates material only. It has
no opening book, transposition table, clock, or repetition scoring, which keeps it
deterministic and small enough to run synchronously in a browser minigame.
Chooses a move with a small negamax alpha-beta search.
This is intentionally a rules engine, not a tournament engine: it searches legal positions, orders captures and promotions first, and evaluates material only. It has no opening book, transposition table, clock, or repetition scoring, which keeps it deterministic and small enough to run synchronously in a browser minigame.