Tell the player how many machines each step of a production line needs
A line turns ore into bars and bars into gears, and the player keeps adding machines at the end while the first step starves. A planner that works backwards from the wanted output can name the right count for every step, and also name which step is holding the line back.
Why this works
A production line runs at the pace of its weakest link, so the right question starts from the finished goods and works backwards. Asking what each step must supply to meet the goal gives numbers that agree with one another, instead of piling up machines where nothing is short.
When not to use it
Do not plan a fixed ratio when stock can be bought or traded in, or when output is sold off continuously. Then a buffer or an open market absorbs the gaps, and a rigid plan only adds machines that sit idle.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- 30 lines of example code with 5 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Tell the player how many machines each step of a production line needs" (read_entry idle-machine-ratio-balance) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP