← freegames

Core War

Write programs that fight for a computer's memory.

▶ Play Core War free, in your browser, nothing to install

In Core War, programs called warriors, written in an assembly language named Redcode, share the memory (the core) of a simulated computer. They take turns executing one instruction each; a warrior loses when all of its processes have died.

A. K. Dewdney introduced the game in Scientific American in 1984. Players still meet under the ICWS'94 rules, and pMARS is the simulator they use.

This is pMARS 0.9.5 in the browser: its assembler, its options on a command line, its X11 core display and its debugger cdb, with the example warriors of the package. Your warriors are kept on the server, and you can battle other players online.

Screenshots

Sunset against Excalibur in pMARS's X11 core display
Sunset against Excalibur in pMARS's X11 core display
cdb, the debugger, in the window's text panel
cdb, the debugger, in the window's text panel
The listing and the results pMARS prints
The listing and the results pMARS prints

Controls

Command line, Run or EnterRun pmars with these options and warrior files
OptionsA form that writes pMARS's options into the command line
Files, editor, SaveYour warriors (.red) in your account; open an example to copy it
0 to 4 (core window)Display level: nothing, executions, writes, increments, reads
< and >Slower, faster
d (or another key)Enter the debugger, cdb
c, r or SpaceClear the core display
q or EscQuit pMARS
cdb: a command and Enterhelp, step, go, list, edit, fill, trace, registers, macro and the rest (help lists them)
cdb: arrows, F1 to F12, Ctrl or Alt + letter, mouse buttons on the coreThe macros of pmars.mac (up, f5, mousel and others)
Ctrl+C in the terminalInterrupt: enter the debugger
Online battleThe lobby; every player enters a warrior, every client runs the battle

The original

Core War (1984) by A. K. Dewdney & D. G. Jones (game); Albert Ma, Na'ndor Sieben, Stefan Strack & Mintardjo Wangsaw (pMARS); C (Unix, X11 display). This port follows pMARS 0.9.5, the same rules, levels, graphics and sounds, running natively in the browser. License: GPL-2.0-or-later (Licenses & source). Players: 2 to 36 warriors; 2 to 8 players online.

More free games