summaryrefslogtreecommitdiff
path: root/math/nimm.cpp
blob: 837a2ad355b094476978fc3418f489a5984571bd (plain)
1
2
3
4
5
6
#Most important function!!!11elf
bool WinNimm(vector<int> game) {
	int result = 0;
	for(int s: game) result ^= s;
	return s > 0;
}