played.today

The Vending Machine Knows

Wire state-machine brains for vending machines, then let customers and crooks test them

Play nowFree · runs in your browser
  • programming
  • state-machines
  • logic
  • engineering
  • pixel-art

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

ClickSelect, press buttons, add a socket on empty board
DragFrom a socket onto a socket to draw a wire; drag a socket's number tab to move it
Right-clickDelete a socket or wire
SpaceRun / stop the customer test
SStep one input
FChange test speed
Z/BackspaceUndo
DeleteRemove selected socket
HHint
Enter/EscConfirm / cancel the wire card
Arrows/A D/ScrollWalk along Coin Street
P/EscPause
MMute

Screenshots

  • The Vending Machine Knows screenshot 1
  • The Vending Machine Knows screenshot 2
  • The Vending Machine Knows screenshot 3

More Puzzle games