# samer-gharsalli/final-projet architecture

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

- Interactive diagram: https://gitdiagram.com/samer-gharsalli/final-projet
- Repository: https://github.com/samer-gharsalli/final-projet

## Overview

The tree contains several SDL/C programs rather than one clearly integrated game: a TUNESCA application, a character-creation program, a samurai player demo, and standalone options and score screens. The sampled TUNESCA code places menu, character creation, options, and score behavior in one large source file; its full event flow is not shown, so no internal scene transitions are asserted. The samurai demo’s calls into its player module are explicit. The README is empty.

Main entry points: [`satar game/stat_game.c`](https://github.com/samer-gharsalli/final-projet/blob/main/satar%20game/stat_game.c) (Character creation), [`samurai/main.c`](https://github.com/samer-gharsalli/final-projet/blob/main/samurai/main.c) (Demo loop), [`score/score.c`](https://github.com/samer-gharsalli/final-projet/blob/main/score/score.c) (Score screens), [`main menu/main.c`](https://github.com/samer-gharsalli/final-projet/blob/main/main%20menu/main.c) (Game app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tunesca["TUNESCA app"]
  node_tunesca_app["Game app<br/>[main.c]"]
end

subgraph group_creator["Character creator"]
  node_creator_app["Character creation<br/>[stat_game.c]"]
end

subgraph group_samurai["Samurai demo"]
  node_samurai_demo["Demo loop<br/>[main.c]"]
  node_player_runtime["Player runtime<br/>[player.c]"]
end

subgraph group_screens["Standalone screens"]
  node_options_screen["Options screen<br/>[option.c]"]
  node_score_screen["Score screens<br/>[score.c]"]
  node_score_file[("Score file<br/>[score.c]")]
end

node_user(("Player"))
node_image_host["Image host"]

node_user -->|"uses"| node_tunesca_app
node_user -->|"uses"| node_creator_app
node_creator_app -->|"downloads images"| node_image_host
node_user -->|"controls"| node_samurai_demo
node_samurai_demo -->|"calls player API"| node_player_runtime
node_user -->|"uses"| node_options_screen
node_user -->|"uses"| node_score_screen
node_score_screen -->|"reads and writes"| node_score_file

click node_tunesca_app "https://github.com/samer-gharsalli/final-projet/blob/main/main%20menu/main.c"
click node_creator_app "https://github.com/samer-gharsalli/final-projet/blob/main/satar%20game/stat_game.c"
click node_samurai_demo "https://github.com/samer-gharsalli/final-projet/blob/main/samurai/main.c"
click node_player_runtime "https://github.com/samer-gharsalli/final-projet/blob/main/samurai/player.c"
click node_options_screen "https://github.com/samer-gharsalli/final-projet/blob/main/option/option.c"
click node_score_screen "https://github.com/samer-gharsalli/final-projet/blob/main/score/score.c"
click node_score_file "https://github.com/samer-gharsalli/final-projet/blob/main/score/score.c"

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_tunesca_app toneBlue
class node_creator_app toneAmber
class node_samurai_demo,node_player_runtime toneMint
class node_options_screen,node_score_screen,node_score_file toneRose
class node_user,node_image_host toneIndigo
```

## Components

### TUNESCA app

- [Game app](https://github.com/samer-gharsalli/final-projet/blob/main/main%20menu/main.c): `main menu/main.c`

### Character creator

- [Character creation](https://github.com/samer-gharsalli/final-projet/blob/main/satar%20game/stat_game.c): `satar game/stat_game.c`

### Samurai demo

- [Demo loop](https://github.com/samer-gharsalli/final-projet/blob/main/samurai/main.c): `samurai/main.c`
- [Player runtime](https://github.com/samer-gharsalli/final-projet/blob/main/samurai/player.c): `samurai/player.c`

### Standalone screens

- [Options screen](https://github.com/samer-gharsalli/final-projet/blob/main/option/option.c): `option/option.c`
- [Score screens](https://github.com/samer-gharsalli/final-projet/blob/main/score/score.c): `score/score.c`
- [Score file](https://github.com/samer-gharsalli/final-projet/blob/main/score/score.c): `score/score.c`

### Other components

- **Player**
- **Image host**

## Connections

- Player → Game app: uses (evidence: `main menu/main.c`)
- Player → Character creation: uses (evidence: `satar game/stat_game.c`)
- Character creation → Image host: downloads images (evidence: `satar game/stat_game.c`)
- Player → Demo loop: controls (evidence: `samurai/main.c`)
- Demo loop → Player runtime: calls player API (evidence: `samurai/main.c`)
- Player → Options screen: uses (evidence: `option/option.c`)
- Player → Score screens: uses (evidence: `score/score.c`)
- Score screens → Score file: reads and writes (evidence: `score/score.c`)
