Compiled (iOS & Android Strategy Game)
Commercial mobile strategy game on Google Play (4 languages) where players manipulate CPU registers in a shared cyclic loop, evaluate status flags, and pursue secret objectives. Built with React Native and TypeScript; 100% offline, no ads.
Figures as of Dec 2026.
Project Visuals & Screenshots
1 of 6
Program Board: Staging instructions into the shared cyclic memory loop with CPU registers (R0–R3) and condition flags (Z, N, C, V)
Overview
Compiled is a mobile strategy game developed for iOS and Android that reimagines low-level assembly programming as a competitive tabletop board game. Players share a single cyclic memory buffer and four 4-bit registers, staging cards to trigger arithmetic, bitwise shifts, and conditional jumps while racing to fulfill secret objectives.
Key Features & Engineering Highlights
- ✦Live on Google Play as a paid, ad-free title with 40 monthly active players; localized in English, Korean, French, and Spanish
- ✦Native iOS and Android strategy game built with React Native and TypeScript, featuring high-DPI rendering and tactile haptic feedback
- ✦Shared cyclic memory architecture (8, 12, or 16 slots) driving a deterministic virtual 4-bit CPU model
- ✦Four shared general-purpose registers (R0–R3) and 4 status flags (Z: Zero, N: Negative, C: Carry, V: Overflow)
- ✦31 executable instruction cards across 3 unlockable tiers: Basic (9), Intermediate (19), and Advanced (31)
- ✦Dual play modes: Adaptive singleplayer against 1–3 CPU AI rivals and same-device Pass-and-Play local multiplayer (2–4 players)
- ✦Interactive 20-lesson instructional curriculum teaching binary math, two's complement arithmetic, branch jumps, and sabotage
- ✦Private objective engine requiring dual simultaneous condition checks at turn completion to secure victory
- ✦Privacy-first engineering: 100% local device state persistence with zero ads, analytics SDKs, or cloud accounts
The Problem
Most educational programming games either present dry syntactic quizzes or overwhelm players with complex sandbox environments that feel like work. The challenge was to isolate the genuine thrill of systems programming (the joy of clever bitwise tricks, the surprise of arithmetic overflow, and the puzzle of instruction ordering) and package it into a fast-paced, accessible mobile game that non-programmers and computer scientists alike can enjoy.
The Solution
Designed a shared-state game loop where the "board" is an 8, 12, or 16-slot circular instruction queue and the "game pieces" are four 4-bit registers (R0–R3) with status flags (Z, N, C, V). Players take turns staging an instruction card into an open slot or overwriting existing code, then run the CPU. Because registers and memory are shared, every turn introduces emergent sabotage, tactical misdirection, and tense arithmetic calculations.
Technical Architecture
System Design┌────────────────────────────────────────────────────────┐
│ React Native Mobile UI │
│ (Program Board, Command Deck, Carousel, Dialogs) │
└──────────────────────────┬─────────────────────────────┘
│ State Dispatch / Actions
┌──────────────────────────▼─────────────────────────────┐
│ Game Turn & Match Orchestrator │
│ (Stage -> Review -> Advance -> Execute -> Check) │
└──────────────────────────┬─────────────────────────────┘
│ Instruction Stream
┌──────────────────────────▼─────────────────────────────┐
│ Virtual 4-Bit CPU Engine │
│ ┌───────────────────┐ ┌─────────────┐ ┌───────────┐ │
│ │ ALU (Add/Sub/Bit) │ │ Registers │ │ Flags │ │
│ │ Signed & Unsigned │ │ (R0, R1, │ │ (Z, N, │ │
│ │ 2's Complement │ │ R2, R3) │ │ C, V) │ │
│ └───────────────────┘ └─────────────┘ └───────────┘ │
│ ┌───────────────────────────────────────────────────┐ │
│ │ Cyclic Memory Loop (8 / 12 / 16 Slots, 5 BRA Max) │ │
│ └───────────────────────────────────────────────────┘ │
└──────────────────────────┬─────────────────────────────┘
│ State Queries & Evaluation
┌──────────────────────────▼─────────────────────────────┐
│ Heuristic CPU Rival & AI Engine │
│ (Goal Evaluation, Sabotage Heuristics, Difficulty) │
└──────────────────────────┬─────────────────────────────┘
│ Local Device Storage
┌──────────────────────────▼─────────────────────────────┐
│ AsyncStorage / Local Game State │
│ (Curriculum Progress, Unlocked Tiers, Settings) │
└────────────────────────────────────────────────────────┘The application uses a unidirectional data flow architecture optimized for 60 FPS mobile rendering. The Virtual CPU Engine implements strict 4-bit two's complement arithmetic and flag updates (Zero, Negative, Carry, Overflow), isolating core computer science logic from presentation. The Game Turn Orchestrator manages the 5-phase turn sequence (Stage, Review, Advance, Execute, Check), while the AI engine evaluates candidate card placements by simulating forward register outcomes against secret objective probability matrices.
Key Engineering Decisions
Shared-Register Zero-Sum Architecture
Rather than giving each player an isolated board, all players manipulate the identical 4-bit register bank (R0–R3). This creates high-stakes tactical friction where any optimization for player A directly impacts player B's board state.
Cyclic Memory Loop with 5-Instruction Branch Bounds
To prevent infinite execution loops while preserving the tactical power of branching (BRA -3 to +3), the execution engine limits consecutive branch chains to 5 instructions before advancing the Program Counter.
Strict 4-Bit Limits & Two's Complement Overflow
Restricting values to 4 bits (-8 to +7 signed, 0 to 15 unsigned) makes mental math instant while producing frequent, dramatic arithmetic overflows that turn innocuous moves into game-changing surprises.
Store Operations & Localization
Shipped as a paid, ad-free Google Play title with a no-data-collection declaration; localized into English, Korean, French, and Spanish, with balance updates and tester credits driven by player feedback.
Zero-Telemetry, 100% Offline Architecture
In strict adherence to digital minimalism and user privacy, the app contains zero ads, third-party analytics SDKs, or cloud accounts. All match states and tutorial progress are persisted strictly on-device.
Challenges & Solutions
Accurate Flag Modeling (Carry vs. Overflow)
Designing a clear distinction between unsigned carry (C) and signed two's complement overflow (V) required rigorous test suites to ensure that instructions like ADD #1 vs ADDU #1 set flags identically to real hardware architectures.
Balancing Heuristic AI Rivals under Imperfect Information
Because players keep their victory objectives secret, CPU rivals evaluate moves using probabilistic heuristics, balancing progress toward their own objectives against disruptive sabotage of suspicious opponent moves.
Mobile-Optimized Cyclic Program Board UX
Visualizing a cyclic memory track, 4 registers with binary/hex representations, and card hands on compact mobile displays required a responsive layout with smooth sliding transitions.
Results & Impact
- ✓Google Play distribution for Android (com.compiled.game): 40 monthly active players, four languages
- ✓Engineered full 31-instruction card suite spanning Basic, Intermediate, and Advanced tiers
- ✓Built interactive 20-lesson curriculum and full same-device pass-and-play multiplayer
- ✓Official companion project website live at axyl-casc.github.io/CompiledWebsite
Limitations & Next Steps
- →Pass-and-play local multiplayer only; no online matchmaking.
- →Heuristic CPU rivals are tuned for enjoyable play, not provably optimal strategy.
- →Small but real audience (40 MAU): store discovery and retention are ongoing product work.
Related Projects
Other work that shares technologies or themes with Compiled (iOS & Android Strategy Game).
Defender Remake on Atari ST
Recreation of the arcade classic Defender for Motorola 68000-based Atari ST hardware. Implements a 70 Hz Vertical Blank (VBL) interrupt service routine for tear-free double-buffered raster graphics, Yamaha YM2149 PSG sound synthesis, and custom IKBD interrupt handling.
Infinite Mind Games – Wiki Docs
Internal knowledge platform shipped for Infinite Mind Pictures: Quartz 4 + React + TypeScript with an automated Python image-optimization pipeline, accessible neurodivergent-friendly layouts, and continuous deployment to GitHub Pages.
Fancy Pants Outfitters (React Demo)
React storefront demo with cart management, simulated role-based auth, and Plotly sales analytics.