Have you heard of Corewars ?
Just finished my first "real" project on a Propeller - A true multiprocessor implementation of Corewars.
But have you heard of Corewars before ? You can find more information at my blog http://restlessengineer.wordpress.com/2012/12/16/corewars-the-multiprocessor-edition/
I submitted the code to Obex but it's still pending. Meanwhile you can find it: ConcurrentCoreWars_100_-_Archive_Date_2013.01.01_Time_22.26.zip
But have you heard of Corewars before ? You can find more information at my blog http://restlessengineer.wordpress.com/2012/12/16/corewars-the-multiprocessor-edition/
I submitted the code to Obex but it's still pending. Meanwhile you can find it: ConcurrentCoreWars_100_-_Archive_Date_2013.01.01_Time_22.26.zip
Comments
I wonder if this could be an intro to artificial intelligence?
How long do battles and rounds last?
I think they last until there's only one player standing...
Seems there is another war going on in your program. When you determine your player locations you simply do a Unfortunately the // operator returns both positive and negative results (depending on gRandSeed). Which means you may end up placing your first avatar somewhere where it doesn't belong (can get quite colourful). Having fixed that locally - ||(expression) - I get at least consistent load/run behaviour. One remaining issue is that starting program/core 1 will enable the text cursor (I assume it's not intentional), program/core 2 doesn't have this effect.
re: cursor, it's in fact the mouse cursor which needs another 3 bytes after the text cursor. IOW providing the 3 extra bytes resolves this issue.
The missing || might explain why sometimes a player was missing an instruction after loading.
I had noticed the unintentional cursor, but didn't find out why. So, it means, I should declare the variables for the mouse cursor even if I don't intend on using it ?
I haven't played Core Wars in ages (a decade or so).
I am looking forward to implementing it on a spare protoboard.