Spielerando

Check your game's rules in your browser

Four checkers that run right here, in this tab: one for stories, quests and game rules, one for Twine stories, Z3 for numbers, and a walk through every state of a TLA+ spec. Load an example from this site or paste your own file, press the button, and read what the checker found, with the exact path to every problem.

What you type stays on your computer

The checkers come from spielerando.com and then run inside your browser. What you paste, type or open here is never sent, not to us and not to anyone else. Your browser holds the page to that: it may only connect to spielerando.com and to the visit counter every page of this site has. Close the tab and your text is gone. How the visits are counted: privacy policy

Stories, quests and game rules

These are the checkers from Spielerando's code recipes, the same code the recipe pages show and test. Each takes your story, quests, dialogue, state machine or game card written as JSON, walks every way it can go, and reports every dead end, broken rule and part nobody can reach, each with the path that leads there. Your AI can write the JSON from your game; the recipe page shows how it is built.

How the file is built, with the code and its tests: Plot hole finder

Twine stories: dead ends and broken links

Paste a Twine story or open its file: a Twee file, or the HTML file Twine publishes or keeps in its library. The check reads every passage and its links the way Harlowe, SugarCube or Chapbook reads them, and lists every link to a passage that does not exist, every passage no player can reach from the start, every dead end, and every variable that is read but never set or set but never read. Each finding names the passage, and the path to it from the start. What it reads in each story format, and what it does not: the Twine guide.

The code, with its tests: Twine story check, which walks the story with Story path check

Your browser reads the file here, on your computer. It is not uploaded.

A passage counts as an ending when it has the tag end or ending. If a dead end below is meant as an ending, tick it, and the check runs again. It does not work out conditions: a link inside (if:) or <<if>> counts as always there.

Z3: is there any number that breaks it?

Z3 is a solver from Microsoft Research. A file names your numbers, the range each one can take and the thing that must never happen, and Z3 searches every value in those ranges at once. It answers sat when it found a setting that breaks the rule, and shows it; unsat when no setting in the ranges does; unknown when it could not decide, which is never a pass. How to write these files: the Z3 guide.

This is Z3 4.15.4 from the official z3-solver package, built as WebAssembly. It downloads only when you press Run, and your browser keeps it for next time. Where a file says before each (check-sat) what it expects, as the blueprints' files do, the page marks whether Z3 agreed. When Z3 answers sat, the setting it shows can differ from the one printed in a guide, as this build may find another one first: any setting it shows breaks the rule, and whether the answer is sat or unsat stays the same.

    TLA+: every path through your rules

    A TLA+ spec writes down what your game remembers, how it starts and every move it allows. This walks every state those moves can reach and tests your rules in each one: the invariants, the rules for each step (written [][โ€ฆ]_vars), and whether the game can get stuck with no move left. When a rule breaks, it shows the shortest path there, step by step, in the words TLC uses.

    This is not TLC. TLC, the official checker, is a Java program and does not run in a browser. This page walks the states with tla-web, a TLA+ interpreter in JavaScript by William Schultz. On every example below it comes to the same result as TLC: the same number of states where TLC walks them all, and a path of the same length where TLC finds the planted mistake. It is far slower than TLC, so keep the numbers small: the whole dash blueprint took two and a half minutes in Chrome in our test, and TLC about a second. That is why the inventory and the loot table are here only with their planted mistakes, which it finds in seconds. It does not check rules about the future, such as []<> or ~>, nor fairness, SYMMETRY or ASSUME, and the report names what it left out.

    
    

    To run the real TLC on the same two files, install Java 11 or newer, download tla2tools.jar from the releases on github.com/tlaplus/tlaplus, and run:

    java -cp tla2tools.jar tlc2.TLC -config Cellar.cfg Cellar.tla

    More in the TLA+ guide.

    Next step

    Story help

    Show Me Where That Is Written: Keep Your AI From Guessing

    Here you paste a file and read the path yourself; that page makes it a habit for your AI, which quotes the line each answer rests on, pastes the checker's path, or says it does not know.

    Where the checkers come from

    Z3 4.15.4: Microsoft Research, MIT licence, from the z3-solver package. The TLA+ walk: tla-web (Spectacle) by William Schultz, MIT licence, with the tree-sitter TLA+ grammar and lodash, both MIT; this page changes four things in it while it runs, for safer state fingerprints, for speed, for primed definitions in step rules, and so that it never loads anything from the internet. The story, quest, dialogue, state machine and game card checkers and the Twine check: Spielerando's recipes, MIT licence.

    Licence texts: Z3 tla-web