67FUN rom sent to Monte - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: 67FUN rom sent to Monte (/thread-7309.html) |
67FUN rom sent to Monte - Gene - 11-25-2016 09:24 PM First, thanks to all here for their patience as we have been working on this project. I'm surprised by the view counts of the threads and can't help but wonder if many have clicked on them to hope that we had finally finished. :-) Thanks to Dieter, Robert and all for their help. Here it is: 67 FUN mod file 67 FUN .rom file Code: 28 FNCTIONS XROM # Description More here later on how to play them. Game of 1130: XROM 23,01 History: This is based on the HP-65 game of Eleven-Thirty written by John Rausch. It appeared in the V2N3P28 issue of PPC Journal (March 1975). Object: The calculator generates two random numbers between 11 and 30 and displays them as XX.YY (for example, 15.22 could be displayed). The user then places a bet that the next number is equal to or between the two numbers displayed, endpoints inclusive. You win if it is and pay if it is not. Obviously, if 13.14 is displayed, then you should probably bet $0 and so that you will lose $0. If the numbers shown are 13.16 and you bet $0, the program will say you win if the next number is 14, but you won that $0 bet nothing more. Play: 1) XEQ 1130. 2) At SEED? Prompt, enter a value between 0 and 1, preferably at least 6 decimal digits and press R/S. 3) At POT? Prompt, enter your starting monetary amount you are playing with in the game and press R/S. 4) Calculator displays numbers in the form of XX.YY and asks you to enter a bet. Enter a value for your bet that the next number is between XX and YY and press R/S. 5) Calculator displays WIN or PAY and shows the number generated and the XX.YY range previously. 6) Press R/S to try again. 7) To check your bank at any time, press E in USER mode. Display shows POT=$ZZZ. Press A to play again. Example game: See Key 1) XEQ ALPHA 1130 ALPHA 2) SEED? 0.123456789 R/S 3) POT? 50 R/S 4) 24.29 BET? 10 R/S 5) WIN 28–24.29 R/S 6) 13.14 BET? 0 R/S 7) WIN 14–13.14 R/S (Note: You won $0 here) 8) 16.24 BET? 50 R/S 9) PAY 14–16.24 etc. Specifics: 1) Program is 130 bytes long. 2) Calls XROM 23,25 (Seed? Prompt) and XROM 23,26 (Random Number Generator) 3) Uses registers 00 – 05. SIZE 006 required. a. 00 – random number seed b. 01 – first two digit number (XX) c. 02 – second two digit number (YY) d. 03 – third two digit number to see if between XX.YY e. 04 – amount of BET f. 05 – amount of POT 4) Labels used a. 01 – Random number routine. Calls XROM R (23,26) b. 02 – You lost c. 03 – Common label to display results d. A – Starts a new game e. E – Displays POT Program Listing: Code: 01 LBL "1130" Game of 2636: History: This is based on the game of Twenty-six or Thirty-six from the HP 67/97 Users’ Library Solutions Book Games of Chance, page 6. Originally written by Matthew Bishop. Object: Game of 26: You choose a number from 1 to 6 as your number and pay $0.25 to play. The calculator then rolls 10 dice 13 times for a total of 130 numbers of 1 to 6. If your number appears 11 or fewer times, then you win a dollar. If it appears exactly 13 times, then you win $0.50. If it appears 26 or more times, you win $1. If it appears 33 or more times, you win $2. (Note: If your number appears 28 times, you win $1, if it appears 35 times, you win $2 total). Game of 36: Place a bet (deducted from your account). Player continues to roll dice until he decides to stop or the sum or all numbers rolled exceeds 36 automatically losing. When the first player is done, if his total is 36 or less, the second rolls, following the same procedure. If the second player stops before his or its total exceeds 36, the totals are compared. Whoever comes closes to 36, wins. On a tie, you get your bet back. The calculator will match your bet (winner gets total bet by both players); it uses a simple strategy to decide when to stop rolling dice. Play: 1) XEQ 2636. 2) At SEED? Prompt, enter a value between 0 and 1, preferably at least 6 decimal digits and press R/S. 3) To play 26, key in die you choose (1-6) and press A. 4) Display pauses and displays a sequence of 10 digit random numbers (13 times). 5) The number of times your number occurs is displayed, followed by the amount you won or lost, followed by your total monetary position. To play again, go back to step 3. 6) To play 36, decide if you wish to go first or you want the calculator to go first. 7) If you wish to go first, enter your bet and press B and the calculator will roll your dice. If you wish to let the calculator go first, enter your bet and press C. 8) The calculator will display your total points and show HP’s points. 9) Continue to let the program run until you wish to stop accumulating your points. If you do not stop before your total goes over 36, then you automatically lose. 10) When you wish to stop, press the decimal point and the calculator will begin accumulating points. 11) If the calculator goes over 36 before it stops, you automatically win. 12) If the calculator stops with its total under 36, the winner is whoever is closer to 36. 13) Go to step 6 to play again. Example game of 26: See Key 1) XEQ ALPHA 2636 ALPHA 2) SEED? 0.123456789 R/S 3) BANK=$0.00 6 A (Note: Choose the number 6 and play the game of 26) 4) 5662125224 6411215332 … 5136614123 27 TIMES WIN $1.00 BANK=$0.75 5) WIN 28–24.29 R/S 6) 13.14 BET? 0 R/S 7) WIN 14–13.14 R/S (Note: You won $0 here) Example game of 36: See Key 1) XEQ ALPHA 2636 ALPHA 2) SEED? 0.123456789 R/S 3) BANK=$0.00 5 B (Note: Bet $5 and go first in a game of 36) 4) You-5 HP-0 You-11 HP-0 You-17 HP-0 You-19 HP-0 You-20 HP-0 You-22 HP-0 You-27 HP-0 You-29 HP-0 You-31 HP-0 You-35 HP-0 Press . quickly (The decimal point) You-35 HP-6 You-35 HP-10 You-35 HP-11 You-35 HP-12 You-35 HP-14 You-35 HP-15 You-35 HP-20 You-35 HP-23 You-35 HP-26 You-35 HP-28 You-35 HP-30 You-35 HP-35 WIN $0 (Note:A tie game) BANK=$0.00 Specifics: 1) Program is 297 bytes long. 2) Calls XROM 23,25 (Seed? Prompt) and XROM 23,26 (Random Number Generator) 3) Uses registers 00 – 05. SIZE 006 required. a. 00 – random number seed b. 01 – Bank $ c. 02 – times your die occurred in game of 26. d. 03 – Your score in 36. e. 04 – HP’s score in 36. f. 05 – amount of BET 4) Labels used a. 00 – b. 01 – Random number routine. Calls XROM R (23,26) c. 02 – You lost d. 03 – Common label to display results e. 06 f. 07 g. 08 h. 09 i. 77 j. 88 k. 99 – Random number generator l. A – Starts a new game of 26 m. B – Starts a new game of 36 – human first n. C – Starts a new game of 36 – HP first o. D – Displays BANK amount. Program Listing: Code: 01 LBL "2636" RE: 67FUN rom sent to Monte - Dieter - 11-27-2016 07:43 PM (11-25-2016 09:24 PM)Gene Wrote: Here it is: I see you added some documentation for the 1130 and 26/36 games. Maybe this deserves a separate PDF, a kind of equivalent to the Games Pac manual. ;-) A few remarks: (11-25-2016 09:24 PM)Gene Wrote: 2) At SEED? Prompt, enter a value between 0 and 1, preferably at least 6 decimal digits and press R/S. The seed does not have to be between 0 and 1, it does not even have to be positive as an ABS FRC sequence makes sure that only the absolute fractional part is stored. If's fine if the user enters any number with a fractional part. He does not even have to enter anything – if he does so the previous seed is used. Also 6, 7 or more decimals are not better than one single digit – the used RNG will generate one million distinct numbers from any seed up to 6 digits long. BTW, there is a reason why some seeds with "too many" decimals may cause problems. If the resulting first random number is 0,99999 99999 and this is multiplied by something like 3 or 5 the result may round to exactly 3 and 5 so that the usual "INT 1 +" will yield 4 resp. 6. This usually does not happen as the RNG procudes six-digit random numbers, but if the user enters a "dangerous" seed... So the intial seed should be a number with an up to 9-digit fractional part. Note: the mentioned problem may occur if a random integer between 1 and 2...5 is generated. So rolling a die (1...6) is safe. ;-) The only program that may be affected is the PRS program where a value between 1 and 3 is generated. (11-25-2016 09:24 PM)Gene Wrote: 10) When you wish to stop, press the decimal point and the calculator will begin accumulating points. At this point you may press either "0" or "." – boths enters a zero. (11-25-2016 09:24 PM)Gene Wrote: Example game of 26: The last lines seem to be left over from the 1130 example. ;-) Dieter RE: 67FUN rom sent to Monte - Gene - 11-27-2016 09:45 PM Yes, a PDF eventually! I will be glad to create a shell document for the remaining programs and perhaps we can collaborate on the final result? RE: 67FUN rom sent to Monte - Dieter - 11-28-2016 07:27 PM (11-27-2016 09:45 PM)Gene Wrote: Yes, a PDF eventually! Gene, I fear you will have to provide more that just a shell. At least if the PDF is written in English – German is another case. ;-) I'll be glad to offer what I can do here, but I think that's not much. I also think the PDF should contain some pictures or illustrations for each program, similar to the original HP manuals. Maybe we have someone here that can do something like this... Dieter RE: 67FUN rom sent to Monte - Gene - 11-28-2016 07:34 PM I'm thinking more of the details of some of the programs, especially the ones you wrote or modified...such as register usage - what the memories contain... label usage - LBL 01 is for XYZ, etc. I can handle the sample games, listings, etc. It's the technical details that I could use help with. RE: 67FUN rom sent to Monte - Dieter - 11-28-2016 08:29 PM (11-28-2016 07:34 PM)Gene Wrote: I'm thinking more of the details of some of the programs, especially the ones you wrote or modified...such as register usage - what the memories contain... label usage - LBL 01 is for XYZ, etc. Some programs have been more or less completely rewritten, others only have been modified. Of course I know the former better than the latter, but I think I can provide some of these "technical details". Dieter |