# Reference solution A correct, dependency-free Minesweeper implementation exposing the deterministic `window.__game` API required by the task. Mine positions are supplied explicitly to `init`, so all behavior (adjacency, flood-fill, win/lose) is fully deterministic with no RNG.