hedwigaihedwigaihedwigai

Coffee shop 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, an ordering app and a counter, one barista, the last of the milk and a milk run.

the customersawayapp orderwaitingservedrefundedthe appshows 1 milkshows 0 milkshows 2 milkthe countertakes an ordermakes it atoncethe baristamakes the apporderout of milkthe milk1 latte left0 left2 leftthe milk runnoneoutbackthe tillopen+ a latte- a refundthe shopopenclosedapp orderscounter ordersthe app's milk countthe jugthe jugmore milkpayment

Shortest Broken Path

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

3. Rules and fixes

98 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.