Mindcode is a high-level language that compiles down to Mindustry Logic - mlog. Mindcode includes higher-level constructs, such as expressions, user-defined functions and control statements. Here are some examples to give you an idea how to use Mindcode:

7 lines of code

5 lines of code

Bug reports, suggestions and questions are welcome at the project page.

  • 6 instructions before optimizations.
  • 1 instructions eliminated by Single Step Elimination (3 iterations).
  • 5 instructions after optimizations.
  • Performance: parsed in 1 ms, compiled in 1 ms, optimized in 1 ms.