How hhtomaswt11/labhero works
LabHero is a serious game that teaches constraint-based metabolic modeling through student registration, campaign missions, interactive simulation, and evidence-based answers. The map covers both the Pygame game and its FastAPI simulation service, plus progression, hints, scoring, and persistence. Mission and simulator links are supported by the SOURCE INDEX and README; unsampled implementation details are not inferred.
Main entry points: code Mission curriculum · simulator.py Model simulator · window.py Simulator interface · main.py Simulation API
Components 19
Game experience
- Game runtime
LabHero.py - Lab exploration
code/level.py - Student registration
code/student_registration.py - Teacher preview
code/teacher_mode.py - Simulator interface
code/window.py
Learning and progression
- Mission curriculum
code - Hints and rewards
code/hint_system.py - Answer scoring
code/answer_penalty.py - Campaign progression
code/campaign.py - Final results
code/final_results.py
Simulation service
- Model options
code/model_registry.py - Simulation API
backend/app/main.py - Model simulator
backend/app/simulator.py - Request schemas
backend/app/schemas.py - Gene rules
backend/app/gpr.py - ROOM solver
backend/app/room_milp.py
Player state
- Save management
code/save_load.py - Player profile
code/player.py
Other components
- Student
Connections 20
- Student → Game runtime: starts game
README.md - Game runtime → Lab exploration: runs level
LabHero.py - Student → Student registration: registers with
README.md - Lab exploration → Player profile: hosts player
code/level.py - Player profile → Save management: loads and saves
code/player.py - Student → Mission curriculum: plays campaign
README.md - Mission curriculum → Simulator interface: opens simulations
code/mission02.py - Mission curriculum → Hints and rewards: uses hints
code/mission11.py - Mission curriculum → Answer scoring: applies penalties
code/mission02.py - Campaign progression → Mission curriculum: defines routes
README.md - Mission curriculum → Final results: completes campaign
README.md - Simulator interface → Simulation API: sends requests
README.md - Simulator interface → Model options: selects model
code/window.py - Simulation API → Request schemas: validates requests
backend/app/main.py - Simulation API → Model simulator: dispatches simulation
backend/app/main.py - Model simulator → Request schemas: uses request types
backend/app/simulator.py - Model simulator → Gene rules: uses gene rules
backend/app/simulator.py - Model simulator → ROOM solver: runs ROOM
backend/app/simulator.py - Student → Teacher preview: enters preview
README.md - Teacher preview → Game runtime: launches preview
LabHero.py