Amber Eye engine wins 90 of 100 Slay the Spire Ironclad A20H games

Amber Eye is an engine that plays Slay the Spire runs as Ironclad on Ascension 20 with the Heart (A20H). Its author reports that in a sample of 100 games it won 90, including a streak of 19. The engine was trained with AlphaZero-style techniques: a neural network starts with almost no prior knowledge of the game's mechanics and learns to win by playing games and observing the outcomes. Training ran from scratch on the author's desktop computer for about one month and covered about 13.8 million games. The author says its playstyle is not quite like any other player they have watched, and that the ideas in its play deserve further study. The full set of 100 sample games has been uploaded for viewing.

How the sample was played: the engine controlled a real game instance through a modified version of CommunicationMod, with a search budget of 262k positions per move, which works out to about 30-60 minutes per game. The author says the engine has no knowledge of the seed or RNG state, and that they ensured this to the best of their ability by passing it only visible or previously revealed game state. The model aims to learn an abstract 'ideal Spire' in which random outcomes are truly random rather than drawn from a seeded RNG. Both training and evaluation use the RNGFix mod, because otherwise the model could learn certain aspects of correlated RNG.

The author calls themselves a mediocre player (about a 30-40% Ironclad A20H winrate) and says they are not particularly qualified to analyse the engine's macro play. Their first reaction was that it constantly made mistakes; their second was that it wins a lot anyway. They were very surprised it reaches such a high winrate. Overall, the engine's general ideas resemble those of good players, but the details look very off in a way the author cannot explain.

The engine appears to aim for hard-forcing looping decks in the endgame: exhaust down and play many Pommel Strike, Shrug It Off, Rage and Dropkick style cards. It sometimes uses other win conditions (Snecko, strength scaling, Barricade). It will play greedily for loops, for example taking Dark Embrace on floor 1 or buying The Abacus in the Act 1 early shop, and it is comfortable building its exhaust engine around Havoc or Sever Soul. Its micro play is usually rather terrible: it bleeds HP and wastes damage or potions, often several times per run. In run 51 of the sample it threw away a very strong position entering the Heart fight, helped by a bad draw order. The author replayed that fight and won easily. Occasionally it pulls off flashy lines.

Because the engine outputs a win probability for every position, the author uses it to rank choices. The value of a choice is defined as the difference in win probability, in percentage points, between that choice and the next best option (or skipping), or 0 if it is not the best choice. The charts rest on about 43,000 self-play games from the end of training. Those games used a lower search budget and had a winrate of about 85%, slightly below the sample runs. The charts show 95% confidence intervals.

Findings from those ratings: Neow's third option is favoured unless it is a rare colorless card or max HP. Boss swap is rated very poorly and never picked, costing about 7-8 percentage points of winrate; only Pandora's Box, Astrolabe, Runic Pyramid and Fusion Hammer were clearly positive swaps. The two-option blessing (Lament versus +10% max HP) is rated about 2 percentage points worse than the full blessing. Premium exhaust cards rate highly, with Offering in a tier of its own, while a significant part of the card pool is rated as garbage and never picked. Sever Soul and Reckless Charge rate higher than the author expected.

In the sample runs the engine picked garbage attack commons on floors 1-6 more often than self-play suggests: Cleave 4 times, Wild Strike 6, Thunderclap 4 and Sword Boomerang 2, roughly double the expected rate. The author's possible explanation is that the larger search looks further ahead into hallway fights and sees the value of attacks, and they judge the winrate impact likely marginal.

On relics, Pocketwatch far outclasses the other non-boss relics. Dead Branch is picked only 80% of the time yet sits near the top, and Bottled Flame is skipped 80% of the time. Pyramid is literally off the charts and is on average the highest-impact choice in the whole run, followed unexpectedly by Pandora's Box and Runic Cube. The engine doesn't care much about energy: 31 of the sample games were played with no energy boss relic. Fairy is rated far above all other potions, probably because the engine wastes drinkable potions but can use the undrinkable Fairy, as a short-term resource and as Act 4 insurance. It is also the top-priority potion purchase in shops.

Events and rest sites: the engine clicks Scrap Ooze at least once about 96% of the time, never takes the upgrades in Shining Light, virtually never upgrades all basics in Ancient Writing, and never takes Mark of the Bloom. It takes keys earlier than most players, and in a large majority of games it has already Recalled before entering Act 3. It rests a lot and values only a few key upgrades such as Pommel Strike, Feel No Pain, Body Slam, Havoc and Offering. One stated model limitation is that its visibility into deck order is limited to the top two cards.

The text ends in a technical section on how the engine was built. The visible part covers the AlphaZero recipe, which the author describes as a general method for games with a discrete action space, two players, deterministic play and perfect information. AlphaZero, the author writes, bundles value estimation and search into a self-improving loop driven by a neural network. The author says they will work on extending the engine to the other three characters.

Key facts

  • Amber Eye won 90 of 100 sampled Slay the Spire Ironclad A20H games, with a best streak of 19, at a search budget of 262k positions per move (about 30-60 minutes per game).
  • It was trained from scratch with AlphaZero-style techniques on the author's desktop computer for about one month, playing about 13.8 million games.
  • The author says the engine has no knowledge of the seed or RNG state, and that both training and evaluation use the RNGFix mod.
  • The engine aims for exhaust-based looping decks but has terrible micro play, wasting HP, damage and potions; the author calls themselves a mediocre player (about 30-40% winrate).
  • Engine ratings, from about 43,000 self-play games at roughly 85% winrate, rank Pyramid as the highest-impact choice, rate Fairy far above other potions and rate boss swap about 7-8 percentage points costly.

Why it matters

Slay the Spire is a game with random outcomes, and this engine is reported to win 90 of 100 Ironclad A20H games after a month of training on one desktop machine. The author stresses that the engine's play looks off in many details yet still wins, which makes it an unusual source of strategy ideas. Its win-probability estimates also let the author produce rankings of cards, relics, potions and event choices, measured on about 43,000 self-play games.

Who it affects

Slay the Spire players, especially Ironclad players at high ascension, can watch the 100 uploaded games and read the engine's ratings. Developers interested in AlphaZero-style training for games with random outcomes get a worked example from a single developer on consumer hardware. The author says they will work on extending the engine to the other three characters.

How to use it

The author uploaded the full set of 100 sample games for viewing, and highlights a few they found interesting. The charts rank choices by engine-estimated impact on win probability, covering Neow options, cards, relics, potions, shops, events, keys and rest sites. The visible text does not say whether the code or model is released.

How solid is it

The results are self-reported by the author, who also built the engine. The 90 of 100 figure comes from a larger search budget of 262k positions per move; in the lower-budget self-play games the winrate is about 85%. The author says the engine has no seed or RNG knowledge and that they ensured this to the best of their ability; the source does not claim this was independently verified. The author also says they are not qualified to judge the engine's macro play, and the explanation for the early attack-common picks is offered only as a possible one.

Risks and caveats

The 90 of 100 result is for Ironclad only; other characters are not covered. The engine's choice ratings are its own estimates, and the author notes distortions: rare colorless cards are probably underrated because most come from Sensory Stone late in strong runs, and the HP spent to get the three books is not counted, which inflates their placement. The engine also has blind spots, such as taking the Dead Adventurer Lagavulin fight too often, and its visibility into deck order is limited to the top two cards. The source does not claim the engine beats all human players.

“Its playstyle is not quite like any other player I have watched, and I believe that the ideas exhibited by its gameplay are worth further study.”

— The author of Amber Eye