A lot to take in here. One interesting random observation: The model rates Searing Blow as the worst card. The key with Searing Blow is that each upgrade gives it a larger marginal improvement than the last one. So the best strategy is generally to path towards upgrades and put them all on Searing Blow, avoiding too many dangerous elite encounters while scaling it up, and ending up with a card that can kill nearly everything short of the heart in 1 or 2 hits. Without maxing it out, Searing Blow might soak up several precious upgrades and still remain a mediocre attack (it notoriously needs _4_ upgrades to be better than Carnage+). I reckon that the winning strategy around Searing Blow is a small, steeply-sloped optimum, so a neural network is very unlikely to find it by working up a gradient. Rather, it seems to have converged on a reliably forceable strategy (exhaust, which _is_ Ironclad's most reliably good archetype) which more or less linearly gets stronger the more you invest in it. As I recall, the player with the best Watcher win streak (at least for some time) basically did this by forcing the red-blue strategy and refusing to draft anything unrelated to it.
I would love to see a version of this engine steered towards “meme builds” like Searing Blow or Perfected Strike, although they are in general rather considered quite suboptimal since there’s a lack of late game scaling and substantial opportunity cost through the run
Notably a lot of top players rate Searing Blow as one of the worst cards in the game as well :P (probably not the worst, idk). But the card is really bad even if you know the strategy.
True. I wonder how top players would rate it as a floor 1 pick - the engine regards Searing Blow as the worst possible pick even on floor 1! Seems implausible to me, but then again I can't win 90% of the time :)
Slay the Spire and Slay the Spire 2 are such cool games because the .NET code is just sitting there. I play the early access beta branch of StS2 and have over 400 hours played and wanted it on the go, it took Codex Astra about one hour to get a rough port then 1.5 hours of me QA testing to get it totally playable on iPhone Duo
the model aims to learn to play “ideal Spire”, an abstract version of the game where random outcomes are drawn truly at random, instead of from a seeded RNG. This is the version that players generally agree is more interesting (optimally solving “real Spire” would involve reverse engineering the seed)
Is this different from how the real game works? I thought cards games had some thumbs on the scale: instead of truly random, you might get a random sort of N items, which gets shuffled after you have seen all entries. So, randomized, but you can only every encounter so much good/bad luck.
Edit: reading a little further, there are indeed some weaknesses in the standard gameplay randomness, so this version is slightly different.
Spire doesn't use stratified randomness. What the website means is that the vanilla game doesn't come with a crypto RNG, so correlated randomness exists ("if X happens during a fight, the next event can't be Y").
People normally don't know about it, and the ones that read about it use a mod to patch it out, because the point of the game is obviously not to learn the pseudo RNG by heart. But of course a neural network would start to exploit this very quickly because it can't tell the difference between what's a "real" game mechanic and what isn't.
Fascinating stuff. I watched a couple of the videos and as the author points out, the engine's tactical play ("micro") is truly awful - a total neophyte would beat it on many micro decisions. Looking at the card / relic / event / Neow bonus choices, the engine really does not want to lose HP - my understanding is that most top players are far more comfortable with treating HP as a resource to be spent. Putting these two together: I suspect the engine is "correcting" for its bad micro by preserving HP to paper over mistakes. If the micro were improved even slightly, the Objectively Correct™ card / event / relic rankings might look significantly different.
But it plays way better than I do, so who am I to judge?
I've seen the advice in mobas that bad players focus too much on trying to improve their micro when actually better macro would make up for bad micro, especially at lower ranks. Which is to say, maybe this also figured out that between optimizing for micro or macro it chose macro?
So is it making up for bad micro by avoiding glaring errors that humans make like missing lethal or forgetting you have a potion? Or superior deck building?
some of these strategies might be directly related to the ironclad class. It has many cards with mechanics that hurt the player to produce effects, perhaps it doesn't want to sacrifice health in other places so it has a comfortable cushion for card play?
Super interesting read! I only played STS a little bit years ago, so the discussion of various choices went over my head. But it's quite interesting that, as far as I understand, the engine's main strength is its macro strategy, and it is strong enough at it to compensate for weaknesses in the micro. Intuitively it seems like the micro should be easier to learn (as at least some of the consequences are more direct: you lose more HP).
I also find it pleasantly surprising that this could be trained on a single GPU in a reasonable amount of time. I don't think the exact GPU is ever mentioned though. I'm guessing it's a typical gaming GPU like a 5080, rather than something like an H100?
A lot to take in here. One interesting random observation: The model rates Searing Blow as the worst card. The key with Searing Blow is that each upgrade gives it a larger marginal improvement than the last one. So the best strategy is generally to path towards upgrades and put them all on Searing Blow, avoiding too many dangerous elite encounters while scaling it up, and ending up with a card that can kill nearly everything short of the heart in 1 or 2 hits. Without maxing it out, Searing Blow might soak up several precious upgrades and still remain a mediocre attack (it notoriously needs _4_ upgrades to be better than Carnage+). I reckon that the winning strategy around Searing Blow is a small, steeply-sloped optimum, so a neural network is very unlikely to find it by working up a gradient. Rather, it seems to have converged on a reliably forceable strategy (exhaust, which _is_ Ironclad's most reliably good archetype) which more or less linearly gets stronger the more you invest in it. As I recall, the player with the best Watcher win streak (at least for some time) basically did this by forcing the red-blue strategy and refusing to draft anything unrelated to it.
I would love to see a version of this engine steered towards “meme builds” like Searing Blow or Perfected Strike, although they are in general rather considered quite suboptimal since there’s a lack of late game scaling and substantial opportunity cost through the run
I am extremely surprised Armaments rates so low, it seems like it doesn't value card upgrades much at all which is surprising.
It rates "War Paint" really low too for example.
Notably a lot of top players rate Searing Blow as one of the worst cards in the game as well :P (probably not the worst, idk). But the card is really bad even if you know the strategy.
True. I wonder how top players would rate it as a floor 1 pick - the engine regards Searing Blow as the worst possible pick even on floor 1! Seems implausible to me, but then again I can't win 90% of the time :)
Slay the Spire and Slay the Spire 2 are such cool games because the .NET code is just sitting there. I play the early access beta branch of StS2 and have over 400 hours played and wanted it on the go, it took Codex Astra about one hour to get a rough port then 1.5 hours of me QA testing to get it totally playable on iPhone Duo
Balatro also had the Lua completely available to inspect and i’m sure it’s why the modding community is so rich
so I'm not the only one playing on mobile for STS2....
This seems to be a bot that plays Slay the Spire, which continues to run in its original engine, and not an engine for the game at all.
It's an engine in the same sense as a chess engine, so yeah, a bot.
Edit: reading a little further, there are indeed some weaknesses in the standard gameplay randomness, so this version is slightly different.
Spire doesn't use stratified randomness. What the website means is that the vanilla game doesn't come with a crypto RNG, so correlated randomness exists ("if X happens during a fight, the next event can't be Y").
People normally don't know about it, and the ones that read about it use a mod to patch it out, because the point of the game is obviously not to learn the pseudo RNG by heart. But of course a neural network would start to exploit this very quickly because it can't tell the difference between what's a "real" game mechanic and what isn't.
I think as long as the distribution is the same, this is no different than normal sts without save-load.
Fascinating stuff. I watched a couple of the videos and as the author points out, the engine's tactical play ("micro") is truly awful - a total neophyte would beat it on many micro decisions. Looking at the card / relic / event / Neow bonus choices, the engine really does not want to lose HP - my understanding is that most top players are far more comfortable with treating HP as a resource to be spent. Putting these two together: I suspect the engine is "correcting" for its bad micro by preserving HP to paper over mistakes. If the micro were improved even slightly, the Objectively Correct™ card / event / relic rankings might look significantly different.
But it plays way better than I do, so who am I to judge?
I've seen the advice in mobas that bad players focus too much on trying to improve their micro when actually better macro would make up for bad micro, especially at lower ranks. Which is to say, maybe this also figured out that between optimizing for micro or macro it chose macro?
I feel like this is a pretty significant issue with the approach, surely the bad micro is influencing the strategies it can use?
So is it making up for bad micro by avoiding glaring errors that humans make like missing lethal or forgetting you have a potion? Or superior deck building?
Article suggests it is deckbuilding. It specifically calls out awful potion management as another type of micro failure.
some of these strategies might be directly related to the ironclad class. It has many cards with mechanics that hurt the player to produce effects, perhaps it doesn't want to sacrifice health in other places so it has a comfortable cushion for card play?
It's just willing to play the game without an ounce of fun.
You could probably do equally well if you optimized for boringness.
You'd probably question your sanity then.
My takeaway is that if its dogshit micro is fixed, it could get a 100% win rate (barring provably unwinnable seeds).
Super interesting read! I only played STS a little bit years ago, so the discussion of various choices went over my head. But it's quite interesting that, as far as I understand, the engine's main strength is its macro strategy, and it is strong enough at it to compensate for weaknesses in the micro. Intuitively it seems like the micro should be easier to learn (as at least some of the consequences are more direct: you lose more HP).
I also find it pleasantly surprising that this could be trained on a single GPU in a reasonable amount of time. I don't think the exact GPU is ever mentioned though. I'm guessing it's a typical gaming GPU like a 5080, rather than something like an H100?
Extremely cool! Is there any way we can run this ourselves?
would love to see STS2 analysis for this!