A Slay the Spire agent for Ironclad reaches a reported 93.53% win rate in greedy play and 97.1% with search, defeating The Heart on Ascension 20. The results come from 10 million greedy games and 2,048 search games. A headless engine, built by porting the game’s Java code, samples hidden information without giving the agent access to the true seed. The system uses three transformer networks, each with about 14 million parameters: a policy for choosing actions, a value model for map decisions, and a value model for combat decisions. Search uses these models for hundreds or thousands of evaluations per move; greedy play needs only one.
Training combines reinforcement learning with supervised learning. First, the policy learns individual combats from scenarios reconstructed from human game logs, earning rewards for winning and preserving health. For each decision, it compares possible actions across four independently sampled worlds, then trains toward actions with better estimated outcomes. Next, self-play trains the agent on complete Ascension 20 runs, using rewards for climbing floors and beating the Heart. Combat rewards also account for the quality of the state after battle, encouraging the agent to conserve resources for the rest of the run rather than simply maximize immediate combat success. The report presents this staged approach as the basis for performance beyond top human play.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.