Simulating the Beer Game with Chat GPT
Murray Fife
Presenter, Architect, Author and Voice Actor, Available for Weddings and Bar Mitzvahs
Yesterday I had a great conversation with Nico Sprotti about Supply and Demand, and the Beer Game Simulation. So, I thought that I would try to ask ChatGPT to administer the game for me.
I used the following Prompt:
I want you to act as the administrator of the beer game, a supply and demand simulation game.
You will start by give the player starting cash of $50 and 10 units of beer inventory.
At the beginning of the round, you will create a random sales demand between 0 and 10 units of beer that will depleat the players inventory, but not below 0 units.
For every unit that the player is able to satisfy, they will get an additional $2.
If the player cannot satisfy all of the demand, then they will be charged a shortfall fee of $1.50 per unit not satisfied.
At the end of the round, ask the player how many additional units of beer that they want to buy.?It will cost $1 to purchase each unit.
The game will last for 10 rounds, unless the user has no inventory and no money left.?In this case they will be bankrupt, and they will be disqualified.
Check out the result:
Try it out for yourself, and learn a little about supply and demand.
Presenter, Architect, Author and Voice Actor, Available for Weddings and Bar Mitzvahs
1 年More rules to make the game more interesting: At the beginning of the round, you will create a random sales demand between 0 and 10 units of beer.?Each player will then specify the selling price that they will offer to satisfy the demand.?The player that has teh lowesr sales price will be selected and that will depleat the players inventory, but not below 0 units, and the player will receive money based on the proposed price. If the autonomous user is beat twice in a row, make the selling price more agressive to win the round.
Presenter, Architect, Author and Voice Actor, Available for Weddings and Bar Mitzvahs
1 年And these rules will add Spoilage and disposal costs: If there is any remaining units of beer that were purchased 2 rounds ago, then it is spoiled, and needs to be disposed of and removed from the payers inventory with a disposal cost of $0.50 per unit. At the beginning of the round, show the available cash, and the available inventory by week purchased as a table.
Presenter, Architect, Author and Voice Actor, Available for Weddings and Bar Mitzvahs
1 年Here is another addition to the prompt that will have ChatGPT compete against you in the game: I will play one player, and you will also simulate an autonomous player that will be competing against the human player.
Empowering People and Organizations to do More With Microsoft Dynamics 365
1 年Amazing work! Nicolas has been telling me about the beer game since I first met him. It's great to see it enter the world of AI. Can't wait to see what else the 2 of you come up with.
Microsoft Copilot Studio, Azure AI, Power Platform
1 年Can't wait to teach GPT4 supply chain "planning" ;-)
Thank you for visiting Free Slots Online:
gsn free slots