项目作者: Alblfbv

项目描述 :
📚 CoreWar programming game
高级语言: C
项目地址: git://github.com/Alblfbv/CoreWar.git
创建时间: 2019-05-27T13:45:54Z
项目社区:https://github.com/Alblfbv/CoreWar

开源协议:

下载


Corewar

42 project 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.”
wikipedia

Description

the 42 corewar project includes assembly compiler, arena vm, and a champion.

asm

asm is an assembly compiler which compiles a champion from .s file to .cor file.

corewar

corewar is an arena vm, where .cor binary files fights against each other inside the memory of 4096 bytes.

champion

our champion, infinite_zorkling.

bonuses

assembler error messages
vm debug mode
vm visualizer
disassembler
disassembler visualizer

Requirements

ncurses for visualizer

Usage

  1. make
  2. usage: ./asm 'sourcefile.s
  3. Usage:./corewar [-d N] [-v] [-de N] [-n N] <champion1.cor> <...>
  4. ### CONTESTANT ######################################################
  5. your_champion.cor: Champion compiled with the asm
  6. -n (0 < N < INTMAX) : Set champion number for the next champion
  7. ### DUMP ############################################################
  8. -dump (0 < N < ULLMAX) : Dumps memory after N cycles then exits
  9. ### DEBUG OUTPUT MODE ###############################################
  10. -de (0 < N < INTMAX) 1: cycle number
  11. 2: death logs
  12. 4: live logs
  13. 8: load logs
  14. 16: store logs
  15. 32: logical op logs
  16. 64: jump, fork logs
  17. ### PRINT OFF MODE ##################################################
  18. -p 1 : live comment off
  19. 2 : aff comment off
  20. 3 : all comment off
  21. ### VISUAL MODE #####################################################
  22. -v Ncurses visualizer mode
  23. #####################################################################

Author

Alblfbv
mini0621
Mthandazo42
sunca7