写完扑克牌评估器寻找新项目
刚刚用 C++ 编写了五张牌扑克牌评估器。现在我正在寻找一个具有相同难度的新项目。也许是一个非常简单的 DOS 命令解析器?
just finished writing a five card poker hand evaluator in C++. now im looking for a new project about the same level of difficulty. maybe a very simple DOS command parser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
听起来您可能对 Project Euler 提供的问题类型感兴趣。特别是,听起来您已经有了问题 54 的解决方案。
It sounds like you might be interested in the type of problems Project Euler offers. In particular, it sounds like you have a solution for Problem 54 already.
尝试使用计算器,它可以获取完整的公式,对其进行评估并给出结果。
(96+123)/3-56^2+45*2
Try a calculator, one that takes a full formula, evaluates it and gives the result.
(96+123)/3-56^2+45*2
你做完了吗?为什么不编写一个 7 卡评估器,首先使用 5 卡评估器,然后找到一种不需要每次评估进行 21 次检查的直接方法?后者是对缓存和内存管理的挑战!在线可以找到许多灵感来源 - 请查看 Coding-The-例如,转动即可开始。
Are you done yet? Why not write a 7-card evaluator, first using your 5-card evaluator and then find a direct way that does not require the 21 checks per evaluation? The latter is a challenge in caching and memory management! There are many sources of inspiration to be found online -- check out Coding-The-Wheel to get started, for instance.
扩展您的手牌评估器以拥有更多输入 - 例如,如果它知道另一手牌的价值,则能够动态计算强度。在此基础上,进一步扩展以基于了解 N 手牌来计算力量。有了这个,你就已经成为一个非常好的扑克机器人了——能够与其他实例一起对抗其他玩家。
:D
Extend your hand evaluator to have more inputs - like being able to dynamically calculate strength should it know another hands worth of cards. From there, extend further to calculate strength based on knowing N hands. With this, you're half way to a very nice poker-bot - capable of working with other instances of itself against other players.
:D
德州扑克游戏评估器的完整源代码可以在这里找到:
http://www.advancedmcode.org/poker-predictor.html Advancedmcode.org/poker-predictor.html
它是为 matlab 构建的,GUI id m 编码,但计算引擎是 c++。
它允许进行赔率和概率计算。在我的 2.4Ghz 笔记本电脑上,它可以在 0.3 秒内完成 100000 名 10 名玩家的游戏计算。
准确的实时计算机:-)
Complete source code for Texas hold'em poker game evaluator can be found here:
http://www.advancedmcode.org/poker-predictor.html
It is built for matlab, the GUI id m-coded but the computational engine is c++.
It allows for odds and probability calculation. It can deal, on my 2.4Ghz laptop, with a 100000 10 players game computation in 0,3 seconds.
An accurate real time computer:-)