You are viewing a single comment's thread. Return to all comments →
The solution is simply exoring all the pile sizes
If xor of all pile sizes is 0 then 2nd player wins
else 1st player
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 →
The solution is simply exoring all the pile sizes
If xor of all pile sizes is 0 then 2nd player wins
else 1st player