# massiliabk/jeudevine architecture

> Architecture diagram of the GitHub repository massiliabk/jeudevine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/massiliabk/jeudevine
- Repository: https://github.com/massiliabk/jeudevine

## Overview

This is a small Java Swing number-guessing game. The player starts a round, submits guesses, receives range and proximity hints, and either wins or runs out of attempts; the GUI also supports replay and return to the home screen. The runtime is organized around the game controller, guessing rules, generated dialogue, and reusable visual components, with shared theme styling. The excerpts show these interactions; no persistence or external game services are evident.

Main entry points: [`src/JeuDevineGUI.java`](https://github.com/massiliabk/jeudevine/blob/main/src/JeuDevineGUI.java) (Game window), [`src/PageAccueil.java`](https://github.com/massiliabk/jeudevine/blob/main/src/PageAccueil.java) (Home screen), [`src/Composants.java`](https://github.com/massiliabk/jeudevine/blob/main/src/Composants.java) (Chat components), [`src/Theme.java`](https://github.com/massiliabk/jeudevine/blob/main/src/Theme.java) (Theme styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Game interface"]
  node_game_window["Game window<br/>[JeuDevineGUI.java]"]
  node_home_screen["Home screen<br/>[PageAccueil.java]"]
end

subgraph group_gameplay["Guessing round"]
  node_guess_rules["Guess rules<br/>[GameLogic.java]"]
  node_game_dialogue["Game dialogue<br/>[Dialogue.java]"]
end

subgraph group_presentation["Visual presentation"]
  node_chat_components["Chat components<br/>[Composants.java]"]
  node_theme["Theme styling<br/>[Theme.java]"]
end

node_player(("Player"))

node_player -->|"plays through"| node_game_window
node_game_window -->|"shows home"| node_home_screen
node_game_window -->|"starts and scores"| node_guess_rules
node_game_window -->|"requests messages"| node_game_dialogue
node_game_window -->|"renders messages"| node_chat_components
node_home_screen -->|"shows game limits"| node_guess_rules
node_home_screen -->|"renders greeting bubble"| node_chat_components
node_game_window -->|"styles interface"| node_theme
node_home_screen -->|"styles home screen"| node_theme
node_chat_components -->|"uses theme colors"| node_theme

click node_game_window "https://github.com/massiliabk/jeudevine/blob/main/src/JeuDevineGUI.java"
click node_home_screen "https://github.com/massiliabk/jeudevine/blob/main/src/PageAccueil.java"
click node_guess_rules "https://github.com/massiliabk/jeudevine/blob/main/src/GameLogic.java"
click node_game_dialogue "https://github.com/massiliabk/jeudevine/blob/main/src/Dialogue.java"
click node_chat_components "https://github.com/massiliabk/jeudevine/blob/main/src/Composants.java"
click node_theme "https://github.com/massiliabk/jeudevine/blob/main/src/Theme.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_game_window,node_home_screen toneBlue
class node_guess_rules,node_game_dialogue toneAmber
class node_chat_components,node_theme toneMint
class node_player toneIndigo
```

## Components

### Game interface

- [Game window](https://github.com/massiliabk/jeudevine/blob/main/src/JeuDevineGUI.java): `src/JeuDevineGUI.java`
- [Home screen](https://github.com/massiliabk/jeudevine/blob/main/src/PageAccueil.java): `src/PageAccueil.java`

### Guessing round

- [Guess rules](https://github.com/massiliabk/jeudevine/blob/main/src/GameLogic.java): `src/GameLogic.java`
- [Game dialogue](https://github.com/massiliabk/jeudevine/blob/main/src/Dialogue.java): `src/Dialogue.java`

### Visual presentation

- [Chat components](https://github.com/massiliabk/jeudevine/blob/main/src/Composants.java): `src/Composants.java`
- [Theme styling](https://github.com/massiliabk/jeudevine/blob/main/src/Theme.java): `src/Theme.java`

### Other components

- **Player**

## Connections

- Player → Game window: plays through (evidence: `src/JeuDevineGUI.java`)
- Game window → Home screen: shows home (evidence: `src/JeuDevineGUI.java`)
- Game window → Guess rules: starts and scores (evidence: `src/JeuDevineGUI.java`)
- Game window → Game dialogue: requests messages (evidence: `src/JeuDevineGUI.java`)
- Game window → Chat components: renders messages (evidence: `src/JeuDevineGUI.java`)
- Home screen → Guess rules: shows game limits (evidence: `src/PageAccueil.java`)
- Home screen → Chat components: renders greeting bubble (evidence: `src/PageAccueil.java`)
- Game window → Theme styling: styles interface (evidence: `src/JeuDevineGUI.java`)
- Home screen → Theme styling: styles home screen (evidence: `src/PageAccueil.java`)
- Chat components → Theme styling: uses theme colors (evidence: `src/Composants.java`)
