GAE 的国际象棋人工智能
我正在寻找可以在 Google App Engine 上运行的国际象棋人工智能。大多数国际象棋 AI 似乎都是用 C 语言编写的,因此无法在 GAE 上运行。它需要足够强大才能击败休闲玩家,但也需要足够高效才能在单个请求(少于 10 秒)内计算出移动。
理想情况下,它应该用 Python 编写,以便更轻松地与现有代码集成。
我遇到了一些有前途的项目,但它们看起来并不成熟:
I am looking for a Chess AI that can be run on Google App Engine. Most chess AI's seem to be written in C and so can not be run on the GAE. It needs to be strong enough to beat a casual player, but efficient enough that it can calculate a move within a single request (less than 10 secs).
Ideally it would be written in Python for easier integration with existing code.
I came across a few promising projects but they don't look mature:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
PyChess 有什么问题吗?它是纯Python的,相当成熟,肯定能打败休闲玩家。
我已经有一段时间没有使用 PyChess 了,但快速浏览一下 一些来源
确实表示您可以设置搜索移动的时间限制。
用纯 Python 编写的 PyChess 引擎位于 pychess.Utils。具体来说,如果您查看 pychess .Utils.lutils,您可以看到例如用 Python 编写的移动生成器。
What's wrong with PyChess? It's pure Python, fairly mature, and will certainly be able to beat a casual player.
It's been a while since I've used PyChess, but a quick glance through some of the source
does indicate that you can set a time limit on how long to search for a move.
The PyChess engine that is written in pure Python is in pychess.Utils. Specifically, if you look at pychess.Utils.lutils, you can see for instance the move generator written in Python.
这个问题与 GAE 架构不太匹配,GAE 架构是为高效的 CRUD 操作而不是 CPU 密集型任务而设计的。实际上,任何每个请求花费超过几十毫秒的时间都会很快耗尽您的 CPU 配额。
This problem is a poor match for the GAE architecture, which is designed for efficient CRUD operations, and not CPU-intensive tasks. In practice, anything that takes more than a few tens of milliseconds per request will blow out your CPU quota pretty quickly.