# -------------------------------------------------------------------- # Elaborations # -------------------------------------------------------------------- # -------------------------------------------------------------------- # amount-soarbot-has-bet*big-blind - amount-soarbot-has-in-pot # adjusted for big blind ante. # -------------------------------------------------------------------- sp {elaborate*amount-soarbot-has-bet*big-blind (state ^io.input-link.game ) ( ^amount-soarbot-has-in-pot ^bet-size ^blind big) --> ( ^amount-soarbot-has-bet (- )) } # -------------------------------------------------------------------- # amount-soarbot-has-bet*small-blind - amount-soarbot-has-in-pot # adjusted for small blind ante. # -------------------------------------------------------------------- sp {elaborate*amount-soarbot-has-bet*small-blind (state ^io.input-link.game ) ( ^amount-soarbot-has-in-pot ^bet-size ^blind small) --> ( ^amount-soarbot-has-bet (- (int (/ 2)))) } # -------------------------------------------------------------------- # amount-soarbot-has-bet*no-blind - amount-soarbot-has-in-pot. # -------------------------------------------------------------------- sp {elaborate*amount-soarbot-has-bet*no-blind (state ^io.input-link.game ) ( ^amount-soarbot-has-in-pot ^blind no) --> ( ^amount-soarbot-has-bet ) } # -------------------------------------------------------------------- # adjusted-probability - best-hand-probability + potential # - negative-potential. # (How good the hand is now + its chances of getting better - its # chances of getting worse.) # -------------------------------------------------------------------- sp {elaborate*adjusted-probability (state ^io.input-link.game ) ( ^best-hand-probability ^potential ^negative-potential ) --> ( ^adjusted-probability (- (+ ) )) } # -------------------------------------------------------------------- # adjusted-odds - adjusted-probability * pot-odds. # # Anything > 1 is a good bet. For example, if adjusted-probability # is .33 and pot-odds are 4, we're getting good odds. If pot-odds # are 2, we're getting poor odds. # -------------------------------------------------------------------- sp {elaborate*adjusted-odds (state ^io.input-link.game ) ( ^pot-odds ^adjusted-probability ) --> ( ^adjusted-odds (* )) }