https://github.com/ollevche/corewar
:pager: The implementation of Core War Game: Bot, Compiler, Virtual Machine and Visualization
https://github.com/ollevche/corewar
corewar redcode virtual-machine
Last synced: 11 months ago
JSON representation
:pager: The implementation of Core War Game: Bot, Compiler, Virtual Machine and Visualization
- Host: GitHub
- URL: https://github.com/ollevche/corewar
- Owner: ollevche
- License: mit
- Created: 2018-06-27T08:17:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T20:56:29.000Z (over 5 years ago)
- Last Synced: 2025-04-02T03:37:02.560Z (about 1 year ago)
- Topics: corewar, redcode, virtual-machine
- Language: C
- Homepage:
- Size: 34.6 MB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :pager: The Core War project
The project is the implementation of [Core War Game](https://en.wikipedia.org/wiki/Core_War).
There are **champs** (bots in abstract assembly language called Redcode), **compiler** (produces bytecode versions of champs) and **virtual machine** (executes provided bytecode).
Virtual machine has a pretty UI, which shows its 'memory dump' with bots code and carrets for each cycle (and some other shiny things).

## How to run on Ubuntu?
* install ncurses library: `sudo apt-get install libncurses-dev -y`
* run `git clone --recurse-submodules https://github.com/ollevche/corewar && cd corewar`
* compile asm and vm binaries: `make`
* compile bots: `./asm champs/helltrain.s champs/omegabot.s`
* run vm with UI enabled: `./corewar -v champs/helltrain.cor champs/omegabot.cor`