# yptsang/sg4lscm architecture

> Architecture diagram of the GitHub repository yptsang/sg4lscm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yptsang/sg4lscm
- Repository: https://github.com/yptsang/sg4lscm

## Overview

This is a browser-based serious-game hub for teaching supply-chain management and decision analytics through hands-on problem solving. The tree identifies separate pages for distribution, inventory control, production planning, and vehicle routing; the README describes the experiential learning approach but does not document page navigation or implementation details. The graph therefore shows the hub and game pages without inferring their internal behavior; links from the hub to individual games are unverified.

Main entry points: [`index.html`](https://github.com/yptsang/sg4lscm/blob/main/index.html) (Game hub), [`gameModule/df-basic.html`](https://github.com/yptsang/sg4lscm/blob/main/gameModule/df-basic.html) (Distribution game), [`gameModule/inv-singleEchelon.html`](https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-singleEchelon.html) (Single-echelon inventory), [`gameModule/inv-twoEchelon.html`](https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-twoEchelon.html) (Two-echelon inventory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hub["Game hub"]
  node_hub_page["Game hub<br/>[index.html]"]
end

subgraph group_games["Supply-chain games"]
  node_distribution["Distribution game<br/>[df-basic.html]"]
  node_single_inventory["Single-echelon inventory"]
  node_two_inventory["Two-echelon inventory"]
  node_legacy_inventory["Older two-echelon game"]
  node_production["Production planning<br/>[prodPlanSim.html]"]
  node_routing["Vehicle routing<br/>[routing-vrp.html]"]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_hub_page
node_hub_page -.->|"may navigate"| node_distribution
node_hub_page -.->|"may navigate"| node_single_inventory
node_hub_page -.->|"may navigate"| node_two_inventory
node_hub_page -.->|"may navigate"| node_legacy_inventory
node_hub_page -.->|"may navigate"| node_production
node_hub_page -.->|"may navigate"| node_routing

click node_hub_page "https://github.com/yptsang/sg4lscm/blob/main/index.html"
click node_distribution "https://github.com/yptsang/sg4lscm/blob/main/gameModule/df-basic.html"
click node_single_inventory "https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-singleEchelon.html"
click node_two_inventory "https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-twoEchelon.html"
click node_legacy_inventory "https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-twoEchelonOld.html"
click node_production "https://github.com/yptsang/sg4lscm/blob/main/gameModule/prodPlanSim.html"
click node_routing "https://github.com/yptsang/sg4lscm/blob/main/gameModule/routing-vrp.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_hub_page toneBlue
class node_distribution,node_single_inventory,node_two_inventory,node_legacy_inventory,node_production,node_routing toneAmber
class node_learner toneIndigo
```

## Components

### Game hub

- [Game hub](https://github.com/yptsang/sg4lscm/blob/main/index.html): `index.html`

### Supply-chain games

- [Distribution game](https://github.com/yptsang/sg4lscm/blob/main/gameModule/df-basic.html): `gameModule/df-basic.html`
- [Single-echelon inventory](https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-singleEchelon.html): `gameModule/inv-singleEchelon.html`
- [Two-echelon inventory](https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-twoEchelon.html): `gameModule/inv-twoEchelon.html`
- [Older two-echelon game](https://github.com/yptsang/sg4lscm/blob/main/gameModule/inv-twoEchelonOld.html): `gameModule/inv-twoEchelonOld.html`
- [Production planning](https://github.com/yptsang/sg4lscm/blob/main/gameModule/prodPlanSim.html): `gameModule/prodPlanSim.html`
- [Vehicle routing](https://github.com/yptsang/sg4lscm/blob/main/gameModule/routing-vrp.html): `gameModule/routing-vrp.html`

### Other components

- **Learner**

## Connections

- Learner → Game hub: uses (evidence: `README.md`)
- Game hub → Distribution game: may navigate
- Game hub → Single-echelon inventory: may navigate
- Game hub → Two-echelon inventory: may navigate
- Game hub → Older two-echelon game: may navigate
- Game hub → Production planning: may navigate
- Game hub → Vehicle routing: may navigate
