(17B) Fifty Game

07142014, 12:17 AM
(This post was last modified: 06152017 01:18 PM by Gene.)
Post: #1




(17B) Fifty Game
This game is a takeoff on the game of NIM. You are playing against the calculator. You go first, selecting a number from 1 to 6. Then the calculator selects a number from 1 to 6. The running total is maintained and can be checked via RCL SCORE. If you are able to reach the score of exactly 50 on your turn, you win and the calculator beeps its congratulations. Conversely, if the calculator is able to reach the score of exactly 50 on its turn, you lose and the display says COMP=3507. Turn the calculator upside down and observe that you LOSE.
Playing the game:
Strategy There is a strategy for winning the game every time (since you go first). See if you can figure it out. If you make a mistake, the calculator will win. Every time. Below is the 17b solver code. The game also works on the 17bii, 19b, 19bii, and 27s (although the 19b, 19bii, and 27s have a random number function that could make the code simpler). In the code, X means multiply. 0X means zero times. Code:


07142014, 05:58 AM
Post: #2




RE: (HP17B) Fifty Game
Attachment:
The zipfile contains a statefile for Emu42. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)