Modified exmars 0.01 (mod by WTN)

Original D/L'd from http://www.corewar.co.uk/ankerl/exmars-0.01.tar.gz
Added support for -l (maxlen) option

In pmars.c added the following in the readargs sub...

                    case 'l':
                        if ( n == argc-1 || !isdigit(argv[n+1][0]) )
                            panic( "bad argument for option -l\n");
                        c = 0;
                        mars->maxWarriorLength = atoi( argv[++n] );
                        if ( (int)mars->maxWarriorLength <= 0 )
                            panic( "maximum warrior length must be > 0\n" );
                        break;

To compile for Linux (on most systens) at a command line enter: make

To compile for Windows, get and install MinGW. Assuming it's
installed to C:\MinGW (otherwise adjust) at a command line enter:
path C:\MinGW\bin;%path%
gcc -O3 pmars.c pspace.c rubyinterface.c sim.c -o exmars.exe

That's all. If any questions: Terry Newton <wtn90125@yahoo.com>

