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 8 / 8 1200
Just a Nim game? 3 / 6 1400