# alejandra-uni/nexus_leonoralmanza architecture

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

- Interactive diagram: https://gitdiagram.com/alejandra-uni/nexus_leonoralmanza
- Repository: https://github.com/alejandra-uni/nexus_leonoralmanza

## Overview

NEXUS is a single-file console exploration game. The user configures a cadet and selects a reality, then explores its tile map; the program also offers a TCP connection flow for a companion and displays cadet/system status. The excerpt shows these responsibilities concentrated in Main and the Cadete/SistemaNexus classes, not in separate modules. TCP peer behavior is included as an integration; details beyond the shown listener and client setup are not inferred.

Main entry points: [`NEXUS/Nexus/Nexus/Program.cs`](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs) (Game coordinator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_main["Game coordinator<br/>[Program.cs]"]
end

subgraph group_exploration["World exploration"]
  node_world["Reality maps<br/>[Program.cs]"]
  node_explore["Map exploration<br/>[Program.cs]"]
end

subgraph group_collaboration["State and collaboration"]
  node_cadet["Cadet model<br/>[Program.cs]"]
  node_system["Nexus system<br/>[Program.cs]"]
  node_status["Status display<br/>[Program.cs]"]
  node_network["TCP connection<br/>[Program.cs]"]
end

node_user(("Player"))
node_peer(("Companion"))

node_user -->|"interacts with"| node_main
node_main -->|"creates and updates"| node_cadet
node_main -->|"creates"| node_system
node_main -->|"selects"| node_world
node_main -->|"runs"| node_explore
node_main -->|"starts connection flow"| node_network
node_network -->|"connects to"| node_peer
node_main -->|"displays status"| node_cadet
node_main -->|"displays cadets"| node_system

click node_main "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"
click node_cadet "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"
click node_system "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"
click node_world "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"
click node_explore "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"
click node_status "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"
click node_network "https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs"

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_main toneBlue
class node_world,node_explore toneAmber
class node_cadet,node_system,node_status,node_network toneMint
class node_user,node_peer toneIndigo
```

## Components

### Console interaction

- [Game coordinator](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`

### World exploration

- [Reality maps](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`
- [Map exploration](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`

### State and collaboration

- [Cadet model](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`
- [Nexus system](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`
- [Status display](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`
- [TCP connection](https://github.com/alejandra-uni/nexus_leonoralmanza/blob/main/NEXUS/Nexus/Nexus/Program.cs): `NEXUS/Nexus/Nexus/Program.cs`

### Other components

- **Player**
- **Companion**

## Connections

- Player → Game coordinator: interacts with (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → Cadet model: creates and updates (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → Nexus system: creates (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → Reality maps: selects (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → Map exploration: runs (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → TCP connection: starts connection flow (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- TCP connection → Companion: connects to (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → Cadet model: displays status (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
- Game coordinator → Nexus system: displays cadets (evidence: `NEXUS/Nexus/Nexus/Program.cs`)
