# Core War

> 1984 video game

**Wikidata**: [Q1132500](https://www.wikidata.org/wiki/Q1132500)  
**Wikipedia**: [English](https://en.wikipedia.org/wiki/Core_War)  
**Source**: https://4ort.xyz/entity/core-war

## Summary
Core War is a 1984 programming game where players design assembly language programs to compete for control of a shared memory space. It is recognized for its educational value in teaching low-level programming concepts and its role in early competitive programming. The game runs on platforms like Linux and utilizes the Redcode assembly language.

## Key Facts
- **Inception**: Core War was first released in 1984.
- **Genre**: It is classified as a programming game and a single-player video game.
- **Platform**: The game runs on Linux, among other operating systems.
- **License**: It is associated with BSD licenses, the GNU General Public License, and freeware.
- **Gameplay**: Players develop assembly language programs (in Redcode) to battle for control of a virtual memory space.
- **Aliases**: Known as Core War, Core Wars, Corewars, and by regional names like Krieg der Kerne (German).
- **Educational Use**: Widely used in computer science education to teach assembly language and low-level programming.
- **Related Concepts**: Utilizes assembly language and influenced competitive programming challenges.

## FAQs
### Q: What is Core War?
A: Core War is a 1984 programming game where players write assembly language programs to compete in a virtual memory space. It emphasizes strategy and low-level programming skills.

### Q: How is Core War played?
A: Players design Redcode assembly programs that battle for control of a shared memory array. The goal is to crash or outmaneuver opposing programs through efficient code execution.

### Q: What platforms does Core War support?
A: Core War runs on Linux and other operating systems, including historical platforms like DOS and modern environments such as Windows and macOS.

### Q: Is Core War free to use?
A: The game is associated with free and open-source licenses (BSD, GPL) and freeware, enabling accessibility for educational and competitive use.

### Q: Why is Core War significant in computer science?
A: It serves as a practical tool for teaching assembly language, memory management, and algorithmic strategy, making it a staple in programming education.

## Why It Matters
Core War holds historical and educational significance as one of the earliest programming games, offering a unique platform to learn assembly language and competitive coding. It has influenced programming competitions and remains a valuable teaching tool for illustrating low-level system interactions, memory management, and strategic algorithm design. Its open-source nature and cross-platform compatibility have ensured its enduring relevance in both academic and hobbyist communities.

## Notable For
- **Pioneering Programming Game**: One of the first games focused on coding competition, predating modern platforms like Codeforces or HackerRank.
- **Redcode Assembly Language**: Introduced a simplified assembly dialect (Redcode) for competitive programming, emphasizing efficiency and strategy.
- **Educational Tool**: Widely adopted in computer science curricula to teach assembly programming, memory addressing, and process scheduling.
- **Cross-Platform Compatibility**: Supports Linux, DOS, Windows, and macOS, ensuring accessibility across diverse computing environments.
- **Open-Source Legacy**: Distributed under licenses like GPL and BSD, fostering community-driven development and customization.

## Body

### Overview and History
Core War originated in 1984 as a programming game designed to simulate competition between assembly language programs in a shared memory space. Developed by the International Core War Society (ICWS), it gained popularity as both a recreational activity and an educational tool. The game’s inception coincided with the rise of personal computing, providing a practical platform to explore low-level programming concepts.

### Gameplay Mechanics
The game revolves around players (or "warriors") writing programs in Redcode, a simplified assembly language. These programs compete in a virtual memory array, aiming to overwrite or disrupt opposing code. Key mechanics include:
- **Cycles and Execution**: Programs execute instructions in a timed loop, with victory determined by the last running process.
- **Instruction Set**: Redcode includes commands for movement, attack, and defense, such as `MOV` (move data), `ADD` (modify memory), and `JMP` (jump to addresses).
- **Strategy**: Success depends on optimizing code efficiency, predicting opponent behavior, and securing memory control.

### Technical Specifications
- **Platform Support**: Core War runs on Linux, leveraging its open-source ecosystem, and is compatible with historical systems like DOS and modern OSes such as Windows and macOS.
- **Licensing**: The game is distributed under BSD licenses, the GNU General Public License, and freeware models, ensuring flexibility for modification and redistribution.
- **Software Implementations**: Notable simulators include PMars (a portable Core War environment) and Corewars.com, which provide graphical interfaces and tournament features.

### Educational and Cultural Impact
Core War has been integrated into computer science education worldwide, teaching principles of assembly language, memory management, and process scheduling. Its competitive nature inspired early programming contests, influencing the structure of modern coding challenges. The game’s community-driven development, supported by platforms like GitHub (github_topic: corewar), reflects its open-source ethos and adaptability.

### Related Concepts and Software
- **Assembly Language**: Core War’s use of Redcode highlights the importance of low-level programming in understanding hardware-software interactions.
- **Linux Compatibility**: The game’s presence on Linux underscores its alignment with open-source principles and developer communities.
- **Competitive Programming**: Core War predates and informs modern competitive platforms, emphasizing algorithmic efficiency and strategic coding.

### Legacy and Modern Relevance
Despite its 1984 origins, Core War remains relevant in niche programming circles and educational settings. Its focus on minimalism and strategic depth continues to appeal to developers interested in systems programming and retrocomputing. The game’s open-source implementations ensure ongoing development, with active communities on platforms like GitHub and specialized forums.

## References

1. Freebase Data Dumps. 2013
2. Quora
3. GameSpot
4. Q124398839
5. GOG Dreamlist