It helps a little bit, but Im looking for something more basic. This has structs and multidimensional arrays which complicate things and which are not supported in the target language. I'm trying to port this to a new language in development which is, thus far, fairly limited. It is similar to C, but does not support structure definitions and only supports single-indexed arrays.
I'll examine that chess engine and see if I can learn anything from it. Thanks
Main Topics
Browse All Topics





by: bcladdPosted on 2004-01-22 at 15:01:08ID: 10179423
Take a look at http://home.comcast.net/~t ckerrigan/ It is the best chess engine I have ever read the code for. I am pretty sure it is straight ANSI C (it has been a year since I read it). The code was so well documented that I was able to read it and port it to a different language (one that didn't support longjmp) in a couple of days. It includes a chess playing engine though you could modify it to only verify moves.
oard.html has pointers to both. You can also look for Crafty (I don't have a link at hand) for another interesting chess engine.
I don't remember what Xboard/WinBoard are written in but they are interfaces to chess engines: http://www.tim-mann.org/xb
Hope this helps,
-bcl