# adrien337/ransom architecture

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

- Interactive diagram: https://gitdiagram.com/adrien337/ransom
- Repository: https://github.com/adrien337/ransom

## Overview

Ransom.exe is a Tkinter desktop prank/game: it presents a brief full-screen visual sequence, then a ransom-themed popup game where the user collects gold against a timer. The excerpt shows a win path with a thanks screen and a loss path that requests Windows shutdown; it does not show file encryption. The runtime is concentrated in main.py. The README is empty, and the excerpt omits some setup and game logic, so the graph includes only relationships visible in the shown code.

Main entry points: [`main.py`](https://github.com/adrien337/ransom/blob/main/main.py) (Spawn Sequence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Visual Presentation"]
  node_spawn["Spawn Sequence<br/>[main.py]"]
  node_visuals["Visual Effects<br/>[main.py]"]
end

subgraph group_gameplay["Ransom Game"]
  node_popup_game["Popup Game<br/>[main.py]"]
  node_gold_collection["Gold Collection<br/>[main.py]"]
  node_win_screen["Win Screen<br/>[main.py]"]
  node_loss_screen["Loss Screen<br/>[main.py]"]
end

subgraph group_runtime["Runtime Resources"]
  node_image_loader["Image Preparation<br/>[main.py]"]
end

node_user(("User"))
node_os_shutdown["Windows Shutdown"]

node_user -.->|"interacts with"| node_spawn
node_spawn -->|"schedules stages"| node_visuals
node_spawn -->|"opens after attack"| node_popup_game
node_image_loader -->|"prepares images"| node_visuals
node_popup_game -->|"handles collection"| node_gold_collection
node_gold_collection -->|"opens when complete"| node_win_screen
node_popup_game -->|"ends on timeout"| node_loss_screen
node_loss_screen -->|"requests shutdown"| node_os_shutdown

click node_spawn "https://github.com/adrien337/ransom/blob/main/main.py"
click node_visuals "https://github.com/adrien337/ransom/blob/main/main.py"
click node_image_loader "https://github.com/adrien337/ransom/blob/main/main.py"
click node_popup_game "https://github.com/adrien337/ransom/blob/main/main.py"
click node_gold_collection "https://github.com/adrien337/ransom/blob/main/main.py"
click node_win_screen "https://github.com/adrien337/ransom/blob/main/main.py"
click node_loss_screen "https://github.com/adrien337/ransom/blob/main/main.py"

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_spawn,node_visuals,node_user toneBlue
class node_popup_game,node_gold_collection,node_win_screen,node_loss_screen toneAmber
class node_image_loader toneMint
class node_os_shutdown toneIndigo
```

## Components

### Visual Presentation

- [Spawn Sequence](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`
- [Visual Effects](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`

### Ransom Game

- [Popup Game](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`
- [Gold Collection](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`
- [Win Screen](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`
- [Loss Screen](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`

### Runtime Resources

- [Image Preparation](https://github.com/adrien337/ransom/blob/main/main.py): `main.py`

### Other components

- **User**
- **Windows Shutdown**

## Connections

- User → Spawn Sequence: interacts with
- Spawn Sequence → Visual Effects: schedules stages (evidence: `main.py`)
- Spawn Sequence → Popup Game: opens after attack (evidence: `main.py`)
- Image Preparation → Visual Effects: prepares images (evidence: `main.py`)
- Popup Game → Gold Collection: handles collection (evidence: `main.py`)
- Gold Collection → Win Screen: opens when complete (evidence: `main.py`)
- Popup Game → Loss Screen: ends on timeout (evidence: `main.py`)
- Loss Screen → Windows Shutdown: requests shutdown (evidence: `main.py`)
