A survey of existing projects in the Clash Royale AI space and related deterministic simulation / game AI systems, with an analysis of how this project compares.
The following table compares every significant public Clash Royale AI project against this one. Each occupies a different part of the stack; none covers all four layers.
| Project | Approach | Perception | Simulation | Data Pipeline | Lang |
|---|---|---|---|---|---|
| This project full-stack | Data eng → perception → deterministic sim | MobileNetV3 (97.4%, 2.1MB) + ONNX Rust inference | Deterministic Rust engine, 20 tps, integer-only, 3K+ agents | 440K-frame dedup, Real-ESRGAN, 295K+ augmented images | Rust + Python |
| akavishwar (Berkeley) live agent | Live-play agent, <80ms E2E | ONNX detector + multi-object tracker + OCR + HMM | None | None | Unknown |
| wty-yy/KataCR 388★ (paper) offline RL | Visual offline RL | YOLOv8 object detection (150 classes) | None | Generative slices (4,654) + synthetic | Python |
| Pbatch/ClashRoyaleBuildABot 353★ emulator bot | Emulator bot with GUI | YOLOv10 + state generator | None | Synthetic data (planned) | Python |
| houseworthe/claude-royale 17★ LLM agent | LLM-as-agent via screenshots | Claude vision (7s latency) | None | None | Shell + JS |
| Jaso1024/RT-Strategy-RL PPO RL | PPO multi-agent RL | Screen capture, factored state | None (trains on live game) | None | Python |
| stanly363/Royale-RL Decision Transformer | Decision Transformer + online RL | YOLOv9 + MobileNetV2 + OCR | None (trains on live game) | None | Python |
Notable results: akavishwar's agent reached Ultimate Champion rank (roughly top 0.05% of all players) on a free-to-play account. KataCR defeats the built-in 8000-rating AI with 12 consecutive wins via offline RL. claude-royale reached 1,000 trophies live on Twitch. These are the highest-performing public CR AI systems.
Every existing project trains or plays against the live game through an emulator, which limits training to real-time speed (~3–5 minutes per game). This project's deterministic Rust engine targets 10,000+ parallel simulation instances at 1.5 μs/instance batch latency, enabling the same self-play approach that powered OpenAI Five (Dota 2) and AlphaStar (StarCraft II). The engine stress-tests to 3,000 concurrent agents at 29 ms/tick on a single M1 Pro core.
The 440,000-frame temporal deduplication pipeline, Real-ESRGAN super-resolution from API assets, and 4-stage augmentation suite producing 295K+ synthetic training images is production-grade data engineering — fully automated end-to-end from raw API assets to labeled training data. KataCR shares the generative-augmentation philosophy (YOLOv8 + synthetic slices), but operates at a smaller scale (4,654 slices vs. 295K+ images) with no temporal deduplication, no super-resolution upscaling, and no Rust/parallel processing.
The accompanying technical writeups prove charge-attack step functions, pulsed DoT mechanics, N-body collision convergence, and simultaneous hit resolution at tick-level precision with 100× reproducibility — engineering proofs, not implementation notes.
The Rust inference pipeline achieves 22 FPS throughput with ~9ms per-card latency via batched ONNX Runtime + rayon parallelism, targeting CoreML/ANE acceleration. A per-slot state machine pre-filters card slots using sub-microsecond pixel fingerprinting, eliminating 49% of inference calls (21K of 43K) across a live match — designed for cost-constrained and edge deployment scenarios.
These projects share architectural DNA with this one — deterministic simulation, Rust game engines, fast-sim-for-RL paradigms — across different game domains and system types.
| Project | Domain | Architecture | Relationship |
|---|---|---|---|
| Mortal 1,245★ Rust sim | Mahjong AI | Rust emulator + Python RL, deterministic self-play, 40K games/hr | Closest architectural parallel. Same pattern (Rust sim → RL training), but Mahjong is turn-based/discrete. CR is real-time with continuous spatial dynamics — a harder simulation problem. |
| DeepMind OpenSpiel framework | General game AI | C++ core + Python bindings, 70+ games, MCTS/CFR/RL | Academic gold standard for game RL research. Turn-based focus — does not model continuous spatial dynamics, real-time tick loops, or N-body collision physics. |
| MadSim Rust sim | Distributed systems | Deterministic Rust async runtime for chaos testing | Shares the deterministic-replay-in-Rust philosophy, but for network systems rather than game agents. Architectural peer. |
| elidupree/time-steward Rust sim | Deterministic game sim | Rust framework for networked deterministic simulation | Addresses the same core challenges: integer-only arithmetic, deterministic event ordering, reproducible state across clients. Framework vs. concrete implementation. |
| Oxidator Rust RTS | Rust RTS engine | WebGPU-based RTS with optional determinism | Author explicitly rejected deterministic simulation as too costly. This project chose the opposite tradeoff — determinism first, correctness proven, then optimize. |
| OpenAI Five (paper) | Dota 2 | Fast sim → massive self-play → emergent strategy | Spiritual predecessor. Trained via 10 months of self-play at 250+ years of gameplay per day using rapid simulation. The architecture pattern this project is building toward. |
| DeepMind AlphaStar | StarCraft II | Fast sim → multi-agent league self-play → grandmaster level | Same paradigm: fast deterministic simulation enabling millions of training games. Achieved Grandmaster level in all three SC2 races. Closed-source engine, open-source training code. |
Most game AI projects occupy one layer of the stack. This project spans all four:
┌─────────────────────────────────────────────────────────────┐
│ DECISION LAYER (RL / MCTS / LLM / Rule-based) │ ← akavishwar, claude-royale
├─────────────────────────────────────────────────────────────┤
│ PERCEPTION LAYER (CV models, state extraction) │ ← Pbatch, stanly363, KataCR
├─────────────────────────────────────────────────────────────┤
│ SIMULATION LAYER (deterministic game engine) │ ← Mortal, OpenSpiel
├─────────────────────────────────────────────────────────────┤
│ DATA LAYER (collection, dedup, synthesis) │ ← (rarely addressed)
└─────────────────────────────────────────────────────────────┘