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: 23,759
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 online now   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 09:22 PM.

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