You are viewing a single comment's thread. Return to all comments →
from functools import reduce def zeroMoveNim(p): p=[i-1+2*(i%2) for i in p] return 'W' if reduce((lambda x,y:x^y),p) else 'L'
Seems like cookies are disabled on this browser, please enable them to open this website
Zero-Move Nim
You are viewing a single comment's thread. Return to all comments →