bet = betComputer.induceBetVariance(bet) action = betComputer.computePreFlopAction(bet, position, amtToCall, smallBlind, bigBlind, minimumRaise, canCheck, stackSize, bluffer.isBluff(bankRollState, numHands, handID), equity, previousBet, bankRollState, lastDitch) if action[0] == 'SWITCH HANDS': equity = getPreFlopEquity() bet = betComputer.computePreFlopBet(equity, amtToCall, potSize, position, bigBlind) bet = betComputer.induceBetVariance(bet) action = betComputer.computePreFlopAction(bet, position, amtToCall, smallBlind, bigBlind, minimumRaise, canCheck, stackSize, False, equity, previousBet, bankRollState) currentStakePreFlop += action[1] elif len(boardCards) == 3: if bluffer.isBluff(bankRollState, numHands, handID): probOfWin = bluffer.bluffHandPercent(boardCards,POKER,leftPlayerIn,rightPlayerIn) else: probOfWin = customPoker.probOfWin(POKER,hand,boardCards, leftPlayerIn, rightPlayerIn, totalWinPostFlop - totalLossPostFlop) if leftPlayerIn and rightPlayerIn and smallPotPlayerLeft and smallPotPlayerRight: probOfWin *= .9 elif leftPlayerIn and not rightPlayerIn and smallPotPlayerLeft: probOfWin *= .9 elif rightPlayerIn and not leftPlayerIn and smallPotPlayerRight: probOfWin *= .9 bet = betComputer.computePostFlopBet(probOfWin, amtToCall, potSize, newDealPot, position) bet = betComputer.induceBetVariance(bet) action = betComputer.computePostFlopAction(bet,position,amtToCall,minimumRaise,canCheck,minBet,stackSize, bluffer.isBluff(bankRollState, numHands, handID), probOfWin, previousBet, leftPlayerIn, rightPlayerIn,lastOpBet, potSize, len(boardCards), bankRollState) if action[0] == 'SWITCH HANDS': probOfWin = customPoker.probOfWin(POKER,hand,boardCards, leftPlayerIn, rightPlayerIn, totalWinPostFlop - totalLossPostFlop) bet = betComputer.computePostFlopBet(probOfWin, amtToCall, potSize, newDealPot, position)