Lilli98 commited on
Commit
34a7969
·
verified ·
1 Parent(s): 7cd83d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py CHANGED
@@ -53,6 +53,31 @@ EXPERIMENT_SETTINGS = [
53
  ('perfect_rational', 'local'),
54
  ('perfect_rational', 'full'),
55
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  # --- API & Secrets Configuration ---
57
  try:
58
  # 注意:在多Space部署中,每个Space的secrets中只放一个API KEY
 
53
  ('perfect_rational', 'local'),
54
  ('perfect_rational', 'full'),
55
  ]
56
+
57
+ # --- 新增:理解性问题题库 ---
58
+ COMPREHENSION_QUESTIONS = [
59
+ {
60
+ "q": "1. Which role are you playing in this supply chain experiment?",
61
+ "options": ["Retailer", "Wholesaler", "Distributor", "Factory"],
62
+ "correct_index": 2, # Distributor
63
+ },
64
+ {
65
+ "q": "2. What is your primary objective as a manager in this game?",
66
+ "options": ["Maximize on-hand inventory.", "Minimize total accumulated costs (holding + backlog).", "Maximize weekly order quantity.", "Minimize customer demand."],
67
+ "correct_index": 1, # Minimize total costs
68
+ },
69
+ {
70
+ "q": "3. Your final order quantity for the Factory will typically arrive at your location after how many weeks?",
71
+ "options": ["1 week", "2 weeks", "3 weeks", "4 weeks"],
72
+ "correct_index": 2, # 3 weeks (1 order pass + 1 production + 1 factory ship = 3 weeks total lead time)
73
+ },
74
+ {
75
+ "q": "4. At the end of the week, your holding cost is $0.50 per unit, and your backlog cost is $1.00 per unit. If your final inventory is **0** units and you have a remaining **Backlog of 15** units, what is your **Total Weekly Cost**?",
76
+ "options": ["$7.50", "$15.00", "$15.50", "$0.00"],
77
+ "correct_index": 1, # Calculation: (0 * 0.50) + (15 * 1.00) = 15.00
78
+ },
79
+ ]
80
+
81
  # --- API & Secrets Configuration ---
82
  try:
83
  # 注意:在多Space部署中,每个Space的secrets中只放一个API KEY