' This file plays the Passline (and odds if selected) until one of five things has occurred: ' - insufficient bankroll remains to make a passline bet (ruin) ' - a specified amount of action has transpired ' - a specified win goal has been reached ' - a specified # of rolls has been reached ' - a specified # of passline trials have transpired ' ' Insufficient bankroll remaining will be our definition of ruin. ' It's a forced termination due to an inability to continue making wagers ' The remaining criteria (action, win goal, time) are voluntary terminations. ' Use these together with beginning bankroll and bet size to see how ' your risk of ruin is affected. ' ' If you specify an amount of action then the final bets will be limited ' if necessary to avoid exceeding your desired action. E.g. If you specify ' $100 action and $30 bets then three $30 bets plus one $10 bet will be made. ' ' If you specify a number of rolls and an unresolved bet remains when ' the number of rolls has been reached then rolling will continue until ' the final bet resolves. ' ' Note that whenever the amount of action is less than your beginning ' bankroll your risk of ruin is zero. However, this does not mean your ' risk of loss is zero. Your risk of loss (and gain) will vary. ' As your risk of ruin changes, one or more other factors will also change ' such that the total loss divided by the total handle (house advantage) ' remains the same. ' ' On the configuration screen, make sure that negative amounts are NOT ' allowed on the Bankroll tab. If you intend to take odds then be sure to set ' your desired odds multiple on the Bets tab. Also if you want to play odds ' together with a limited amount of action then select "Manual" for the ' "Auto-adjust Bet Amounts" feature on the Auto-play screen ' ' Suggested use: ' - activate this autobet file and return to the game table ' - select NEW from the Game menu (uncheck all items except Retain Auto-bet files) ' - answer the script questions when asked ' - start the hyper-drive ' - after the simulation has finished observe the Sessions Log ' - select "$ Bets Won/Lost (Net)" from the drop-down box ' - ruin (if any) can be observed on the left side of the histogram as ' any amount less than the minimum allowed bet minus beginning ' bankroll. e.g. If min bet on Configuration screen is 5 and beginning ' bankroll is 100 then any amount less than -95 is a ruin ' - in this example enter -96 in the box underneath the histogram just ' to the right of the words "$ Bets Won/Lost (Net)" and press enter ' a portion of the screen will appear with a red background ' - the remaining portion represents the sessions that were ruined ' - the number and % can be read in the lower left-hand corner ' ' Try running a number of sims varying one factor while holding the others ' constant to see how your risk of ruin is affected. ' ' An example: Suppose we ask the question, "What are the chances of ' losing a $50 bankroll before doubling it to $100 while using $10 bets?" ' Start the game and when queried answer the following: bankroll 50, ' action 0, win goal 100, sessions 0, rolls 0, Passline 10, odds no ' After running the sim, the histogram for "$ Bets Won/Lost (Net)" will show ' only two outcomes - the loss of $50 or gain of $50. Use the movable carets ' to discover that the chance of losing $50 before winning $50 with $10 ' bets is approximately 53% ' ' Another example: "What are the chances of losing a $100 bankroll with a ' maximum of $200 in action using $10 bets?" ' Start the game and when queried answer the following: bankroll 100, ' action 200, win goal 0, sessions 0, rolls 0, Passline 10, odds no ' This time the histogram should show that approx. 3% of sessions ' will result in ruin. Repeat this using $400 in action and approx 12% will ' result in ruin. Repeat again with $200 action and take odds to discover ' that approx 23% of sessions will result in ruin. ' ' Many conclusions can be drawn from these simulations. For instance: ' increasing your action relative to your bankroll will increase your risk of ruin. If Initializing script Then Autohandle winning bets = "Take bet and winnings" : Autohandle losing bets = "No bet" : Name CheckStack1 as "Size of each Passline bet" : Name CheckStack2 as "# of sessions desired" : Name CheckStack3 as "# of sessions completed" : Name CheckStack4 as "Amount of action desired per session" : Name CheckStack5 as "Amount of action remaining this session" : Name CheckStack6 as "Beginnning bankroll" : Name CheckStack7 as "Win goal" : Name CheckStack8 as "# of rolls desired per session" : Name CheckStack9 as "# of passline trials desired per session" : Name CheckStack10 as "# of passline trials completed this session" : cs6.beginningbankroll = input("This auto-bet file plays Passline bets (and odds if" & cr & "selected) until one of five things has occurred:" & cr & " " & cr & "-- insufficient bankroll remains to make a Passline bet" & cr & "-- a specified amount of action has transpired" & cr & "-- a specified win goal has been reached" & cr & "-- a specified # of rolls has been reached" & cr & "-- a specified # of Passline trials have transpired" & cr & " " & cr & "What is your beginning bankroll?" & cr) : cs4.actiondesired = input("How much action would you like in each session?" & cr & "(enter zero if you don't want to set an action limit)" & cr) : cs7.wingoal = input("What is your win goal?" & cr & "(enter as a bankroll amount. e.g. if " & "your goal is to win $50 and your bankroll is $100 then " & "enter 150 here. Enter zero for no win goal.)" & cr) : cs2.numsessionsdesired = input("How many sessions would you like to play?" & cr & "(enter zero if you want to play continuously)" & cr) : cs8.numrollsdesired = input("How many rolls would you like in each session?" & cr & "(enter zero if you don't want to set a roll limit)" & cr) : cs9.numtrialsdesired = input("How many Passline trials would you like in each session?" & cr & "(enter zero if you don't want to set a trial limit)" & cr) : : "Get size of Passline bet" : cs1.amountpasslinebet = input("How large would you like each Passline bet to be?" & cr) : If cs1.amountpasslinebet <= 0 Then show message "Please try again." & cr & "The amount bet on the Passline must be greater than zero." : GoTo "Get size of Passline bet" ElseIf cs1.amountpasslinebet < minimum bet Then show message "Please try again." & cr & "The table is currently configured for a minimum bet of " & minimum bet : GoTo "Get size of Passline bet" EndIf Yes / No question "Would you like to play odds bets too?" If Answer was YES Then AutoTake full odds = true Else AutoTake full odds = false EndIf EndIf If Beginning new session Then cs5.actionremaining = cs4.actiondesired : cs10.passlinetrials = 0 : beginning bankroll = cs6.beginningbankroll GoTo "Flat bet" EndIf If Passline resolves Then Add 1 to cs10.passlinetrials EndIf If Next roll is a comeout roll Then GoTo "Flat bet" ElseIf A point is established And Last roll was a comeout roll And PassLineOdds > $0 Then GoTo "Odds bet" Else GoTo "Check status" EndIf : "Flat bet" : Bet cs1.amountpasslinebet on PassLine ' If a limited amount of action has been selected then limit passline ' bet as necessary to avoid exceeding desired action. If cs4.actiondesired > $0 Then If PassLine > cs5.actionremaining Then If cs5.actionremaining >= minimum bet Then Bet cs5.actionremaining on PassLine Else Bet $0 on PassLine EndIf EndIf Subtract PassLine from cs5.actionremaining EndIf GoTo "Check status" : "Odds bet" : ' Odds bet (if selected) has already been made. If a limited amount of ' action has been selected then limit odds here as necessary to avoid ' exceeding desired action. If cs4.actiondesired > 0 Then If PassLineOdds > cs5.actionremaining Then Bet cs5.actionremaining on PassLineOdds If PassLineOdds > cs5.actionremaining Then Bet $0 on PassLineOdds EndIf EndIf Subtract PassLineOdds from cs5.actionremaining EndIf : "Check status" : If PassLine = $0 Or (cs7.wingoal > $0 And Bankroll >= cs7.wingoal) Or (cs8.numrollsdesired > 0 And # of rolls >= cs8.numrollsdesired And Next roll is a comeout roll) Or (cs9.numtrialsdesired > 0 And cs10.passlinetrials >= cs9.numtrialsdesired) Then Add 1 to cs3.numsessionsplayed : If cs2.numsessionsdesired > 0 And cs3.numsessionsplayed = cs2.numsessionsdesired Then Stop AutoRolling / HyperDrive EndIf Start new session(preserve CheckStacks) EndIf