DField SolutionsMérnöki stúdió · Budapest
Loading · Töltődik
Skip to content
Category: Adversarial game AI

Gambix

It sees your move coming.

What it is

Gambix is a game AI that plays adversarially using minimax search with alpha-beta pruning, built from scratch. Centre-biased move ordering helps the pruning cut more branches, and a live counter shows how many positions were searched on each move. It is a from-scratch, dependency-light build - 13 tests include the guarantee that alpha-beta returns the identical move to plain minimax while visiting far fewer nodes - that you can download and run locally.

From-scratch minimax with alpha-beta pruning and centre-biased move ordering, with a live “positions searched” counter. 13 tests, including that alpha-beta returns the identical move to plain minimax while visiting far fewer nodes.

What's inside

The full source, the tests, and CI. Open it, read it, change it. A zero-dependency core, free, in the MIT spirit.

Run it after unzip

pnpm install && pnpm dev