FirstCallerPosition Vs. LastCallerPosition

Coding-related discussion: OpenPPL (Poker Programming Language) and internal OpenHoldem-script
Post Reply
Partypoker562
First blood
First blood
Posts: 19
Joined: Fri Jan 27, 2023 1:35 pm

FirstCallerPosition Vs. LastCallerPosition

Post by Partypoker562 »

Do I use FirstCallerPosition or LastCallerPosition if there is only one caller? Please take a look at the code below and let know if it look okay:


WHEN OpponentsAtTable = 4 AND InButton AND Calls = 1 AND LastCallerPosition = 3 AND Raises = 0 AND (hand$AA OR hand$KK OR hand$QQ OR hand$AK OR hand$AQ OR hand$KQsuited OR hand$A5suited OR hand$A4suited OR hand$A3suited OR hand$A2suited) Allin FORCE
Alex
Site Admin
Site Admin
Posts: 3112
Joined: Sun Mar 26, 2017 5:58 pm

Re: FirstCallerPosition Vs. LastCallerPosition

Post by Alex »

Partypoker562 wrote: Tue Mar 14, 2023 8:21 am Do I use FirstCallerPosition or LastCallerPosition if there is only one caller? Please take a look at the code below and let know if it look okay:


WHEN OpponentsAtTable = 4 AND InButton AND Calls = 1 AND LastCallerPosition = 3 AND Raises = 0 AND (hand$AA OR hand$KK OR hand$QQ OR hand$AK OR hand$AQ OR hand$KQsuited OR hand$A5suited OR hand$A4suited OR hand$A3suited OR hand$A2suited) Allin FORCE
LastCallerPosition is ok probably, but there is no such command as "Allin force". use RaiseMax Force.
when you are not sure, make a model of situation in ManualMode and use f$debug tab to monitor functions, this approach always answers any question
Partypoker562
First blood
First blood
Posts: 19
Joined: Fri Jan 27, 2023 1:35 pm

Re: FirstCallerPosition Vs. LastCallerPosition

Post by Partypoker562 »

I tried manual mode. I'm having difficulty using it. I do have the manual, but it's limited. I have another code question for you.

I want to RaiseMax when I have hand$AA and position = 4 just called and the button went all-in. Does this look right to you?

WHEN OpponentsAtTable = 4 AND InBigBlind AND Calls = 1 AND LastCallerPosition = 4 AND OpponentIsAllin AND LastRaiserPosition = 2 AND hand$AA RaiseMax FORCE
Alex
Site Admin
Site Admin
Posts: 3112
Joined: Sun Mar 26, 2017 5:58 pm

Re: FirstCallerPosition Vs. LastCallerPosition

Post by Alex »

Partypoker562 wrote: Thu Mar 16, 2023 3:38 am I tried manual mode. I'm having difficulty using it. I do have the manual, but it's limited. I have another code question for you.

I want to RaiseMax when I have hand$AA and position = 4 just called and the button went all-in. Does this look right to you?

WHEN OpponentsAtTable = 4 AND InBigBlind AND Calls = 1 AND LastCallerPosition = 4 AND OpponentIsAllin AND LastRaiserPosition = 2 AND hand$AA RaiseMax FORCE
yes, you can also use symbols like MiddlePosition3Calling and ButtonRaising.
Look for those functions in OpenPPL_Library_Technical_Position_Symbols.ohf file, inside Warbot folders.
more about MM here https://documentation.help/OpenHoldem/ManualMode.html (it's essential to master this thing if you want to code)
Post Reply