Introduction to Nim Game

  • + 0 comments

    Javascript one-liner:

    const nimGame = p => p.reduce((a, v) => a ^= v) ? 'First' : 'Second'