home *** CD-ROM | disk | FTP | other *** search
/ 100 Smash Win 95 Games / 100SMASH.iso.7z / 100SMASH.iso / wincrp36 / sample6.log < prev    next >
Text File  |  1996-12-04  |  6KB  |  1 lines

  1. WinCraps AutoBets                                                                                                                24                                                                                                                              ' Create your own statistics.                                                                                                  99----                                                                                -------------                              ' This example figures the percentage of Hard 4's rolled versus all 4's                                                        99----                                                                                -------------                              ' It uses 3 Chip-Stacks:  the first two keep track of the numbers of Hard 4's                                                  99----                                                                                -------------                              ' and 4's that are rolled.  The third is a place to do the math and holds the                                                  99----                                                                                -------------                              ' result.  These first two Auto-Bets do the tallying:                                                                          99----                                                                                -------------                              When . . .                                                                                                                     01------------------------------------------------------------------------------------------------------------------------------          A Hard 4 has rolled each time                                                                                         202013nn                                                                                0005   eachccccnn----------------------- then . . .                                                                                                                     11------------------------------------------------------------------------------------------------------------------------------          Add $ 1 on Chip Stack #1                                                                                              300020                                                                                      1ffffnn160001----------------------- When . . .                                                                                                                     01------------------------------------------------------------------------------------------------------------------------------          Any 4 has rolled each time                                                                                            202004nn                                                                                0005   eachccccnn----------------------- then . . .                                                                                                                     11------------------------------------------------------------------------------------------------------------------------------          Add $ 1 on Chip Stack #2                                                                                              300020                                                                                      1ffffnn160002----------------------- ' This next Auto-bet does the math by copying the # of Hard 4's into                                                           99----                                                                                -------------                              ' Chip-Stack #3 and then multiplying it by 100 (to make the math work out                                                      99----                                                                                -------------                              ' since Chip-Stacks aren't allowed to be fractional amounts).  Then the result                                                 99----                                                                                -------------                              ' is divided by the total number of 4's.  So if Chip-Stack #3 shows $50,                                                       99----                                                                                -------------                              ' it means that 50% of the 4's rolled were Hard 4's!                                                                           99----                                                                                -------------                              ' Actually the first two lines could be combined into:                                                                         99----                                                                                -------------                              '        Bet 10000 % of Chip Stack #1 on Chip Stack #3                                                                         99----                                                                                -------------                              Do this . . .                                                                                                                  13------------------------------------------------------------------------------------------------------------------------------          Bet 100 % of Chip Stack #1 on Chip Stack #3                                                                           300011                                                                                    100160001160003-----------------------          Multiply by 100 on Chip Stack #3                                                                                      300040                                                                                    100ffffnn160003-----------------------          Divide by 100 % of Chip Stack #2 on Chip Stack #3                                                                     300051                                                                                    100160002160003-----------------------