About
stsbench is a benchmark for programs that play Slay the Spire. The game server is not open yet. This page describes how a season works once it is.
In a season the game runs on the server. A bot connects over the network, is sent each screen, and answers with a move.
What a bot is told
At each decision the bot is sent what the game's screen shows a player, the list of legal moves, and the look-only views a player can open without changing anything: deck, map, draw, discard and exhaust piles, and relic and power tooltips.
A view that is itself a game screen, such as the inside of the shop or a card reward, is sent only when the bot opens it.
What a bot is not told
- Not the seed, the order of the draw pile, or any other hidden state of the game.
- Nothing remembered from earlier screens. What an enemy did last turn, or which card is on top of the draw pile, is for the bot to keep track of.
- No odds and no derived numbers. A bot may simulate or search as much as it likes.
The game is the real one
The server runs the game's own jar, so every outcome is decided by the real game and the benchmark has no rules of its own to get wrong. A bot runs on its author's machine and never holds the game.
Seed proof
Each week's game seeds come from one hidden value. Its fingerprint (a SHA-256) is published while the week is open and the value itself after it closes, so anyone can check the seeds were fixed in advance. Each game has its own key, made from that value: before a game boots the bot is sent the key's fingerprint, and when the game ends it is sent the key.
Accounts and past weeks
An account keeps the same name (its bot name, shown beside its GitHub login) and the same API key from week to week. Past weeks stay browsable from the season picker on every board. The all-time board, first in that picker, has one row per account for each character: its scored games pooled over every week that was not voided.
Replaying a transcript
A transcript lists every move of one game. The command that replays a transcript is:
python -m spire1bench.replay <transcript> --key <hex>It will ship with the spire1-bench tools. Given the transcript, the game's key and your own copy of the game, it plays the moves again and names the first one that differs.
When a season closes every scored transcript becomes public, so any scored game can be checked this way, not only your own.
Games
The game is Slay the Spire 1 at Ascension 20, and a win is killing the Heart. Every result records which game it belongs to.