# 25-05732-blip/java-lette architecture

> Architecture diagram of the GitHub repository 25-05732-blip/java-lette, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/25-05732-blip/java-lette
- Repository: https://github.com/25-05732-blip/java-lette

## Overview

Java-lette is a console-based educational quiz game combining Java questions with Russian-roulette risk. The player enters through Main and GameController, then proceeds through question selection, answer evaluation, and—on wrong answers—revolver resolution; Player state feeds the ending and rank. Instructor information and the terminal presentation are supporting capabilities. The graph reflects README documentation plus supplied source excerpts and index references; unsampled details are represented only where documented, so some optional presentation links are omitted.

Main entry points: [`GameController.java`](https://github.com/25-05732-blip/java-lette/blob/main/GameController.java) (Game Controller), [`ConsoleUI.java`](https://github.com/25-05732-blip/java-lette/blob/main/ConsoleUI.java) (Console Screens), [`Instructor.java`](https://github.com/25-05732-blip/java-lette/blob/main/Instructor.java) (Instructor Info), [`QuizManager.java`](https://github.com/25-05732-blip/java-lette/blob/main/QuizManager.java) (Question Bank)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flow["Game Flow"]
  node_main["Entry Point<br/>[Main.java]"]
  node_controller["Game Controller"]
end

subgraph group_quiz["Quiz Domain"]
  node_quiz_manager["Question Bank<br/>[QuizManager.java]"]
  node_question["Quiz Item<br/>[Question.java]"]
end

subgraph group_roulette["Roulette Domain"]
  node_revolver["Revolver Mechanics<br/>[Revolver.java]"]
end

subgraph group_people["Participants"]
  node_player["Player State<br/>[Player.java]"]
  node_instructor["Instructor Info<br/>[Instructor.java]"]
  node_user["Shared User<br/>[User.java]"]
end

subgraph group_presentation["Terminal UI"]
  node_console["Console Screens<br/>[ConsoleUI.java]"]
  node_pixel_art["Pixel Art<br/>[PixelArt.java]"]
end

node_player_actor(("Player"))

node_player_actor -->|"starts"| node_main
node_main -->|"runs"| node_controller
node_controller -->|"selects and checks"| node_quiz_manager
node_quiz_manager -->|"creates and serves"| node_question
node_controller -->|"spins and fires"| node_revolver
node_controller -->|"updates and reports"| node_player
node_controller -->|"shows info"| node_instructor
node_instructor -->|"reads bank info"| node_quiz_manager
node_player -->|"extends"| node_user
node_instructor -->|"extends"| node_user
node_controller -->|"renders screens"| node_console
node_console -->|"draws sprites"| node_pixel_art
node_console -->|"reads cylinder state"| node_revolver
node_console -->|"reads HUD state"| node_player
node_console -->|"renders question"| node_question

click node_main "https://github.com/25-05732-blip/java-lette/blob/main/Main.java"
click node_controller "https://github.com/25-05732-blip/java-lette/blob/main/GameController.java"
click node_quiz_manager "https://github.com/25-05732-blip/java-lette/blob/main/QuizManager.java"
click node_question "https://github.com/25-05732-blip/java-lette/blob/main/Question.java"
click node_revolver "https://github.com/25-05732-blip/java-lette/blob/main/Revolver.java"
click node_player "https://github.com/25-05732-blip/java-lette/blob/main/Player.java"
click node_instructor "https://github.com/25-05732-blip/java-lette/blob/main/Instructor.java"
click node_user "https://github.com/25-05732-blip/java-lette/blob/main/User.java"
click node_console "https://github.com/25-05732-blip/java-lette/blob/main/ConsoleUI.java"
click node_pixel_art "https://github.com/25-05732-blip/java-lette/blob/main/PixelArt.java"

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_main,node_controller toneBlue
class node_quiz_manager,node_question toneAmber
class node_revolver toneMint
class node_player,node_instructor,node_user toneRose
class node_console,node_pixel_art,node_player_actor toneIndigo
```

## Components

### Game Flow

- [Entry Point](https://github.com/25-05732-blip/java-lette/blob/main/Main.java): `Main.java`
- [Game Controller](https://github.com/25-05732-blip/java-lette/blob/main/GameController.java): `GameController.java`

### Quiz Domain

- [Question Bank](https://github.com/25-05732-blip/java-lette/blob/main/QuizManager.java): `QuizManager.java`
- [Quiz Item](https://github.com/25-05732-blip/java-lette/blob/main/Question.java): `Question.java`

### Roulette Domain

- [Revolver Mechanics](https://github.com/25-05732-blip/java-lette/blob/main/Revolver.java): `Revolver.java`

### Participants

- [Player State](https://github.com/25-05732-blip/java-lette/blob/main/Player.java): `Player.java`
- [Instructor Info](https://github.com/25-05732-blip/java-lette/blob/main/Instructor.java): `Instructor.java`
- [Shared User](https://github.com/25-05732-blip/java-lette/blob/main/User.java): `User.java`

### Terminal UI

- [Console Screens](https://github.com/25-05732-blip/java-lette/blob/main/ConsoleUI.java): `ConsoleUI.java`
- [Pixel Art](https://github.com/25-05732-blip/java-lette/blob/main/PixelArt.java): `PixelArt.java`

### Other components

- **Player**

## Connections

- Player → Entry Point: starts (evidence: `README.md`)
- Entry Point → Game Controller: runs (evidence: `Main.java`)
- Game Controller → Question Bank: selects and checks (evidence: `GameController.java`)
- Question Bank → Quiz Item: creates and serves (evidence: `QuizManager.java`)
- Game Controller → Revolver Mechanics: spins and fires (evidence: `GameController.java`)
- Game Controller → Player State: updates and reports (evidence: `GameController.java`)
- Game Controller → Instructor Info: shows info (evidence: `GameController.java`)
- Instructor Info → Question Bank: reads bank info (evidence: `Instructor.java`)
- Player State → Shared User: extends (evidence: `Player.java`)
- Instructor Info → Shared User: extends (evidence: `Instructor.java`)
- Game Controller → Console Screens: renders screens (evidence: `GameController.java`)
- Console Screens → Pixel Art: draws sprites (evidence: `ConsoleUI.java`)
- Console Screens → Revolver Mechanics: reads cylinder state (evidence: `ConsoleUI.java`)
- Console Screens → Player State: reads HUD state (evidence: `ConsoleUI.java`)
- Console Screens → Quiz Item: renders question (evidence: `ConsoleUI.java`)
