# starkiller1143/quiz-simples architecture

> Architecture diagram of the GitHub repository starkiller1143/quiz-simples, 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/starkiller1143/quiz-simples
- Repository: https://github.com/starkiller1143/quiz-simples

## Overview

This is a small browser-based quiz game about *O Ano da Morte de Ricardo Reis*. The visible workflow is answering timed multiple-choice questions, earning points for correct answers, and viewing a score. Level 1’s quiz offers navigation to level 2; the tree also contains level pages for levels 2 and 3. The README is empty, and only the level 1 and 2 quiz scripts were excerpted, so other navigation and level behavior cannot be verified.

Main entry points: [`levels/1/play.html`](https://github.com/starkiller1143/quiz-simples/blob/main/levels/1/play.html) (Level 1 page), [`levels/1/quiz.js`](https://github.com/starkiller1143/quiz-simples/blob/main/levels/1/quiz.js) (Level 1 quiz), [`index.html`](https://github.com/starkiller1143/quiz-simples/blob/main/index.html) (Game page), [`levels/2/play.html`](https://github.com/starkiller1143/quiz-simples/blob/main/levels/2/play.html) (Level 2 page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Game entry"]
  node_home["Game page<br/>[index.html]"]
end

subgraph group_levels["Quiz levels"]
  node_level1page["Level 1 page<br/>[play.html]"]
  node_level1quiz["Level 1 quiz<br/>[quiz.js]"]
  node_level2page["Level 2 page<br/>[play.html]"]
  node_level2quiz["Level 2 quiz<br/>[quiz.js]"]
  node_level3page["Level 3 page<br/>[play.html]"]
end

node_player(("Player"))

node_player -.->|"opens"| node_home
node_player -.->|"plays"| node_level1page
node_level1page -.->|"loads"| node_level1quiz
node_level1quiz -->|"navigates"| node_level2page

click node_home "https://github.com/starkiller1143/quiz-simples/blob/main/index.html"
click node_level1page "https://github.com/starkiller1143/quiz-simples/blob/main/levels/1/play.html"
click node_level1quiz "https://github.com/starkiller1143/quiz-simples/blob/main/levels/1/quiz.js"
click node_level2page "https://github.com/starkiller1143/quiz-simples/blob/main/levels/2/play.html"
click node_level2quiz "https://github.com/starkiller1143/quiz-simples/blob/main/levels/2/quiz.js"
click node_level3page "https://github.com/starkiller1143/quiz-simples/blob/main/levels/3/play.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_home toneBlue
class node_level1page,node_level1quiz,node_level2page,node_level2quiz,node_level3page toneAmber
class node_player toneIndigo
```

## Components

### Game entry

- [Game page](https://github.com/starkiller1143/quiz-simples/blob/main/index.html): `index.html`

### Quiz levels

- [Level 1 page](https://github.com/starkiller1143/quiz-simples/blob/main/levels/1/play.html): `levels/1/play.html`
- [Level 1 quiz](https://github.com/starkiller1143/quiz-simples/blob/main/levels/1/quiz.js): `levels/1/quiz.js`
- [Level 2 page](https://github.com/starkiller1143/quiz-simples/blob/main/levels/2/play.html): `levels/2/play.html`
- [Level 2 quiz](https://github.com/starkiller1143/quiz-simples/blob/main/levels/2/quiz.js): `levels/2/quiz.js`
- [Level 3 page](https://github.com/starkiller1143/quiz-simples/blob/main/levels/3/play.html): `levels/3/play.html`

### Other components

- **Player**

## Connections

- Player → Game page: opens
- Player → Level 1 page: plays
- Level 1 page → Level 1 quiz: loads
- Level 1 quiz → Level 2 page: navigates (evidence: `levels/1/quiz.js`)
