perl compile.pl samples\chess.bas ..\..\imcc\imcc.exe TARG_test.imc
(modify for your path delimiters, executable extensions, etc... use a recent version of imcc too)
I spent the last three weeks re-writing BASIC to emit IMCC and to do more at compile-time, less at runtime. It's *very* quick after I took Leo's hints on how to structure my IMC properly, running at about 1/4 the speed of the same code under Microsoft's QuickBASIC. (I still need to finish BASIC's I/O and structures...)
This version runs colorfully under Win32 consoles and Linux using a good ANSI Terminal. I've had reports that the ANSI stuff works fine under OSX's Terminal App and cygwin/Win32 so this should look just peachy everywhere. Instructions on gameplay are onscreen.
The chess logic was written long, long ago by Dieter Steinwender (editor for Computer-Schach and Spiele) for "didactic purposes". I think it was originally to solve Checkmate-in-X-Moves problems. I've received modification and redistribution permission from him under Parrot's terms for this purpose.
The game is *very* deterministic and doesn't recognize a draw, therefore autoplay mode will only perform 20 moves at a time.
Enjoy. :)