6 ms·
A few things: * I'm having issues with the terminal where what I type is not always on the bottom line. Also, the up/down arrows for getting command history d
by jaredsohn 14y ago
A few things:
* I'm having issues with the terminal where what I type is not always on the bottom line. Also, the up/down arrows for getting command history don't always show what I would expect and I get latency fairly frequently.
Also spoiler here's an algorithm that will let you win every time where it is possible to win. I debated a bit about posting this, but if I didn't I'm sure somebody else would.
1. If number is divisible by 6, do not play since you'll always lose.
2. If the number is less than 6, do not play since it doesn't allow you to take them all in the first move, despite what the instructions suggest.
3. Otherwise, your first pick should be a number that takes the remaining number to a multiple of six (see rule #1). Then, you should look at what number the computer picks and subtract it from six when you pick your number.
Getting to the top of the leaderboard is dependent on understanding this and how much time you're willing to spend playing.
Or you could write a bot that plays the game for you. Then getting to the top of the leaderboard depends on who started their bot first and the quality of bots' network connections.
- gms7777 14y agoI was about to post this exact thing. Its easy enough to figure out if you watch the computer play. Using this its possible to win every single game as long as the number you start with isn't divisible by 6.
- rvivek 14y ago:) This was just a teaser page/warmup puzzle for fun. Thanks for trying out!