Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 06-07-2018, 02:56 AM   #1
VDOGrandy
stranger
 
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,

Randy
VDOGrandy is offline   Reply With Quote
Old 06-07-2018, 10:01 AM   #2
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,652
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

Reply
      

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 11:46 AM.


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