Module Sprague - Grundy theorem

Sprague - Grundy theorem

**Rarely used in official contests.** This theorem is really useful to solve Nim stone-picking-game problems with constraints.

Resources

- [CP Algorithms: Sprague-Grundy theorem. Nim](https://cp-algorithms.com/game_theory/sprague-grundy-nim.html)

Problems

Just a Nim game 11 / 12 1200
Just a Nim game? 3 / 8 1400