Skip to content

First release.

Latest
Compare
Choose a tag to compare
@lshamis lshamis released this 04 May 22:59
· 5 commits to master since this release

Usage

You only need poker_hand_eval.h and a phe file. You can ignore the remaining code; it's just there to generate the phe file.

For example:

#include "poker_hand_eval.h"
...
PokerHandEval<7> phe("/path/to/table7.phe");
uint32_t score = phe.eval(37, 0, 48, 26, 7, 5, 8);

You must extract compressed files.

Notes

The provided phe files are bootstrapped using cactus_kev eval (http://suffe.cool/poker/evaluator.html).
What that means for you:

  • Cards are defined as:
   0 -> 2c
   1 -> 3c
   2 -> 4c
  ..
  11 -> Kc
  12 -> Ac
  13 -> 2d
  ..
  51 -> As
  • Lower scores represent better hands.