Reflex Lab

itzik123.github.io · 2026-10-04 · by Long Nguyen ·generic
Watch a small neural network learn to defend a tower in seconds, scored by a real Clash Royale simulator compiled to WebAssembly and running in your browser.

Reflex Lab

MatchupChange

Matchup

Attacker

Your defender

No defence-

Random drop-

Best possible-

Measured by trying every cell and every delay on the five attacks below.

Train Show me See results

Drag onto the board

Skip demo

1. 1Your turn 2. 2AI's turn 3. 3Results

Defend it yourself

Five attacks. Drag your card onto the board to drop it, where and when you like. Each round scores the share of tower damage you prevented.

Start round 1 Skip to the AI

Watch it learn

It starts knowing nothing. Each try, the engine drops the attacker somewhere new, the network picks a cell and a moment, and the engine reports the damage.

Train Reset

Watch Full speed

Tries0

Per second0

Time0.0s

Drag the red attacker on the board: the heatmap shows where the network would drop your defender.

Show me See results

Same five attacks

You

The learner

Keep training Try another matchup Finish

Damage prevented on the five attacks

Comments (0)

No comments yet