Poker-AI.org
http://poker-ai.org/phpbb/

Testbed for Heads Up
http://poker-ai.org/phpbb/viewtopic.php?f=24&t=2947
Page 1 of 1

Author:  ocara [ Sun Oct 11, 2015 7:33 pm ]
Post subject:  Testbed for Heads Up

Do you guys know any reliable testbed for heads up - no limit?

I was using Opentestbed until I realise that the SmallBlind plays first on actions post-flop! As it was a fullring game but with only 2 players left, not actualy a heads up game.

Any help???

thx

Author:  SkyBot [ Thu Oct 15, 2015 8:23 pm ]
Post subject:  Re: Testbed for Heads Up

Why not fix testbed then? It is rather simple code, you will understand it quickly.

Also I thought testbed does button+1 to find first player after preflop. That should always be correct, right? Or is my memory wrong?

Author:  eiisolver [ Thu Oct 15, 2015 8:45 pm ]
Post subject:  Re: Testbed for Heads Up

For HUNL you could also look at the Texas Holdem engine mentioned in the sticky post in http://theaigames.com/discussions/texas-hold-em. The engine also supports other game types like heads up Omaha + some other variants.

Author:  ocara [ Thu Oct 15, 2015 9:34 pm ]
Post subject:  Re: Testbed for Heads Up

SkyBot wrote:
Why not fix testbed then? It is rather simple code, you will understand it quickly.

Not sure I can change it. I guess this is coded on the meerkat api that I don't have the code. Maybe I'm wrong.

SkyBot wrote:
Also I thought testbed does button+1 to find first player after preflop. That should always be correct, right? Or is my memory wrong?

No, on the testbed the button will also be the BB, like a fullring game when there are only 2 players left.
So the SB will be also button+1 and will act first on both preflop and postflop. :(

Preflop:

Button: Hero
SB: Vilain (1st to act)
BB: Hero again (2nd to act)

Postflop:

Button + 1: Vilain (1st to act)
Next: Hero (2nd to act)

Anyway, I'm finishing my own testbed for HUNL... :P

Author:  ocara [ Thu Oct 15, 2015 9:35 pm ]
Post subject:  Re: Testbed for Heads Up

eiisolver wrote:
For HUNL you could also look at the Texas Holdem engine mentioned in the sticky post in http://theaigames.com/discussions/texas-hold-em. The engine also supports other game types like heads up Omaha + some other variants.

I like this site, but 20 games a day won't help me to test/improve my bot :)

Author:  eiisolver [ Fri Oct 16, 2015 2:36 pm ]
Post subject:  Re: Testbed for Heads Up

Sorry if I was not clear, but if you look into the link I provided, there is information about a test engine that is available on github that you can use for offline testing.

The engine is not super fast, but you can easily run hundreds of thousands of games per day, not just 20:)

Author:  ocara [ Fri Oct 16, 2015 3:57 pm ]
Post subject:  Re: Testbed for Heads Up

eiisolver wrote:
Sorry if I was not clear, but if you look into the link I provided, there is information about a test engine that is available on github that you can use for offline testing.

The engine is not super fast, but you can easily run hundreds of thousands of games per day, not just 20:)


thx mate, I will try this out. :)

Author:  SkyBot [ Sun Oct 18, 2015 3:53 am ]
Post subject:  Re: Testbed for Heads Up

ocara wrote:
SkyBot wrote:
Why not fix testbed then? It is rather simple code, you will understand it quickly.

Not sure I can change it. I guess this is coded on the meerkat api that I don't have the code. Maybe I'm wrong.

SkyBot wrote:
Also I thought testbed does button+1 to find first player after preflop. That should always be correct, right? Or is my memory wrong?


No the testbed code contains everything as code. Meerkat.jar is just some interfaces, not actual code. And Java libraries could be decompiled back to code anyway...

Author:  ocara [ Sun Oct 18, 2015 3:06 pm ]
Post subject:  Re: Testbed for Heads Up

SkyBot wrote:
No the testbed code contains everything as code. Meerkat.jar is just some interfaces, not actual code. And Java libraries could be decompiled back to code anyway...


Good, I guess I managed to do that. Appreciate.
I still need to test it, but that's what've done on Game.Dealer class:

Code:
   public Dealer(Deck deck, PublicGameInfo gameInfo) {
      this.deck = deck;
      this.gameInfo = gameInfo;
      buttonSeat = gameInfo.nextActivePlayer(gameInfo.getNumSeats() - 1);
      //smallBlindSeat = gameInfo.nextActivePlayer(buttonSeat);
      smallBlindSeat = buttonSeat;  // I included this line to make SB the button.
      bigBlindSeat = gameInfo.nextActivePlayer(smallBlindSeat);
   }

Author:  npolychr [ Thu Mar 24, 2016 6:01 pm ]
Post subject:  Re: Testbed for Heads Up

ocara wrote:
I still need to test it, but that's what've done on Game.Dealer class:

Code:
   public Dealer(Deck deck, PublicGameInfo gameInfo) {
      this.deck = deck;
      this.gameInfo = gameInfo;
      buttonSeat = gameInfo.nextActivePlayer(gameInfo.getNumSeats() - 1);
      //smallBlindSeat = gameInfo.nextActivePlayer(buttonSeat);
      smallBlindSeat = buttonSeat;  // I included this line to make SB the button.
      bigBlindSeat = gameInfo.nextActivePlayer(smallBlindSeat);
   }


It wont accept that, I tried. Instead what I did was give the SB and the BTN the same int value which is not perfect but works for now.

Code:
   
protected int buttonSeat = 0;
protected int smallBlindSeat = 0;
protected int bigBlindSeat = 1;


Now post-flop actions are ok, but the BB acts first preflop. We should solve that.

Also, did anyone realize that in the hand history the hands are always the same, even if the actions are different? That's really weird.

Author:  npolychr [ Thu Mar 24, 2016 6:11 pm ]
Post subject:  Re: Testbed for Heads Up

Would anyone be interested to help me fix the testbed for HUNL so we can rely on it for our testings?

Author:  npolychr [ Mon Apr 18, 2016 5:37 pm ]
Post subject:  Re: Testbed for Heads Up

Hey guys! I managed to reconfigure Corintio's fork for Heads-Up games! So far it's working! So we finally have a proper Heads-Up testbed! I'm gonna test it a little more to make sure everything is running smoothly and then make it available on a new post! :)

Author:  corintio [ Thu Apr 21, 2016 2:48 pm ]
Post subject:  Re: Testbed for Heads Up

npolychr wrote:
Hey guys! I managed to reconfigure Corintio's fork for Heads-Up games! So far it's working! So we finally have a proper Heads-Up testbed! I'm gonna test it a little more to make sure everything is running smoothly and then make it available on a new post! :)


Nice! Please consider submitting a pull request :)

Author:  npolychr [ Sun Apr 24, 2016 8:48 am ]
Post subject:  Re: Testbed for Heads Up

corintio wrote:
Nice! Please consider submitting a pull request :)


Of course! I'm on it today! And thank you so much for your work on this man. It has saved me from far too many headaches. :)

Author:  npolychr [ Wed Apr 27, 2016 12:18 pm ]
Post subject:  Re: Testbed for Heads Up

Hi guys, you can find the Heads-Up testbed here:

https://github.com/npolychr/Heads-Up-No-Limit-Testbed

For any bugs or anything please contact me via pm. :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/