The Vending Machine Knows
Wire state-machine brains for vending machines, then let customers and crooks test them
About The Vending Machine Knows
You are the new brain engineer at Knowles & Daughters Automats. Every machine on Coin Street needs a brain: a board of sockets (states) joined by wires. A wire says "when this happens in this socket, do these things (up to three), then move along the wire." The machine is always in exactly one socket, and anything a socket has no wire for is simply ignored.
There are 30 machines spread over five districts: Gumdrop Lane, Station Square, Pier Arcade, Clock Square and The Grand Arcade. Each district has five machines plus a harder bonus machine that opens once all five are certified. Certifying four machines in a district opens the next one, and the street lights up as you go. At the end of The Grand Arcade waits the Oracle, the machine that knows.
Press RUN and a queue of customers tries your machine while a receipt tape shows what each one wanted and what they got. If everyone is served, the Inspector tries every possible situation; any loophole is proven by a crook who walks in and exploits it, and that test stays in your queue. Each machine awards three stars: certify it, use the fewest sockets possible, and use the fewest wires possible.
Progress, stars and your wired boards are saved in the browser automatically, so you can leave a machine half-built and come back to it.
Tips
- Think of each socket as a memory: "no coins yet", "one copper in", "door code half typed".
- A loop wire (from a socket back to itself) can still do things, like buzz or return a coin.
- When a test fails, read the red banner: it names the step, what was wanted, what came out and which socket the machine was in.
- Use STEP to walk through a customer one input at a time.
- The work order (Brief) shows the best possible socket and wire counts; the Hint button gives the Inspector's nudge for the current machine.
Controls
| Click | Select, press buttons, add a socket on empty board |
|---|---|
| Drag | From a socket onto a socket to draw a wire; drag a socket's number tab to move it |
| Right-click | Delete a socket or wire |
| Space | Run / stop the customer test |
| S | Step one input |
| F | Change test speed |
| Z/Backspace | Undo |
| Delete | Remove selected socket |
| H | Hint |
| Enter/Esc | Confirm / cancel the wire card |
| Arrows/A D/Scroll | Walk along Coin Street |
| P/Esc | Pause |
| M | Mute |