First to 21 loses.
gantr833 (155)

In this game you will be playing against an AI. You can raise the counter by 1, 2, or 3. Then the AI will go. If the other person reaches 20, you basically lose.

You are viewing a single comment. View All
TuanNguyen8 (0)

My teacher teached me a trick to play this at my extra class when in was a kid. The objective is to hit n(the number that if u hit u will lose)-1 first. U have to go first if (n-1)/(k(the max value that u can add)+1)=m>0. Then u will add m. Else u have to let the opponent go first. Then on the other turns, the sum of your and your opponents point have to equal to m. But in this case (21-1)/(4+1)=0 so u have to let the bot go first but u cant do that because “0” is an invalid value so u cant win this.
But this is very good tho!!!
Good job.

Pythonier (303)

@TuanNguyen8 Wow! that is really complex. I found another trick that works: I just added the a number that would make their and my number equal to 4.