You are viewing a single comment's thread. Return to all comments →
input%7 defines the choice that first player can have after a series of steps. if value is 0 or 1
then player 1 loses as he has no choice, else if it is
2 then he will give 2, 3 then he will give 3, 4 then he will give 3, 5 then he will give 5, 6 then he will give 5.
Clearly mod 7 is between 0-7, mod 7 is taken because max is 5 and min is 2, so at the climax of game atmost 7 cards are left
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Stones
You are viewing a single comment's thread. Return to all comments →
input%7 defines the choice that first player can have after a series of steps. if value is 0 or 1
then player 1 loses as he has no choice, else if it is
Clearly mod 7 is between 0-7, mod 7 is taken because max is 5 and min is 2, so at the climax of game atmost 7 cards are left