# chefien/aut26_projet_amanda architecture

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

- Interactive diagram: https://gitdiagram.com/chefien/aut26_projet_amanda
- Repository: https://github.com/chefien/aut26_projet_amanda

## Overview

Fish Le Poisson is a desktop fishing game built with CustomTkinter. The player enters a name, fishes for randomly generated fish or trash, builds an inventory and collection, then sells catches or buys upgrades; the app also provides stats, save/load, and credits. The graph follows the documented and excerpted runtime calls. Some game-screen behavior is omitted from the excerpts, so unverified links to fishing and stats are not inferred.

Main entry points: [`classes_Amanda.py`](https://github.com/chefien/aut26_projet_amanda/blob/main/classes_Amanda.py) (Game screens), [`classe_khadija.py`](https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py) (Game data), [`amandaFinal.py`](https://github.com/chefien/aut26_projet_amanda/blob/main/amandaFinal.py) (Shop interface), [`classes_Émilie.py`](https://github.com/chefien/aut26_projet_amanda/blob/main/classes_%C3%89milie.py) (Player state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application UI"]
  node_entry["App startup<br/>[main.py]"]
  node_screens["Game screens<br/>[classes_Amanda.py]"]
end

subgraph group_game["Fishing Game"]
  node_fishing["Fishing encounter<br/>[amandaFinal.py]"]
end

subgraph group_commerce["Shop"]
  node_shopview["Shop interface<br/>[amandaFinal.py]"]
end

subgraph group_domain["Player and Data"]
  node_user["Player state<br/>[classes_Émilie.py]"]
  node_catch["Catch generation<br/>[classes_Émilie.py]"]
  node_catalog[("Game data<br/>[classe_khadija.py]")]
end

subgraph group_support["Persistence and Assets"]
  node_save["Save and load<br/>[classe_khadija.py]"]
  node_assets["Image assets<br/>[classe_khadija.py]"]
  node_savefiles[("Save files")]
  node_fishdata[("Fish and upgrade data")]
end

node_player(("Player"))

node_player -->|"starts game"| node_entry
node_entry -->|"creates app"| node_screens
node_screens -->|"creates player"| node_user
node_screens -->|"loads fish data"| node_catalog
node_screens -->|"opens shop"| node_shopview
node_shopview -->|"updates money"| node_user
node_shopview -->|"reads rarity prices"| node_catalog
node_screens -->|"saves or loads"| node_save
node_save -->|"restores state"| node_user
node_save -.->|"reads or writes"| node_savefiles
node_catalog -->|"loads tables"| node_fishdata
node_catch -->|"selects catch"| node_catalog
node_fishing -->|"creates catch"| node_catch
node_screens -.->|"starts fishing"| node_fishing
node_assets -.->|"uses images"| node_fishdata
node_screens -->|"loads images"| node_assets

click node_entry "https://github.com/chefien/aut26_projet_amanda/blob/main/main.py"
click node_screens "https://github.com/chefien/aut26_projet_amanda/blob/main/classes_Amanda.py"
click node_shopview "https://github.com/chefien/aut26_projet_amanda/blob/main/amandaFinal.py"
click node_fishing "https://github.com/chefien/aut26_projet_amanda/blob/main/amandaFinal.py"
click node_user "https://github.com/chefien/aut26_projet_amanda/blob/main/classes_%C3%89milie.py"
click node_catch "https://github.com/chefien/aut26_projet_amanda/blob/main/classes_%C3%89milie.py"
click node_catalog "https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py"
click node_save "https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py"
click node_assets "https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py"
click node_savefiles "https://github.com/chefien/aut26_projet_amanda/tree/main/saves"
click node_fishdata "https://github.com/chefien/aut26_projet_amanda/tree/main/assets"

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_entry,node_screens toneBlue
class node_fishing toneAmber
class node_shopview toneMint
class node_user,node_catch,node_catalog toneRose
class node_save,node_assets,node_savefiles,node_fishdata,node_player toneIndigo
```

## Components

### Application UI

- [App startup](https://github.com/chefien/aut26_projet_amanda/blob/main/main.py): `main.py`
- [Game screens](https://github.com/chefien/aut26_projet_amanda/blob/main/classes_Amanda.py): `classes_Amanda.py`

### Fishing Game

- [Fishing encounter](https://github.com/chefien/aut26_projet_amanda/blob/main/amandaFinal.py): `amandaFinal.py`

### Shop

- [Shop interface](https://github.com/chefien/aut26_projet_amanda/blob/main/amandaFinal.py): `amandaFinal.py`

### Player and Data

- [Player state](https://github.com/chefien/aut26_projet_amanda/blob/main/classes_%C3%89milie.py): `classes_Émilie.py`
- [Catch generation](https://github.com/chefien/aut26_projet_amanda/blob/main/classes_%C3%89milie.py): `classes_Émilie.py`
- [Game data](https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py): `classe_khadija.py`

### Persistence and Assets

- [Save and load](https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py): `classe_khadija.py`
- [Image assets](https://github.com/chefien/aut26_projet_amanda/blob/main/classe_khadija.py): `classe_khadija.py`
- [Save files](https://github.com/chefien/aut26_projet_amanda/tree/main/saves): `saves`
- [Fish and upgrade data](https://github.com/chefien/aut26_projet_amanda/tree/main/assets): `assets`

### Other components

- **Player**

## Connections

- Player → App startup: starts game (evidence: `main.py`)
- App startup → Game screens: creates app (evidence: `main.py`)
- Game screens → Player state: creates player (evidence: `classes_Amanda.py`)
- Game screens → Game data: loads fish data (evidence: `classes_Amanda.py`)
- Game screens → Shop interface: opens shop (evidence: `classes_Amanda.py`)
- Shop interface → Player state: updates money (evidence: `amandaFinal.py`)
- Shop interface → Game data: reads rarity prices (evidence: `amandaFinal.py`)
- Game screens → Save and load: saves or loads (evidence: `classes_Amanda.py`)
- Save and load → Player state: restores state (evidence: `classe_khadija.py`)
- Save and load → Save files: reads or writes
- Game data → Fish and upgrade data: loads tables (evidence: `classe_khadija.py`)
- Catch generation → Game data: selects catch (evidence: `classes_Émilie.py`)
- Fishing encounter → Catch generation: creates catch (evidence: `amandaFinal.py`)
- Game screens → Fishing encounter: starts fishing (evidence: `classes_Amanda.py`)
- Image assets → Fish and upgrade data: uses images
- Game screens → Image assets: loads images (evidence: `classes_Amanda.py`)
