Subscribe to
Posts
Comments
NSLog(); Header Image

Winning at Nim

If the idea is to create a nim sum of 0 as this article proposes, then I've yet to find a way to win at this game of Nim.

D'oh. Once I figured out that I could make Marvin go first I won the first time. The nim sum is already 0 when you start the game, so you have to make Marvin upset the balance right away:

111 = 7
101 = 5
011 = 3
001 = 1
---
224

Trackback URI | Comments RSS

Leave a Reply

Please abide by the comment policy. Valid HTML includes: <blockquote><p>, <em>, <strong>, <ul>, <ol>, and <a href>. Please use the "Quote Me" functionality to quote comments.