Sprague–Grundy theorem

The theorem assigns each position in a finite impartial normal-play game a nim heap of equal strategic value, with disjoint game sums represented by bitwise XOR of their Grundy numbers.

Connect