Skip to content
Rust Core War
Game-dev

Rust Core War

RustratatuiTerminal UIAssemblyVirtual MachineSystems ProgrammingGame Development

Overview

A modern reimagining of Core War in Rust with a ratatui terminal visualizer, featuring real-time battle visualization and an assembly compiler for warrior programs.

Background

This project reimagines the classic Core War programming game in Rust, adding a rich terminal UI built with ratatui for real-time battle visualization. Warriors written in a custom assembly language compete for control of a shared memory space, with the terminal visualizer showing memory access patterns, instruction execution, and battle progress in real time. The project includes a full assembly compiler, virtual machine with cycle-accurate execution, and configurable arena parameters. The ratatui-based TUI provides colorful memory maps, execution traces, and live statistics. Technical specs: ~6,000 lines of Rust code, ratatui terminal UI, custom assembler, cycle-accurate VM, and real-time visualization at 60fps.

Preview

Preview of Rust Core War
Preview of Rust Core War