# juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi- architecture

> Architecture diagram of the GitHub repository juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-
- Repository: https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-

## Overview

This is a single-file, interactive Tower of Hanoi game built with Ursina. The player selects a difficulty and level, moves disks between three stacks by dragging, and earns stars based on performance; menus also expose help and progress views. The script additionally constructs the Sakura-themed scene and interface procedurally. The excerpts show the app setup, visual helpers, menu construction, star display, and run call, but omit much gameplay logic, so uncertain internal links are left out or marked unverified.

Main entry points: [`ParcialFinal.py`](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py) (Level Menus)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Menus and Progress"]
  node_menu["Level Menus<br/>[ParcialFinal.py]"]
  node_progress["Star Progress<br/>[ParcialFinal.py]"]
  node_help["Help Screen<br/>[ParcialFinal.py]"]
end

subgraph group_gameplay["Hanoi Gameplay"]
  node_app["Ursina App<br/>[ParcialFinal.py]"]
  node_hanoi["Disk Puzzle<br/>[ParcialFinal.py]"]
  node_move_rules["Move Validation<br/>[ParcialFinal.py]"]
  node_score["Level Scoring<br/>[ParcialFinal.py]"]
end

subgraph group_visuals["Procedural Visuals"]
  node_scene["Sakura Scene<br/>[ParcialFinal.py]"]
  node_visual_helpers["Vector Helpers<br/>[ParcialFinal.py]"]
  node_ui_helpers["UI Helpers<br/>[ParcialFinal.py]"]
end

node_player(("Player"))

node_player -->|"starts"| node_app
node_player -->|"selects level"| node_menu
node_player -->|"opens help"| node_help
node_player -->|"drags disks"| node_hanoi
node_menu -.->|"starts level"| node_hanoi
node_hanoi -->|"checks moves"| node_move_rules
node_score -.->|"awards stars"| node_progress
node_visual_helpers -->|"draws elements"| node_scene
node_visual_helpers -->|"builds controls"| node_ui_helpers
node_ui_helpers -->|"creates buttons"| node_menu

click node_app "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_menu "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_progress "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_help "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_hanoi "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_move_rules "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_score "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_scene "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_visual_helpers "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py"
click node_ui_helpers "https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.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_menu,node_progress,node_help toneBlue
class node_app,node_hanoi,node_move_rules,node_score toneAmber
class node_scene,node_visual_helpers,node_ui_helpers toneMint
class node_player toneIndigo
```

## Components

### Menus and Progress

- [Level Menus](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [Star Progress](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [Help Screen](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`

### Hanoi Gameplay

- [Ursina App](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [Disk Puzzle](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [Move Validation](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [Level Scoring](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`

### Procedural Visuals

- [Sakura Scene](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [Vector Helpers](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`
- [UI Helpers](https://github.com/juanh3rn4nd3z/me-datos-parcial-torre-de-hanoi-/blob/main/ParcialFinal.py): `ParcialFinal.py`

### Other components

- **Player**

## Connections

- Player → Ursina App: starts (evidence: `README.md`)
- Player → Level Menus: selects level (evidence: `README.md`)
- Player → Help Screen: opens help (evidence: `README.md`)
- Player → Disk Puzzle: drags disks (evidence: `README.md`)
- Level Menus → Disk Puzzle: starts level (evidence: `ParcialFinal.py`)
- Disk Puzzle → Move Validation: checks moves (evidence: `README.md`)
- Level Scoring → Star Progress: awards stars (evidence: `ParcialFinal.py`)
- Vector Helpers → Sakura Scene: draws elements (evidence: `ParcialFinal.py`)
- Vector Helpers → UI Helpers: builds controls (evidence: `ParcialFinal.py`)
- UI Helpers → Level Menus: creates buttons (evidence: `ParcialFinal.py`)
