SkillAgentSearch skills...

Corewar

👾 { lexing, parsing, bytecode VM, asm, ncurses } Corewar is a programming game in which programs called warriors compete for control of a virtual computer

Install / Use

/learn @bduron/Corewar
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Corewar

Core War is a 1984 programming game created by D. G. Jones and A. K. Dewdney in which two or more battle programs (called "warriors") compete for control of a virtual computer. These battle programs are written in an abstract assembly language called Redcode.

42 Version

We don't use the same set of assembly instruction as the original Corewar and we have some modulo limitation about the distance to read and write. This project was the final project of the Algorithm branch and we wrote it has a team with :

Our vizualisator

giphy.gif

Life.gif

Usage

./corewar [-d N -s N -v N | -b --stealth | -n --stealth] [-a] <champion1.cor> <...>

  • -a : Prints output from "aff" (Default is to hide it)
  • -d N : Dumps memory after N cycles then exits
  • -s N : Runs N cycles, dumps memory, pauses, then repeats
  • -v N : Verbosity levels, can be added together to enable several
    • 0 : Show only essentials
    • 1 : Show lives
    • 2 : Show cycles
    • 4 : Show operations (Params are NOT litteral ...)
    • 8 : Show deaths
    • 16 : Show PC movements (Except for jumps)
  • -i : Ncurses output mode
View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks0

Languages

Assembly

Security Score

55/100

Audited on Jan 22, 2024

No findings