An implementation of core-wars built with Haskell.
Core-Wars is a game which pitts competing programs against eachother by creating a virtual machine for them to run in. The programs are written in an Assembly Language named RedCode.
This program is written as a literate haskell program. Therefore an explanation of the how the program works is written among the code. There are numerous design decisions to be made when writing a MARs controller for core-war, and these are detailed in the source.
stack build
stack exec core-war-exe [<path-to-program>]
Alternatively
bash rungame.sh
Will run a war including 4 sample warriors