Allin code

Coding-related discussion: OpenPPL (Poker Programming Language) and internal OpenHoldem-script
Post Reply
ken911
Fish
Fish
Posts: 8
Joined: Wed Jul 27, 2022 7:01 am

Allin code

Post by ken911 »

Alex,

I need help with my all-in code when OpponentsAtTable = 3. I tried using manual mode but I couldn't find the right code. When the CutOff goes all-in, I want to go All-in too. I tried the 4 codes below. They did not work. Do you have any suggestions?

WHEN OpponentsAtTable = 3 AND InButton AND Raises = 1 AND LastRaiserPosition = 3 AND OpponentIsAllin AND Opponents = 1 AND (hand$AA OR hand$KK OR hand$QQ) RaiseMax FORCE

WHEN OpponentsAtTable = 3 AND InButton AND LastRaiserPosition = 3 AND OpponentIsAllin AND Opponents = 1 AND (hand$AA OR hand$KK OR hand$QQ) RaiseMax FORCE


WHEN OpponentsAtTable = 3 AND InButton AND Raises = 1 AND CutOffRaising AND OpponentIsAllin AND Opponents = 1 AND (hand$AA OR hand$KK OR hand$QQ) RaiseMax FORCE

WHEN OpponentsAtTable = 3 AND InButton AND CutOffRaising AND OpponentIsAllin AND Opponents = 1 AND (hand$AA OR hand$KK OR hand$QQ) RaiseMax FORCE
Alex
Site Admin
Site Admin
Posts: 3034
Joined: Sun Mar 26, 2017 5:58 pm

Re: Allin code

Post by Alex »

try this:
WHEN OpponentsAtTable = 3 AND InButton and CutOffRaising AND OpponentIsAllin and (hand$AA OR hand$KK OR hand$QQ) RaiseMax FORCE

Opponents != 1 because there are blinds playing, right?
"Opponents" are # of playing opps that hold cards
zadak
Flush Royal
Flush Royal
Posts: 339
Joined: Sun Jul 05, 2020 8:36 pm

Re: Allin code

Post by zadak »

I'm not an expert in poker, but based on your description, I think you want to go all-in when you have a strong hand and the cut-off player is all-in. In that case, you might want to try this code:

WHEN OpponentsAtTable = 3 AND InButton AND Raises = 1 AND LastRaiserPosition = CutOff AND OpponentIsAllin AND Opponents = 1 AND (hand$AA OR hand$KK OR hand$QQ) RaiseMax FORCE

This code should work if the cut-off player is the last raiser and the only opponent who is all-in. I hope this helps.yes
User avatar
froggy
Botter for life
Botter for life
Posts: 1136
Joined: Thu Jan 31, 2019 12:56 am

Re: Allin code

Post by froggy »

Hmm, I'm assuming that this is a preflop scenario. In what situation are you folding AA, KK, or QQ -- preflop?
“Life is not always a matter of holding good cards, but sometimes, playing a poor hand well.” ― Jack London
zadak
Flush Royal
Flush Royal
Posts: 339
Joined: Sun Jul 05, 2020 8:36 pm

Re: Allin code

Post by zadak »

folding AA preflop is almost never a good idea, unless you are playing in a home game where you suspect cheating or robbery, or you have a stack that is too large for your bankroll and you don't want to risk losing it.

Folding KK preflop is also very rare, as you only lose to AA and have a big edge over any other hand. Some players may fold KK preflop if they face a very large raise or reraise from a very tight opponent who only does that with AA

Folding QQ preflop is more common, as you lose to both AA and KK, and sometimes face strong hands like AK or JJ that have decent equity against you. Some situations where you may fold QQ preflop are:

If you are playing a satellite tournament and you have enough chips to guarantee a seat, you should fold any hand preflop, including QQ, KK, and AA

If you face a small reraise from an opponent who only does that with AA or KK



Of course, these are general guidelines and not absolute rules. You should always consider the specific factors of each situation, such as the stack sizes, the pot odds, the table dynamics, the opponent's tendencies, and your own image.
Post Reply