Skip to content
Rust Core War
Systems

Rust Core War

RustratatuiTerminal UIAssemblyVirtual MachineSystems ProgrammingGame Development

Overview

A modern reimagining of the classic Core War programming game, featuring a real-time terminal visualizer built with Rust and ratatui, alongside a full assembly compiler.

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