nimber
Nimber is a concept in combinatorial game theory used to analyze impartial games under normal play. Each position in such a game is assigned a nimber, also called a Grundy number, defined as the mex (minimum excluded value) of the set of nimbers of its options. The nimber of a terminal position is 0. The Sprague-Grundy theorem states that every impartial game is equivalent, under disjunctive sum, to a nimber, so the outcome of any sum of games is determined by the nimber of each component.
Arithmetic with nimbers involves two basic operations. Nim-addition, or nim-sum, corresponds to bitwise exclusive OR (XOR)
Finite nimbers align with ordinary natural numbers: in the classic Nim game, a heap of size n
Historically, nimbers emerged from the work of Sprague and Grundy and were developed further by John Conway.