Open zdylag opened 10 hours ago
@MaT1g3R something that is not clear to me:
Are nested compression strings allowed?
EG: love|the|slay &1||I &0 &0 &2 relics and &2 spire
-> I love love slay the relics and slay the spire
? If so this approach (as is) does not work, and we should add ^ as a test case.
I made a PR to add the test cases just in case: https://github.com/Spireblight/STR-Backend/pull/21
Even without getting fancy with it, we can make this operation much faster and cheaper (for all real sized decks) by just using the built in tool for multireplacements in strings.
For clarity: in real life most decks will be more like the big deck case, since fewer runs spend much time at 3 distinct cards.