# ibanezbot-dev/nsac-astro architecture

> Architecture diagram of the GitHub repository ibanezbot-dev/nsac-astro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ibanezbot-dev/nsac-astro
- Repository: https://github.com/ibanezbot-dev/nsac-astro

## Overview

ASTRO is a browser-based lunar-outpost learning game. The documented player loop runs from understanding a mission situation through resource choices to predicted and explained consequences, then invites replay. The README also describes a science simulation, NASA reference data, and learning/accessibility features. No source excerpts were provided, so implementation links below reflect documented behavior only; the tree identifies index.html as the sole runtime-looking file.

Main entry points: [`index.html`](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html) (Resource choices)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Mission gameplay"]
  node_mission["Mission situation<br/>[index.html]"]
  node_resource_choices["Resource choices<br/>[index.html]"]
  node_prediction["Consequence prediction<br/>[index.html]"]
  node_outcome["Crew and base outcome<br/>[index.html]"]
  node_explanation["Cause-effect feedback<br/>[index.html]"]
  node_replay["Replay strategy<br/>[index.html]"]
end

subgraph group_simulation["Science simulation"]
  node_simulation["Mission simulation<br/>[index.html]"]
  node_random_forest["Embedded Random Forest<br/>[index.html]"]
  node_nasa_data["NASA reference data"]
end

subgraph group_learning["Learning support"]
  node_tutorial["Guided tutorial<br/>[index.html]"]
  node_age_modes["Age modes<br/>[index.html]"]
  node_learning_access["Narration and access<br/>[index.html]"]
  node_glossary["Science glossary<br/>[index.html]"]
end

node_player(("Player"))

node_player -->|"reviews"| node_mission
node_mission -->|"informs"| node_resource_choices
node_player -->|"chooses"| node_resource_choices
node_resource_choices -->|"predicts"| node_prediction
node_prediction -->|"reveals"| node_outcome
node_outcome -->|"explains"| node_explanation
node_explanation -->|"encourages"| node_replay
node_resource_choices -->|"drives"| node_simulation
node_simulation -->|"uses"| node_random_forest
node_nasa_data -->|"anchors"| node_random_forest
node_random_forest -->|"models effects"| node_simulation
node_tutorial -->|"guides"| node_player
node_age_modes -->|"adapts explanations"| node_player
node_learning_access -->|"supports access"| node_player
node_glossary -->|"defines science"| node_player

click node_mission "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_resource_choices "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_prediction "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_outcome "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_explanation "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_replay "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_simulation "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_random_forest "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_tutorial "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_age_modes "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_learning_access "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html"
click node_glossary "https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.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_mission,node_resource_choices,node_prediction,node_outcome,node_explanation,node_replay toneBlue
class node_simulation,node_random_forest,node_nasa_data toneAmber
class node_tutorial,node_age_modes,node_learning_access,node_glossary toneMint
class node_player toneIndigo
```

## Components

### Mission gameplay

- [Mission situation](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Resource choices](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Consequence prediction](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Crew and base outcome](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Cause-effect feedback](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Replay strategy](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`

### Science simulation

- [Mission simulation](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Embedded Random Forest](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- **NASA reference data**

### Learning support

- [Guided tutorial](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Age modes](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Narration and access](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`
- [Science glossary](https://github.com/ibanezbot-dev/nsac-astro/blob/main/index.html): `index.html`

### Other components

- **Player**

## Connections

- Player → Mission situation: reviews (evidence: `README.md`)
- Mission situation → Resource choices: informs (evidence: `README.md`)
- Player → Resource choices: chooses (evidence: `README.md`)
- Resource choices → Consequence prediction: predicts (evidence: `README.md`)
- Consequence prediction → Crew and base outcome: reveals (evidence: `README.md`)
- Crew and base outcome → Cause-effect feedback: explains (evidence: `README.md`)
- Cause-effect feedback → Replay strategy: encourages (evidence: `README.md`)
- Resource choices → Mission simulation: drives (evidence: `README.md`)
- Mission simulation → Embedded Random Forest: uses (evidence: `README.md`)
- NASA reference data → Embedded Random Forest: anchors (evidence: `README.md`)
- Embedded Random Forest → Mission simulation: models effects (evidence: `README.md`)
- Guided tutorial → Player: guides (evidence: `README.md`)
- Age modes → Player: adapts explanations (evidence: `README.md`)
- Narration and access → Player: supports access (evidence: `README.md`)
- Science glossary → Player: defines science (evidence: `README.md`)
