# joel-lo/hangman-physics-ver- architecture

> Architecture diagram of the GitHub repository joel-lo/hangman-physics-ver-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joel-lo/hangman-physics-ver-
- Repository: https://github.com/joel-lo/hangman-physics-ver-

## Overview

This is a browser-based educational Hangman game using physics terms, definitions, formulas, and other study items as prompts. The main workflow selects a word-and-hint entry, accepts guesses, updates the game state, and shows a result when the player wins or runs out of guesses. The excerpts show prompt selection and game logic interacting with browser DOM elements, plus a large question bank. The README is empty, and the HTML and CSS were not excerpted, so their specific wiring and presentation details cannot be established.

Main entry points: [`Hangman.js`](https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman.js) (Game logic), [`Hangman-List.js`](https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman-List.js) (Question bank)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Hangman gameplay"]
  node_game_logic["Game logic<br/>[Hangman.js]"]
end

subgraph group_content["Study content"]
  node_question_bank[("Question bank<br/>[Hangman-List.js]")]
end

subgraph group_presentation["Browser presentation"]
  node_page["Game page<br/>[index.html]"]
  node_styles["Game styling<br/>[Hangman.css]"]
end

node_player(("Player"))

node_player -->|"guesses"| node_game_logic
node_game_logic -->|"selects prompt"| node_question_bank

click node_game_logic "https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman.js"
click node_question_bank "https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman-List.js"
click node_page "https://github.com/joel-lo/hangman-physics-ver-/blob/main/index.html"
click node_styles "https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman.css"

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_game_logic toneBlue
class node_question_bank toneAmber
class node_page,node_styles toneMint
class node_player toneIndigo
```

## Components

### Hangman gameplay

- [Game logic](https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman.js): `Hangman.js`

### Study content

- [Question bank](https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman-List.js): `Hangman-List.js`

### Browser presentation

- [Game page](https://github.com/joel-lo/hangman-physics-ver-/blob/main/index.html): `index.html`
- [Game styling](https://github.com/joel-lo/hangman-physics-ver-/blob/main/Hangman.css): `Hangman.css`

### Other components

- **Player**

## Connections

- Player → Game logic: guesses (evidence: `Hangman.js`)
- Game logic → Question bank: selects prompt (evidence: `Hangman.js`)
