Ejemplo n.º 1
0
        stake = 100
        atm = 0
        for i in range(1, 50):
            if stake < line_bet:
                stake += 100
                atm += 100
            if stake > 250:
                # bank 100
                stake -= 100
                atm -= 100
            # place line bet if we can
            if stake >= line_bet:
                if g.play_pass_line(line_bet):
                    stake -= line_bet
            # place the line odds if we can
            if stake >= line_odds and g.point_on() and g.pass_line_odds == 0:
                g.play_pass_line_odds(line_odds)
                stake -= line_odds
            # place place bets if we can
            p_on = g.point_on()
            have_place = g.have_place_bets()
            if stake >= 32 and p_on and not have_place:
#                print "Playing across"
                for i in [4, 5, 6, 8, 9, 10]:
                    if i != 6 and i != 8 and i != g.point:
                        g.play_the_number(i, 5)
                        stake -= 5
                    if i != g.point and (i == 6 or i == 8):
                        g.play_the_number(i, 6)
                        stake -= 6
#           print "Stake = %s" % stake