hedwigaihedwigaihedwigai

Vending machine business plan: will it work?

A business is a set of processes running at once. The checker tries every order they can happen in and finds where they break. A reward on each step shows what it earns.

1. Pick a business

2. The business

Two customers, one card reader, a dispenser that can jam, a refund timer and a restock route.

the customersawaychargedgot itstuckrefundeddisputedthe card readerfreebusy with asalethe dispenserdrops itjamsthe refund timeroffjam seentimer runningrefundedthe restock routenoneon the waydonethe takings0+ a sale- a refundthe dayopenovertapping a cardvendthe jam sensora new sale resets the machinemoney backnew stock

Shortest Broken Path

As the business opens. Next walks the shortest path to the break.

3. Rules and fixes

206 states reached
Nothing to fix.

4. Reward

Each episode plays random steps until none can happen. Change what a step earns and the episodes run again.

Base

As written · 100,000 episodes

Pick fixes, set the rewards, and press the button.

TLA+ Compiled and Improved

With the fixes on · 100,000 episodes

Pick fixes, set the rewards, and press the button.