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).