Post Reply 
(35s) Yahtzee (Yam) game
10-29-2018, 11:17 PM
Post: #1
(35s) Yahtzee (Yam) game
Hi everyone,
This is a simple Yahtzee game for the HP35s.

Usage :
Start the game by fixing display to 0 (it could be done programmatically, but I prefer letting these kind lf things done by the user), then enter 0 and XEQ Y.

The computer choses 5 dice, eg 45331
You can chose the dice you want to keep by simply keying them, eg 33
Then start the program again with R/S.
The next roll will only chose the dice you need, keeping the ones you selected, eg 33613
To start with a roll of all 5 dice simply key 0 then R/S.

Example :
0
XEQ Y (ENTER)

display: 12565

125
R/S

display: 12533

1253
R/S

display: 12534

You did it!

Next player: 0 R/S

Code:

Y001 LBL Y
Y002 SF 10
Y003 YAM
Y004 PSE
Y005 CF 10
Y006 STO N
Y007 X<=0?
Y008 GTO Y015
Y009 LOG
Y010 IP
Y011 4
Y012 -
Y013 +/-
Y014 GTO Y016
Y015 5
Y016 STO I
Y017 10^x
Y018 STOx N
Y019 RANDOM
Y020 6
Y021 x
Y022 1
Y023 +
Y024 IP
Y025 RCL I
Y026 1
Y027 -
Y028 10^x
Y029 x
Y030 STO+ N
Y031 DSE I
Y032 GTO Y019
Y033 RCL N
Y034 STOP
Y035 GTO Y001
Find all posts by this user
Quote this message in a reply
Post Reply 




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