RubyMARS is a tiny Redcode
simulator
written in Ruby by
John Metcalf,
which supports the extended CWS'94 Redcode standard.
The non-graphic version weighs in at 105 lines of code, while the version with
an SDL2 core display is 129 lines.
Warriors need to be in load-file format (e.g., compiled with pmars -r 0 warrior.red).
Note: ORG / END are ignored; execution begins at the START label.
- RubyMARS v0.1 GFX () - rubymarsgfx.rb
- RubyMARS v0.1 () - rubymars.rb
- rubymars01.zip contains RubyMARS, RubyMARS GFX, and some past champions in load-file format
Note: install the SDL2 dev files and Ruby gem to run RubyMARS GFX:
sudo apt install libsdl2-dev
gem install ruby-sdl2