The Goal: A Process of Ongoing Improvement is a novel written by Eliyahu Goldratt for manufacturing managers to communicate the theory of constraints. I won’t go into the theory here, it is a great book and if you are in any type of leadership position in manufacturing you should absolutely read it. In the book there is a scene where the main character invents a “game” for a bunch of kids to play. It’s not really a game, he is actually trying to simulate a production line by rolling dice and moving matchsticks. The results lead him one step closer to fixing the problems necessary to save his plant.

This Python script is a virtual simulation of the game described in the book.

📜 View the source code on my GitHub.

In the future, I plan on doing this simulation again and making it visual by using Pygame.