112 points•gcmeplz•about 3 hours ago•58 comments•

58 comments

b450about 2 hours ago
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.
csmeyerabout 2 hours ago
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
nonethewiserabout 1 hour ago
Another interesting things is how low it rates the boss energy relics. Looks like it got by on corruption, offering etc a lot of the time.
sigbottleabout 1 hour ago
Dude.

Sort of unrelated, but I've made comments about how Slay the Spire 1 decks could take on the nightmare that is Dread Act 3 in STS2, and I've been lambasted for this.

I'm sure it's not that hard to do a deeper statistical analysis, but I've been saying, you just see a lot of really good cards in 1 and win. 2 is much more about value piling, which was sufficient until A10. Dread forces you to have good decks, but you often don't get offered the broken synergies as much.

I play exhaust ironclad in dread maybe once in 4 wins at this point, it just does not show up as much. Which can be seen as a good or bad thing - deck diversity etc.

Which is not to say one game is easier than the other (though I think Dread > A20H right now, not for good reasons). However, the peak and frequency of OPness of STS1 decks is not to be understated.

keybrd-intrrptabout 1 hour ago
But then you are using upgrades on Searing Blow and not others?

Perhaps the model sees the cost is not worth the benefit?

b450about 1 hour ago
Could be, that's what I am speculating about! It's a highly situational card which requires you to make a series of suboptimal decisions before you start getting a payoff. But the payoff can be pretty dramatic. If you're playing for win rate, you might categorically prefer "win now" cards. I guess I'm interested in the possibility that the engine has blindspots because, for example, every time it dipped its toes into Searing Blow it stunk, because it never went whole hog.
etermabout 2 hours ago
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.

CuriouslyCabout 1 hour ago
Armaments is bad pre upgrade and good post upgrade (depending on deck size and existing upgrades). If you can pick one up before the first fire and upgrade it for your first elite fight it's bonkers, but halfway through act 2 I wouldn't bother.
GrollingGrakborabout 2 hours ago
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.
b450about 2 hours ago
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 :)
PacificSpecificabout 1 hour ago
That's like the one card in the game I've never been able to make work
nonethewiserabout 1 hour ago
Except Searing Blow is not bad when you know the strategy.

Instead I think players just don’t like all of a sudden committing to a different play style. Also consider that it doesn’t really make sense to take past the first few floors so it’s usually just not an option.

0cf8612b2e1eabout 2 hours ago

  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.

GrollingGrakborabout 2 hours ago
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.

_jackdk_3 minutes ago
https://tck.mn/blog/correlated-randomness-sts2/ was a thorough dig into the since-fixed correlated RNG in Spire II.

HN Discussion of the above: https://news.ycombinator.com/item?id=48552844

nonethewiserabout 1 hour ago
Yes, this is what it means. Sts1 used RNGs for different things but they started from the same seed.

As far as I know it was discovered after the full release. They may not have wanted to break old seeds.

And its pretty trivial to benefit from once you learn some of the rules. For example if your first combat is not a Cultist, your first mystery room is always an event.

vintermann27 minutes ago
As I recall the top players even played with a mod fixing at least some randomness issues in Spire 1.
xiaoyu2006about 2 hours ago
I think as long as the distribution is the same, this is no different than normal sts without save-load.
shooabout 1 hour ago
here's two ways it could be different:

1. the game UI displays the seed of the run. so, combined with full white box knowledge of the game's code, you should be able to reconstruct the current rng state of the game & deterministically predict what the various rng-based outcomes will be, without save loading. this goes completely against the intended experience of the game.

2. with full white box knowledge of the game's code, even if you didn't know what seed you were playing, perhaps it is possible - after enough observations during a run - infer the game's rng state, say for draw order? no idea if this is actually plausible but I believe similar attacks to infer rng state have been done successfully in the past - e.g. against early online poker implementations that seeded their rngs in a weak & predictable way.

edit: there are also issues with correlated rng, where a weakness in how individual rngs are seeded & how the rng state depends upon the seed means that different rngs used for different game functions that the devs intended to be independent are actually heavily correlated with each other. here's a great writeup of the issue for sts2 (in early access) that was fixed by the devs a few months ago: https://tck.mn/blog/correlated-randomness-sts2/

wincyabout 2 hours ago
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
nonethewiserabout 1 hour ago
Sts1 was written in Java
adamrezichabout 1 hour ago
With a very convoluted porting process to get it to run on the Switch—as someone here explained to me before—which explains why it gets so laggy when it has to render too many cards on the screen, which should just be cached textures on quads…
tuvixabout 2 hours ago
Balatro also had the Lua completely available to inspect and i’m sure it’s why the modding community is so rich
daredoesabout 2 hours ago
so I'm not the only one playing on mobile for STS2....
yfontanaabout 2 hours ago
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?

ludamad33 minutes ago
Wait approaching top-level? Aren't top players like Jorbs at like 60% WR
aoeusnth120 minutes ago
The top streaks are 20+ (Baalorlord, Navegreed) and that implies a much higher than 60% wr to achieve in non-galactic timescales.

Read the full thread on Hacker News →

Related stories