After too many sleepless nights, I’m now confident enough to show it to the world: flashCHESS3, a complete chess engine written in AS3.
Our old actionscript chess engine was written when AS1 was still in beta, and had many shortcomings, but was very popular nevertheless. The new game is written completely from scratch and uses most features you’d expect to see in a chess game. The search depth is limited by default to 4 plies, although by extending the script timeout limit to 60 seconds it can go to ply 6 on my laptop. It has support for all chess rules (the old game couldn’t handle en-passant) and unlimited undo.
I’m still planning a few features, like saving and loading the game, some tutoring aids and maybe a board editor or at least a way to import/export the board as a FEN string.
I’d be delighted to hear what you think of it – just keep in mind that its main purpose is to entertain, not to be a very strong engine (after all AS3 is no match for C or even Java).
Hey, that’s very good job!
I didn’t know there was a chess game written in AS.
I have seen quite a few flash chess games(in AS1/AS2) but this one is really nice
. Good work.
Very cool! If you have a automatic version that will just exercise the chess engine, I would happy to profile with our internal tools against the Flash player and see if there are any other bottlenecks that the Flash Profiler would not catch. A program that just ran automatically without user interaction using all CPU would be ideal.
chess is truely a great game. nice posts, keep them coming!
Very nice article. Thanks
Hi
Can I have the source for flashCHESS 1 or 2 (if you don;t have 1). Please mail it to me. Thanks