# bzh-guillaume/https---github.com-bzh-guillaume-pendu architecture

> Architecture diagram of the GitHub repository bzh-guillaume/https---github.com-bzh-guillaume-pendu, 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/bzh-guillaume/https---github.com-bzh-guillaume-pendu
- Repository: https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu

## Overview

This is a browser-based Hangman game: a player guesses letters, the game checks them against a randomly selected word, and the page displays progress or a win/loss modal. The source shows the game logic, word-and-clue data, and DOM updates in two JavaScript files. The HTML structure and image files are not listed as source files, so their internal components are not mapped; links shown are limited to relationships visible in the JavaScript excerpts.

Main entry points: [`scripts/script.js`](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/script.js) (Game logic), [`scripts/listeMots.js`](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/listeMots.js) (Words and clues), [`images`](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/tree/master/images) (Game images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Game flow"]
  node_game["Game logic<br/>[script.js]"]
  node_page["Game display<br/>[script.js]"]
end

subgraph group_content["Game content"]
  node_words["Words and clues<br/>[listeMots.js]"]
  node_images["Game images"]
end

node_player(("Player"))

node_player -->|"guesses letters"| node_game
node_player -->|"replays game"| node_game
node_game -->|"selects word"| node_words
node_game -->|"updates display"| node_page
node_game -->|"sets image paths"| node_images

click node_game "https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/script.js"
click node_page "https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/script.js"
click node_words "https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/listeMots.js"
click node_images "https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/tree/master/images"

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,node_page toneBlue
class node_words,node_images toneAmber
class node_player toneIndigo
```

## Components

### Game flow

- [Game logic](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/script.js): `scripts/script.js`
- [Game display](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/script.js): `scripts/script.js`

### Game content

- [Words and clues](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/blob/master/scripts/listeMots.js): `scripts/listeMots.js`
- [Game images](https://github.com/bzh-guillaume/https---github.com-bzh-guillaume-pendu/tree/master/images): `images`

### Other components

- **Player**

## Connections

- Player → Game logic: guesses letters (evidence: `scripts/script.js`)
- Player → Game logic: replays game (evidence: `scripts/script.js`)
- Game logic → Words and clues: selects word (evidence: `scripts/script.js`)
- Game logic → Game display: updates display (evidence: `scripts/script.js`)
- Game logic → Game images: sets image paths (evidence: `scripts/script.js`)
