Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chess AI for GAE

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:

  • http://code.google.com/p/chess-free
  • http://mariobalibrera.com/mics/ai.html
like image 558
hoju Avatar asked Oct 04 '09 11:10

hoju


People also ask

Is there an unbeatable AI chess?

Is any computer chess program invincible? The quick answer is “no” and the easiest way to prove it is look at the current standings of the various computer programs against each other. Below are the CCRL 40/40 ratings for the top three programs against each other as of 10 Jun 17.

Is chess haram in Islam?

Saudi Arabia's grand mufti has ruled that chess is forbidden in Islam, saying it encourages gambling and is a waste of time.

Is Stockfish 14 an AI?

Stockfish prior to last one is not machine learning or neural net brand of AI. Stockfish NNUE is combination of Neural net evaluation and traditional alpha-beta tree search.


1 Answers

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.

like image 196
Mark Rushakoff Avatar answered Sep 30 '22 06:09

Mark Rushakoff