Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (50.2k points)

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:

1 Answer

0 votes
by (108k points)

python-chess is a pure Python chess library with move generation, move validation and support for common formats.

PyChess is also a 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.

Browse Categories

...