Core War

Core War is a game played by two or more programs (and vicariously by their authors) written in an assembly language called Redcode and run in a virtual computer called MARS (for Memory Array Redcode Simulator). The object of the game is to cause all processes of the opposing program to terminate, leaving your program in sole posession of the machine.

There are Core War systems available for most computer platforms. Redcode has been standardized by the ICWS(International Core War Society), and is therefore transportable between all standard Core War systems. Core War was first described in the Core War Guidelines of March, 1984 by D. G. Jones and A. K. Dewdney of the Department of Computer Science at The University of Western Ontario (Canada). Dewdney wrote several "Computer Recreations" articles in Scientific American which discussed Core War, starting with the May 1984 article. Those articles are contained in two anthologies:

Author: Dewdney, A. K.
Title: The Armchair Universe: An Exploration of Computer Worlds
Published: New York: W. H. Freeman (c) 1988
ISBN: 0-7167-1939-8
Library of Congress Call Number: QA76.6 .D517 1988

Author: Dewdney, A. K.
Title: The Magic Machine: A Handbook of Computer Sorcery
Published: New York: W. H. Freeman (c) 1990
ISBN: 0-7167-2125-2 (Hardcover), 0-7167-2144-9 (Paperback)
Library of Congress Call Number: QA76.6 .D5173 1990


Sample Warrior Code:



This project is a client server application. The server uses threads to accept and manage multiple clients at the same time. The server plays games (between random warriors with random values) in background, in order to generate statistics. The operations are listing warriors, editing a warrior code, deleting or uploading a warrior etc. Over the fight section you can select 2-5 warriors and let them fight in an arena (size of max 9200). The Fight simulates which op-code is executed and which warrior masters which memory cell etc.

Server - Client Source Codes, Javadoc, 477 Fighters, jar Files, readme File
[ free download ]