- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
为了使用 C++ 创建最快的蒙特卡洛德州扑克牌局分析器,我目前正在研究牌局评估这一主题。
正如你们中的许多人所知,市面上有很多手牌评估器,而且是开源的。在考虑了一下之后,我选择了“二加二手评估器”(因为它是在二加二论坛上首次介绍而得名)。
这是已知最快的评估器之一,它使用数组查找来快速找到一手牌的值(value)。
现在,对于该函数,您需要传入一个包含您感兴趣的卡片的数组。示例:
int Cards[] = { 3, 5, 10, 17, 23, 24, 32 };
int hv = HandValue(Cards);
值介于 1 和 52 之间。现在,我的问题是:这些整数对应于哪些牌? 3 是黑桃 A 吗?红心三?我搜索了谷歌、2 + 2 论坛、展示手牌评估器的各种页面、构建数组的源文件。一切都是徒劳。所以我希望这里有人能给我指出正确的方向,让我知道在哪里可以找到这些信息,或者直接给我。
评估者的来源是这篇优秀的文章:http://www.codingthewheel.com/archives/poker-hand-evaluator-roundup#cactus_kev这分别解释了所有评估者。
最佳答案
我没有证实这一点,但它似乎是:
"2c": 1,
"2d": 2,
"2h": 3,
"2s": 4,
"3c": 5,
"3d": 6,
...
"kh": 47,
"ks": 48,
"ac": 49,
"ad": 50,
"ah": 51,
"as": 52
引用:https://github.com/chenosaurus/poker-evaluator/blob/master/lib/PokerEvaluator.js
关于c++ - 二加二扑克手评估器 : How are the cards mapped to the integers?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14842084/
一副扑克牌是 52 张牌 13阶4花色 致力于高效的手部表示和评估 A K Q J T 9 8 7 6 5 4 3 2 scdh
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and th
我遇到了一个真正令人困惑的错误,在过去的几个小时里我一直试图解决这个错误,但没有成功。我正在研究扑克实现。最初,我通过迭代循环生成卡片。 const suits = ['Heart', 'Spade'
我是一名优秀的程序员,十分优秀!