Two Plus Two Publishing LLC
Two Plus Two Publishing LLC

Go Back   Two Plus Two Poker Forums > >


Programming Discussions about computer programming

Thread Tools Display Modes
Old 06-07-2018, 02:56 AM   #1
Join Date: Jun 2018
Posts: 1
Club Badugi Evaluator

Does anyone have a hand evaluator for Badugi? Prefer it in C++, but any language will probably do except C#.

Thanks in advance,

VDOGrandy is offline   Reply With Quote
Old 06-07-2018, 10:01 AM   #2
Carpal \'Tunnel
RustyBrooks's Avatar
Join Date: Feb 2006
Location: Austin, TX
Posts: 24,488
Re: Badugi Evaluator

It would be pretty trivial to write one, I think. The hand space is so small that you should actually just make a static lookup table. There are only C(52, 4) possible hand combinations (270,725). That's small enough that I would just keep it at that. If you need to compress space further at the expense of time then you could put the hands into a canonical format - Ac 2s 3d 4h is the same score as As 2d 3c 4h and so forth. You can use a 32 bit integer as the score, so it would barely be a megabyte.
RustyBrooks is offline   Reply With Quote
Old 08-27-2018, 01:32 PM   #3
LoveThee's Avatar
Join Date: Nov 2011
Location: Somewhere far away. Yes, that'll do
Posts: 914
Re: Badugi Evaluator

Pokerstove's peval seems to have badugi support
LoveThee is offline   Reply With Quote
Old 08-27-2018, 10:19 PM   #4
***'s Avatar
Join Date: Oct 2006
Location: * * *
Posts: 3,932
Re: Badugi Evaluator

You can combine the two answers above. The pokerstove repository also includes a program ps-lut that creates lookup tables. I have not used it, but I did look it over and it seems you can make one for any game you can evaluate. Not only that but it canonizes it for you as RustyBrooks suggests.
*** is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 05:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2008-2017, Two Plus Two Interactive
Poker Players - Streaming Live Online