modified by Russ Webb on 2004-04-22 21:07:13
Author - David Winslow
Summary: Scores mini golf for 4 players - very easy scoring ...
Instructions: In the third line of the code, change
P1, P2, P3, and P4 to the initials of the
people you are playing with.
Make sure that "Places(x)" is set to 8.
|Clear| Press "Clear" to set all scores to 0
|Score| "Drag" holes to the "Score" button
----- to score a hole (or, tap the hole and
After pressing "Clear" the stack looks like:
0.00000000 = tos
The "total" score is the top of stack.
The "first hole" is second on the stack,
the "second hole" is third on the stack,
etc ... All the other holes are on the
stack also -- you just can't see them.
So, tap hole one (second on the stack above)and
press the "Score" button. Or, just drag hole
one to the "Score" button. You will see
Par P1 P2 P3 P4 Done
< > < > < > < > < > D
Tap the ">" button for "Par".
The number on the top of the stack
changes to 103.00000000.
NOTE: The first tap of ">" for "Par" or any
of the players increases the number by 3.
Subsequent taps of ">" or "<" increment and
decrement by 1.
Tap the ">" button for "Par" once more so that
the number is 104.00000000.
For each of the players tap the ">" button.
Now the number is 104.03030303.
P1 actually got 5, P2 actually got 3
P3 actually got 4, and P4 actually got 3.
Tap the buttons until the number says
104.05030403. Now tap the "D" button.
You have just scored hole 1.
The stack now looks like this:
4.05030403 = tos
The format for the top of the stack
is PT.P1P2P3P4 where PT = par total so far,
P1 = player one's score so far, etc ...
The format for all other numbers is
HHPP.P1P2P3P4 where H is the hole number,
PP is par for that hole, and P1 through P4 are
the players scores for that hole.
Why don't you try scoring holes 2, 3, and 4.
Each hole is par 3 and everyone gets par.
The stack now looks like this:
13.14121312 = tos [ total scores so far ]
For the first four holes, the par is 13
and P1 to P4 have 14, 12, 13, 12 respectively.
All holes are still present on the stack but
in a different order. Now, the next 4 holes
Try pressing "Clear" and "Cancel".
The order is restored ...
Now score hole 4 and just press the "D"
The stack again shows totals and holes 5 through
8. After scoring hole 8, holes 9 to 12 will be
visible. After scoring hole 12, holes 13 to 16
will be visible. After scoring hole 16, holes
17 and 18 and holes 1 and 2 will be visible.
Remember that "Clear" and "Cancel" restores the
When scoring a hole and pressing a "<" key
you will not be permitted to make the score
a negative score.
You can also use this program to play
real golf with TWO people. Score the
first 9 holes just using P1 and P2.
Score holes 10 to 18 just using P3 and
P4. In this case, P1=P3 and P2=P4 ...
You will have to add the first 9 and
the last 9 together to obtain your final
scores. The reason for this is that no
total can be more than 99. Actually, I did
design this to be a "mini golf" program and
only thought of "real golf" after.
Note: YOU can play the holes in ANY order.
Just use RPN's clear to bring the hole
into view and drag it to the "Score"
My wife and I like to play mini golf when it is
not crowded and we play each hole twice (DON'T
TELL). So I renamed P1, P2, P3, P4 to
B1, B2, D1, and D2.
'Score hole\Par P1 P2 P3 P4
VvCvc( : v1Cp=0(B:v2/w2*nCpv2/f0=0(-:+)) :
[c] D'Reset all scores?|Ok|Cancel|'