You are viewing a single comment's thread. Return to all comments →
Javascript one-liner:
const nimGame = p => p.reduce((a, v) => a ^= v) ? 'First' : 'Second'
Seems like cookies are disabled on this browser, please enable them to open this website
Introduction to Nim Game
You are viewing a single comment's thread. Return to all comments →
Javascript one-liner: