Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 12:27 pm

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Testbed for Heads Up
PostPosted: Sun Oct 11, 2015 7:33 pm 
Offline
Junior Member

Joined: Wed Oct 07, 2015 7:54 pm
Posts: 12
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


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Oct 15, 2015 8:23 pm 
Offline
Junior Member

Joined: Sat Apr 26, 2014 7:29 am
Posts: 34
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?


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Oct 15, 2015 8:45 pm 
Offline
New Member

Joined: Tue Sep 29, 2015 5:56 pm
Posts: 9
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.


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Oct 15, 2015 9:34 pm 
Offline
Junior Member

Joined: Wed Oct 07, 2015 7:54 pm
Posts: 12
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


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Oct 15, 2015 9:35 pm 
Offline
Junior Member

Joined: Wed Oct 07, 2015 7:54 pm
Posts: 12
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 :)


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Fri Oct 16, 2015 2:36 pm 
Offline
New Member

Joined: Tue Sep 29, 2015 5:56 pm
Posts: 9
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:)


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Fri Oct 16, 2015 3:57 pm 
Offline
Junior Member

Joined: Wed Oct 07, 2015 7:54 pm
Posts: 12
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. :)


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Sun Oct 18, 2015 3:53 am 
Offline
Junior Member

Joined: Sat Apr 26, 2014 7:29 am
Posts: 34
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...


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Sun Oct 18, 2015 3:06 pm 
Offline
Junior Member

Joined: Wed Oct 07, 2015 7:54 pm
Posts: 12
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);
   }


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Mar 24, 2016 6:01 pm 
Offline
Junior Member

Joined: Sat Mar 12, 2016 10:17 am
Posts: 11
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.


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Mar 24, 2016 6:11 pm 
Offline
Junior Member

Joined: Sat Mar 12, 2016 10:17 am
Posts: 11
Would anyone be interested to help me fix the testbed for HUNL so we can rely on it for our testings?


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Mon Apr 18, 2016 5:37 pm 
Offline
Junior Member

Joined: Sat Mar 12, 2016 10:17 am
Posts: 11
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! :)


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Thu Apr 21, 2016 2:48 pm 
Offline
Regular Member
User avatar

Joined: Wed Oct 02, 2013 5:00 pm
Posts: 64
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 :)


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Sun Apr 24, 2016 8:48 am 
Offline
Junior Member

Joined: Sat Mar 12, 2016 10:17 am
Posts: 11
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. :)


Top
 Profile  
 
 Post subject: Re: Testbed for Heads Up
PostPosted: Wed Apr 27, 2016 12:18 pm 
Offline
Junior Member

Joined: Sat Mar 12, 2016 10:17 am
Posts: 11
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. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group