rendered paste body#Executed everytime there is a deal, call, bet, raise, fold, flop, turn, or river.
if {[tblValidate] == 0} { break; }
#Decision based on holecards only...
if {$hcr(0) == $hcr(1)} {
if {$handstate == $PREFLOP} {
if {$raisecount == 0} {
tblRaise [expr {$bigbet*4+($callers*$bigbet)}];
} else {
tblCall;
}
break;
} elseif {$handstate == $FLOP} {
if {$raisecount == 0} {
tblRaise [expr {$potsize*0.66}];
} else {
tblCall;
}
} elseif {$handstate == $TURN} {
if {$raisecount == 0} {
tblRaise [expr {$potsize*0.66}];
} else {
tblCall;
}
} elseif {$handstate == $RIVER} {
if {$raisecount == 0} {
tblRaise $potsize;
} else {
tblCall;
}
}
}
if {$handstate <= $PREFLOP && $decision == 0} { tblCheckFold; }
#End of holecard eval.
#Decision based on holecards+board...
#<board evaluation goes here>
#...
#...
if {[pIsFlush] == 1} { tblRaise $potsize; }
#Default action for any hand not handled...
if {$decision == 0} { tblCheckFold; }