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.
- 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).
To execute the resulting redcode you can use one of these redcode interpreters.
- Create a RED language tutorial
- Improve control flow instructions and conditions
- Reduce duplicate code and improve compiled redcode
- Pleiad for BBCTester, through its fork BBCStepTester, which the tests use