Skip to content

Repository files navigation

corewars-compiler

By fabaindaiz

This software aims to be an easier way to write and optimize code for corewars. corewars-compiler uses its own mini functional language called RED which can then be compiled into optimized redcode.

work in progress.

Instructions of use

  • See REFERENCE.md for develop and run.
  • See LANGUAGE.md for RED language reference.
  • See TUTORIAL.md for a RED language tutorial (not written yet).
  • See docs/semantics.md for what each construct means and what the compiler preserves.
  • See docs/roadmap.md for known defects and planned work, and docs/references.md for the research behind them.
  • Working with an AI assistant: AGENTS.md is its entry point (CLAUDE.md imports it).

Intepreters

To execute the resulting redcode you can use one of these redcode interpreters.

TODO

  • Create a RED language tutorial
  • Improve control flow instructions and conditions
  • Reduce duplicate code and improve compiled redcode

Acknowledgements

References

Getting started

Redcode learning

Redcode wariors

Redcode reference

Corewars koth

About

CoRed: A high-level programming language for corewars (work in progress)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages