Update app.py
Browse files
app.py
CHANGED
|
@@ -303,10 +303,10 @@ else:
|
|
| 303 |
# =============== NEW DETAILED INTRODUCTION ===============
|
| 304 |
st.markdown("---")
|
| 305 |
st.header("📖 Welcome to the Beer Game!")
|
| 306 |
-
st.markdown("This is a simulation of a supply chain. You will play against 3 AI agents. **
|
| 307 |
|
| 308 |
st.subheader("1. Your Goal: Minimize Costs")
|
| 309 |
-
st.success("**Your
|
| 310 |
st.markdown("You get costs from two things every week:")
|
| 311 |
st.markdown(f"""
|
| 312 |
- **Holding Inventory:** **${HOLDING_COST:,.2f} per unit per week.
|
|
@@ -317,10 +317,10 @@ else:
|
|
| 317 |
st.markdown("""
|
| 318 |
You will always play as the **Distributor**. The other 3 roles are played by AI.
|
| 319 |
|
| 320 |
-
- **Retailer (AI):**
|
| 321 |
-
- **Wholesaler (AI):**
|
| 322 |
-
- **Distributor (You):**
|
| 323 |
-
- **Factory (AI):**
|
| 324 |
""")
|
| 325 |
try:
|
| 326 |
st.image(IMAGE_PATH, caption="You are the Distributor. You get orders from the Wholesaler and place orders to the Factory.")
|
|
@@ -341,14 +341,14 @@ else:
|
|
| 341 |
**Conclusion:** You must always think 3 weeks ahead. The order you place in Week 10 will not help you until Week 13.
|
| 342 |
""")
|
| 343 |
|
| 344 |
-
st.subheader("4. The Bullwhip Effect (What to Avoid)")
|
| 345 |
-
st.markdown("""
|
| 346 |
-
The "Bullwhip Effect" is the main challenge of this game. It describes how small, normal changes in customer demand (at the Retailer) get **amplified** into huge, chaotic swings in orders as they move up the supply chain.
|
| 347 |
|
| 348 |
-
This often leads to a cycle of **panic ordering** (ordering way too much because you are out of stock) followed by a **massive pile-up of inventory** (when all your late orders finally arrive). This cycle is extremely expensive. Your goal is to avoid it by ordering smoothly.
|
| 349 |
-
""")
|
| 350 |
|
| 351 |
-
st.subheader("
|
| 352 |
st.markdown(f"""
|
| 353 |
Your main job is simple: place one order each week.
|
| 354 |
|
|
|
|
| 303 |
# =============== NEW DETAILED INTRODUCTION ===============
|
| 304 |
st.markdown("---")
|
| 305 |
st.header("📖 Welcome to the Beer Game!")
|
| 306 |
+
st.markdown("This is a simulation of a supply chain. You will play against 3 AI agents. ** Please read these instructions carefully.")
|
| 307 |
|
| 308 |
st.subheader("1. Your Goal: Minimize Costs")
|
| 309 |
+
st.success("**Your goal is to: Minimize the total cost for your position in the supply chain.**")
|
| 310 |
st.markdown("You get costs from two things every week:")
|
| 311 |
st.markdown(f"""
|
| 312 |
- **Holding Inventory:** **${HOLDING_COST:,.2f} per unit per week.
|
|
|
|
| 317 |
st.markdown("""
|
| 318 |
You will always play as the **Distributor**. The other 3 roles are played by AI.
|
| 319 |
|
| 320 |
+
- **Retailer (AI):** Fulfills end-customer demand. Orders from the Wholesaler.
|
| 321 |
+
- **Wholesaler (AI):** Fulfills Retailer orders. Orders from the Distributor.
|
| 322 |
+
- **Distributor (You):** Fulfills Wholesaler orders. Orders from the Factory.
|
| 323 |
+
- **Factory (AI):** Fulfills your orders. Produces new beer.
|
| 324 |
""")
|
| 325 |
try:
|
| 326 |
st.image(IMAGE_PATH, caption="You are the Distributor. You get orders from the Wholesaler and place orders to the Factory.")
|
|
|
|
| 341 |
**Conclusion:** You must always think 3 weeks ahead. The order you place in Week 10 will not help you until Week 13.
|
| 342 |
""")
|
| 343 |
|
| 344 |
+
#st.subheader("4. The Bullwhip Effect (What to Avoid)")
|
| 345 |
+
#st.markdown("""
|
| 346 |
+
#The "Bullwhip Effect" is the main challenge of this game. It describes how small, normal changes in customer demand (at the Retailer) get **amplified** into huge, chaotic swings in orders as they move up the supply chain.
|
| 347 |
|
| 348 |
+
#This often leads to a cycle of **panic ordering** (ordering way too much because you are out of stock) followed by a **massive pile-up of inventory** (when all your late orders finally arrive). This cycle is extremely expensive. Your goal is to avoid it by ordering smoothly.
|
| 349 |
+
#""")
|
| 350 |
|
| 351 |
+
st.subheader("4. How Each Week Works (Your Task)")
|
| 352 |
st.markdown(f"""
|
| 353 |
Your main job is simple: place one order each week.
|
| 354 |
|