Reflex Lab
Reflex Lab: watch a neural network learn to defend a Clash Royale tower, live in your browser.
Working when we checked on .
What is Reflex Lab?
Reflex Lab is an interactive browser-based lab where a small neural network learns to defend a tower in a Clash Royale simulator. It is aimed at players and hobbyists curious about reinforcement learning and game AI. A real Clash Royale simulator compiled to WebAssembly runs locally in the browser, and users can watch the network train in seconds with live counters for tries, tries per second, and elapsed time. Visitors can also play defender themselves by dragging a card onto the board, then compare their damage prevented against the learner across the same five attacks. A heatmap shows where the network would drop a defender for any attacker position.
Reflex Lab pricing
Pricing model: Freemium
Free (Open source)
Reflex Lab pros
- Runs a real Clash Royale simulator compiled to WebAssembly entirely in the browser
- Network starts knowing nothing and visibly learns to defend within seconds
- Live training stats show tries, tries per second, and elapsed time
- Users can defend manually by dragging a card and compare scores against the learner
- Heatmap visualization shows where the network would place a defender
- Best possible defence is measured by trying every cell and every delay
Reflex Lab cons
- Limited to a single scenario: defending a tower against five preset attacks
- No account, save, or export functionality is mentioned
- Requires a browser with WebAssembly support
- Project documentation and pricing details are not provided
Frequently asked questions about Reflex Lab
What does Reflex Lab do?
It shows a small neural network learning to defend a tower in seconds, scored by a real Clash Royale simulator compiled to WebAssembly and running in the browser.
Who is Reflex Lab for?
It is aimed at people curious about machine learning and Clash Royale, letting them either watch the network train or defend the tower themselves and compare results.
Does Reflex Lab run locally in the browser?
Yes. The Clash Royale simulator is compiled to WebAssembly and runs in the browser, so training happens locally without a separate install.
How does the AI 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, so the network improves over repeated tries.
Can users compete against the AI?
Yes. Users can drag a card onto the board to defend five attacks themselves, and each round scores the share of tower damage prevented, which is then compared to the learner's results.
What statistics are shown during training?
The training view displays counters for tries, tries per second, and elapsed time, and includes full-speed and watch modes plus a reset option.
What does the heatmap show?
Dragging the red attacker on the board makes the heatmap show where the network would drop the defender for that attacker position.
How is the best possible defence measured?
The best possible result is computed by trying every cell and every delay on the five attacks included in the matchup.
Is there any cost to use Reflex Lab?
The sources show no pricing, plans, or paid tiers; the page only presents the interactive training and comparison features.
Are the same attacks used for the user and the AI?
Yes. The comparison mode runs the same five attacks for the user and the learner, then shows damage prevented on each.