2 unstable releases

0.2.0 Oct 11, 2020
0.1.0 Oct 7, 2020

#193 in Emulators

MIT license

76KB
2K SLoC

corewars

Latest Crates.io Release Latest Github Release Build Status

A CLI interface for playing the classic programming battle game Core Wars.

See the website or the Github repo for more details.

Usage

Parse, assemble, and save Redcode files

USAGE:
    corewars <input-file> <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <input-file>    Input file; use "-" to read from stdin

SUBCOMMANDS:
    dump    Save/print a program in "load file" format
    help    Prints this message or the help of the given subcommand(s)

dump Usage

Save/print a program in "load file" format

USAGE:
    corewars <input-file> dump [FLAGS] [OPTIONS]

FLAGS:
    -h, --help         Prints help information
    -E, --no-expand    Whether labels, expressions, macros, etc. should be resolved and expanded in the output
    -V, --version      Prints version information

OPTIONS:
    -o, --output-file <output-file>    Output file; defaults to stdout ("-") [default: -]

Dependencies

~5.5MB
~97K SLoC