C port of the Slay hex strategy engine — performance-focused, headless, with alpha-beta search and AI arena.
Repo: https://github.com/chrisaacson69/slay-c
Links: Slay (Python), Slay — Evaluation & Search (the 1v1 eval + search theory this engine implements), Vault Index
C11 rewrite of the Slay Python engine, targeting raw performance for deep search and large-scale AI self-play. Fully headless — no renderer, just engine + AI + arena. Compiles with GCC (make / make debug).
hex_grid — hex grid storage, adjacency, land/waterterritory — territory detection and economy (income, upkeep)units — unit types, placement, combat resolutiongame_state — full game state with clone support for tree searchactions — legal move generation and applicationsearch — alpha-beta with iterative deepening, apply/undo, evaluation functionsarena — AI vs AI match runner with seed control and side-swappingrng — deterministic PRNG for reproducible gamesslay.exe --benchmark [--seed N] [--map-size small|medium|large] [--max-depth N]
slay.exe --arena --ai1 TYPE --ai2 TYPE [--matches N] [--verbose] [--map-size SIZE]