# maxpein12/anj architecture

> Architecture diagram of the GitHub repository maxpein12/anj, 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/maxpein12/anj
- Repository: https://github.com/maxpein12/anj

## Overview

Dungeon Conquest is a terminal-based dungeon battle game. A player creates or uses an account, then runs an expedition: queue enemies, battle, and use shop, rest, or escape actions; administrators manage game records and setup. The same Python module implements the game’s screens, domain behavior, and data structures. The README documents the major capabilities and record files, but the source excerpt is partial, so internal dispatch between screens and individual persistence routines is not asserted.

Main entry points: [`DS_MidtermProject2_Transaction2_BariteJMercadoR.py`](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py) (Game Application), [`player_accounts.txt`](https://github.com/maxpein12/anj/blob/main/player_accounts.txt) (Player Accounts), [`enemy_records.txt`](https://github.com/maxpein12/anj/blob/main/enemy_records.txt) (Enemy Records), [`item_records.txt`](https://github.com/maxpein12/anj/blob/main/item_records.txt) (Item Records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Game Interface"]
  node_game["Game Application"]
  node_dashboard["Dashboard"]
  node_accounts["Account Access"]
end

subgraph group_management["Game Management"]
  node_profiling["Record Profiling"]
  node_admin["Admin Setup"]
  node_reports["Report Generation"]
end

subgraph group_expedition["Dungeon Expedition"]
  node_expedition["Expedition"]
  node_battle["Battle System"]
  node_encounter["Encounter Queue"]
  node_battle_history["Action History"]
  node_dungeon["Dungeon Map"]
end

subgraph group_state["Game State"]
  node_accounts_file[("Player Accounts")]
  node_enemies_file[("Enemy Records<br/>[enemy_records.txt]")]
  node_items_file[("Item Records<br/>[item_records.txt]")]
  node_rooms_file[("Room Records<br/>[room_records.txt]")]
  node_connections_file[("Room Connections")]
  node_questions_file[("Challenge Questions")]
  node_history_file[("Battle History Records")]
end

node_player(("Player"))

node_player -->|"plays"| node_game
node_game -->|"offers"| node_dashboard
node_game -->|"offers"| node_accounts
node_game -->|"offers"| node_profiling
node_game -->|"offers"| node_admin
node_game -->|"offers"| node_reports
node_game -->|"offers"| node_expedition
node_expedition -->|"includes"| node_battle
node_expedition -->|"queues enemies"| node_encounter
node_battle -->|"records actions"| node_battle_history
node_expedition -->|"traverses"| node_dungeon
node_game -->|"uses records"| node_accounts_file
node_game -->|"uses records"| node_enemies_file
node_game -->|"uses records"| node_items_file
node_game -->|"uses records"| node_rooms_file
node_game -->|"uses records"| node_connections_file
node_game -->|"uses records"| node_questions_file
node_game -->|"creates records"| node_history_file

click node_game "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_dashboard "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_accounts "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_profiling "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_admin "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_reports "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_expedition "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_battle "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_encounter "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_battle_history "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_dungeon "https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py"
click node_accounts_file "https://github.com/maxpein12/anj/blob/main/player_accounts.txt"
click node_enemies_file "https://github.com/maxpein12/anj/blob/main/enemy_records.txt"
click node_items_file "https://github.com/maxpein12/anj/blob/main/item_records.txt"
click node_rooms_file "https://github.com/maxpein12/anj/blob/main/room_records.txt"
click node_connections_file "https://github.com/maxpein12/anj/blob/main/room_connections.txt"
click node_questions_file "https://github.com/maxpein12/anj/blob/main/question_records.txt"
click node_history_file "https://github.com/maxpein12/anj/blob/main/battle_history_records.txt"

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_game,node_dashboard,node_accounts toneBlue
class node_profiling,node_admin,node_reports toneAmber
class node_expedition,node_battle,node_encounter,node_battle_history,node_dungeon toneMint
class node_accounts_file,node_enemies_file,node_items_file,node_rooms_file,node_connections_file,node_questions_file,node_history_file toneRose
class node_player toneIndigo
```

## Components

### Game Interface

- [Game Application](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Dashboard](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Account Access](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`

### Game Management

- [Record Profiling](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Admin Setup](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Report Generation](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`

### Dungeon Expedition

- [Expedition](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Battle System](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Encounter Queue](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Action History](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`
- [Dungeon Map](https://github.com/maxpein12/anj/blob/main/DS_MidtermProject2_Transaction2_BariteJMercadoR.py): `DS_MidtermProject2_Transaction2_BariteJMercadoR.py`

### Game State

- [Player Accounts](https://github.com/maxpein12/anj/blob/main/player_accounts.txt): `player_accounts.txt`
- [Enemy Records](https://github.com/maxpein12/anj/blob/main/enemy_records.txt): `enemy_records.txt`
- [Item Records](https://github.com/maxpein12/anj/blob/main/item_records.txt): `item_records.txt`
- [Room Records](https://github.com/maxpein12/anj/blob/main/room_records.txt): `room_records.txt`
- [Room Connections](https://github.com/maxpein12/anj/blob/main/room_connections.txt): `room_connections.txt`
- [Challenge Questions](https://github.com/maxpein12/anj/blob/main/question_records.txt): `question_records.txt`
- [Battle History Records](https://github.com/maxpein12/anj/blob/main/battle_history_records.txt): `battle_history_records.txt`

### Other components

- **Player**

## Connections

- Player → Game Application: plays (evidence: `README.md`)
- Game Application → Dashboard: offers (evidence: `README.md`)
- Game Application → Account Access: offers (evidence: `README.md`)
- Game Application → Record Profiling: offers (evidence: `README.md`)
- Game Application → Admin Setup: offers (evidence: `README.md`)
- Game Application → Report Generation: offers (evidence: `README.md`)
- Game Application → Expedition: offers (evidence: `README.md`)
- Expedition → Battle System: includes (evidence: `README.md`)
- Expedition → Encounter Queue: queues enemies (evidence: `README.md`)
- Battle System → Action History: records actions (evidence: `README.md`)
- Expedition → Dungeon Map: traverses (evidence: `README.md`)
- Game Application → Player Accounts: uses records (evidence: `README.md`)
- Game Application → Enemy Records: uses records (evidence: `README.md`)
- Game Application → Item Records: uses records (evidence: `README.md`)
- Game Application → Room Records: uses records (evidence: `README.md`)
- Game Application → Room Connections: uses records (evidence: `README.md`)
- Game Application → Challenge Questions: uses records (evidence: `README.md`)
- Game Application → Battle History Records: creates records (evidence: `README.md`)
