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



Controls
| Command line, Run or Enter | Run pmars with these options and warrior files |
| Options | A form that writes pMARS's options into the command line |
| Files, editor, Save | Your 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 Space | Clear the core display |
| q or Esc | Quit pMARS |
| cdb: a command and Enter | help, 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 core | The macros of pmars.mac (up, f5, mousel and others) |
| Ctrl+C in the terminal | Interrupt: enter the debugger |
| Online battle | The 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
- 2048: Slide the tiles together until one of them is 2048.
- A Dark Room: Wake up in the dark, build a fire, and walk out into a world that wants you dead.
- Abuse: Run, jump and shoot through an underground prison overrun by mutants.
- Ballerburg: Two castles, two kings, one mountain between them.
- Biniax: Take the right pair before the field scrolls over you.
- Colossal Cave Adventure: The first text adventure: explore a cave by typing.
- FreeCol: Found colonies in the New World, trade with Europe and the natives, and win independence.
- Frozen Bubble: Penguins shoot coloured bubbles: three of a kind fall, and the ceiling comes down.
- GLtron: Four lightcycles, one grid, and a trail that kills you as surely as the wall.
- GNU Chess: The GNU Project's chess program, at its own prompt.
- Hunt the Wumpus: Hunt a monster through a cave of twenty rooms.
- Maelstrom: Asteroids, alien fighters, and one very small ship.
- Moria: Go down into the mines of Moria and face the Balrog.
- NetHack: Descend into the Mazes of Menace and bring back the Amulet of Yendor.
- Netrek: Four empires, sixteen ships, one galaxy: team space combat and planet conquest.
- Passage: A whole life in five minutes.
- Pinball Construction Set: Build your own pinball table, then play it.
- Sopwith: A biplane, a row of targets, and a sky full of trouble.
- Teeworlds: Small round tees with grappling hooks and big guns: fast online deathmatch and capture the flag.
- Tux Racer: Race Tux down the mountain, collect herring and beat the clock.
- Tux, of Math Command: Zap the falling comets by solving their math problems.
- Worms?: Teach your worm, then watch what it makes of it.
- XPilot: Thrust, turn and shoot it out with other pilots in a space arena.