Giter VIP home page Giter VIP logo

corewar-1's Introduction

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.

bornus

assembler error messages
vm debug mode
vm visualizer
disassembler
disassembler visualizer

Requirements

ncurses for visualizer

Usage

make
usage: ./asm 'sourcefile.s

Usage:./corewar [-d N]  [-v] [-de N] [-n N] <champion1.cor> <...>
### CONTESTANT ######################################################
your_champion.cor: Champion compiled with the asm
-n (0 < N < INTMAX)    :  Set champion number for the next champion
### DUMP ############################################################
-dump (0 < N < ULLMAX) :  Dumps memory after N cycles then exits
### DEBUG OUTPUT MODE ###############################################
-de (0 < N < INTMAX)  1:  cycle number
                      2:  death logs
                      4:  live logs
                      8:  load logs
                     16:  store logs
                     32:  logical op logs
                     64:  jump, fork logs
### PRINT OFF MODE ##################################################
-p                   1 :  live comment off
                     2 :  aff comment off
                     3 :  all comment off
### VISUAL MODE #####################################################
-v                   Ncurses visualizer mode
#####################################################################

Author

Alblfbv
Mthandazo42
sunca7
mini0621

corewar-1's People

Contributors

sunca7 avatar mini0621 avatar allefebv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.