If not, who's up for a github night ? ;-)
If not, who's up for a github night ? ;-)
A problem could be compatibility with the pmars parser, which has been the standard for a long time. I tried writing a parser for corewars years ago and run into trouble emulating some aspects of the pmars parser.
redcode is indeed a mess, clearly the result of an evolving and blurry standard :)
anyway, I'm spitting out assembly for 90% of the bots I've tried and have the Imp running. From now on it will indeed be a job of implementing each instructions and addressing modes. I'm definitely uploading this on github in a few hours and will be very happy to have some help ! :)
https://github.com/joshfire/corewarjs
I've got imps and a few other running :)