Amber Eye: a Slay the Spire engine approaching top-level play 8e9f.github.io · 8...
HN Best 200 @best
Amber Eye: a Slay the Spire engine approaching top-level play 8e9f.github.io · 89 points · 44 comments · HN thread
TL;DR Amber Eye is an AlphaZero-style neural engine for Slay the Spire's Ironclad A20H (highest ascension) mode, trained from scratch on one desktop for about a month over roughly 13.8 million self-play games. In a 100-game sample played against the real game it won 90, including a 19-game streak, while the author describes its tactical play as frequently poor. The write-up covers its card, relic and shop valuations, its exhaust-looping macro strategy, and the technical methods used, including Gumbel search and hidden-information handling.
- Won 90 of 100 sampled Ironclad A20H runs using a 262k-position search budget per move (about 30-60 minutes per game); self-play winrate at a lower budget is about 85%.
- Trained with AlphaZero-style self-play on one desktop for about one month, reaching strength the author thinks could be reproduced in about a week with learned improvements.
- Strategy favours hard-forced exhaust loop decks, with Pyramid, Fairy in a Bottle, the three books and Pocketwatch rated highest by value, and Searing Blow and Bottled Flame rated low.
- Micro play is described as poor: it bleeds HP, wastes potions and damage, and sometimes misplays fights, yet the macro strategy compensates.
- Technical choices include Gumbel AlphaZero instead of PUCT, a transformer over game-state tokens, a utility mixing win chance with floor and HP shaping terms, and a simulator (sts_lightspeed) with hidden RNG rerolled during search.
- Hidden information is handled by rerolling RNG on reveal and using double progressive widening, and the sample used the RNGFix mod to remove correlated randomness.
Discussion The thread is mostly enthusiastic and curious, with commenters engaging with the card and relic valuations and with the question of whether the bot's weak tactical play hides or distorts what it has learned. Much of the debate centres on Searing Blow, which the engine rates as the worst card and which several Slay the Spire players also dislike, and on whether the engine's HP-conservative macro is a workaround for poor micro. Side threads cover the game's RNG and correlated randomness, a request to run the engine, and whether the approach could extend to Slay the Spire 2. Skepticism is present but measured, and some commenters admit they cannot judge the engine's play themselves.
- Engine's valuations show it misjudges cards like Searing Blow (many): Several commenters argue Searing Blow scales steeply with upgrades, so a gradient-driven engine that avoids it may miss a strong strategy. Others reply that top players also rate it poorly and that it is a meme card with real opportunity costs.
- Bad micro distorts the macro rankings (many): Some argue the engine's strong HP preservation is compensating for weak tactical play, so card and relic rankings might change if micro improved. Others counter that micro and macro are intertwined in Spire, so the separation is not clean.
- Macro strategy matters more than micro in Spire (some): Commenters note that strong deckbuilding can carry mediocre tactics, and that the game is mostly discrete decisions without time pressure. One points to the Guilderun game as evidence that micro could be largely removed without ruining the game.
- Seed and RNG leaks are the main fairness question (some): Discussion explains that vanilla Slay the Spire's correlated RNG can be exploited and that the seed is displayed, so the RNGFix mod and the 'ideal Spire' framing matter. Some note that a neural network would exploit such patterns quickly.
- Interest in running the engine or extending it to STS2 (some): Readers ask whether the engine can be run by others and suggest analysing Slay the Spire 2, including multiplayer self-play dynamics. The author has said the other three characters are future work.
- Engine is a bot, not a real game engine (a few): One commenter objects that the engine is simply a bot running inside the original game rather than an engine for it, which another replies is the same sense in which chess engines are engines.
Links from the comments
#SlaytheSpire #AlphaZero #reinforcementLearning #gameAI #machineLearning