Poker Hands
This routine draws five-card poker
hands from a regular 52-card deck. You need to make choices
to start. After each draw, it shows the hand at the upper left, records
the outcome at the upper right, and updates the large table. The columns
in the table give:
-
The "Number"
of each type of hand drawn so far
-
The "Expected
Number" of each type of hand based on
the number of hands drawn so far
-
The "Percentage"
of each type of hand drawn so far
-
The theoretical "Expected
Percentage" of each type of hand
Choices:
There are some choices to make to run
the program:
-
How quickly should the hands be
drawn? The
choices are
-
Fast:
Which may not be very fast, depending on the environment
-
Slow:
Which is useful for seeing each drawn hand and its effect
-
Batch:
This is the fastest. The draws are performed without updating the graphics
after each draw, but just after all draws have been made.
-
How many draws to perform?
The choices are 1, 10,
25, 100, and 1000. Click on the button that you wish. You can click on
the buttons more than once to request more draws. For example, if you wish
to have 250 draws, click on "100" twice and "25" twice. (Don't
click on them too quickly or they won't all register.) Right below the
numbered buttons, there is a number showing how many draws have been requested
so far.
-
How many more draws to perform?
Even after the draws
have been completed, you can ask for more draws by clicking on the numbered
buttons again.
-
Start Over:
This button sets everything back to 0. You can then make your choices again.
(Some times an extra hand gets recorded at the upper left. If so, hit the
Start Over button
again.)
-
Pause:
This button stops the drawing. You can restart the drawing
from where it left off by pressing "Resume"
(which is the same button), or you can hit "Start
Over" to start over.