Engine & tech
Automated playtesting
Also: automated playthrough, solution test
An automated playtest is a test in which a program plays the game without a human, for example by following a stored solution or trying every possible move. It catches technical errors and unwinnable states, but it does not replace testing with real players.
Background
Large productions have long used bots to run through levels and hunt for crashes, collision bugs or performance drops. In adventure games the question is different: is the game still solvable after every change, and can a player get stuck anywhere?
Two approaches complement each other. A solution test replays a fixed sequence of moves and fails at the first invalid step, which is fast and unambiguous. A state-space search tries everything and also finds routes nobody planned for.
The usual mistake is reading too much into a green result. A passing test says the game can be solved, not that it is fair, clear or funny. That still takes people who are seeing it for the first time.
How we do it
Every game on the Wurzelwerk engine ships with a solution.json. runSolution replays it through the same runtime the browser uses and fails on any invalid step; explore searches the state space for dead ends. Along the way the test estimates play time from reading speed, walking distance and thinking time: about 20 minutes and 83 steps for Spätlese 404.
npm test covers every game; Persona non grata most recently passed 133 of 133 tests. A dedicated test there also checks that a matching hint exists for every step of the solution.
Related terms
- State spaceEngine & techThe state space is the set of all game states reachable through legal moves, together with the transitions between them.
- Dead endAdventure designA dead end is a game state from which no ending can be reached any more, even though the game keeps running.
- First-time player testProduction & AI toolsA playtest in which someone plays without prior knowledge or a walkthrough, to find friction and unfair spots.
- Headless engineEngine & techA headless engine can run game logic without graphics or sound, for example for tests, servers or tools.
- Hint systemAdventure designA hint system helps stuck players from within the game, usually in steps from a gentle nudge to a clear direction.