# valentingues/devstartuptycoon architecture

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

- Interactive diagram: https://gitdiagram.com/valentingues/devstartuptycoon
- Repository: https://github.com/valentingues/devstartuptycoon

## Overview

DevStartupTycoon is a WPF coding-challenge tycoon game. A player selects or creates a save, chooses a challenge, writes and runs code, and earns rewards or levels by passing verification; upgrades generate passive income. The UI coordinates challenge and upgrade views, while DatabaseHelper persists save, progression, and upgrade state. CodeExecutor dispatches submissions to language-specific tools or an in-memory SQL database. The README is empty, so capability evidence comes from the sampled source; unsampled XAML and database schema relationships are not assumed.

Main entry points: [`GameApp/CodeExecutor.cs`](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/CodeExecutor.cs) (Code executor), [`GameApp/MainWindow.xaml.cs`](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/MainWindow.xaml.cs) (Game dashboard), [`GameApp/IdeWindow.xaml.cs`](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/IdeWindow.xaml.cs) (Challenge editor), [`GameApp/StartupWindow.xaml.cs`](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/StartupWindow.xaml.cs) (Save selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game_ui["Game interface"]
  node_save_menu["Save selection"]
  node_game_dashboard["Game dashboard<br/>[MainWindow.xaml.cs]"]
  node_challenge_editor["Challenge editor<br/>[IdeWindow.xaml.cs]"]
end

subgraph group_challenge_runtime["Challenge runtime"]
  node_code_executor["Code executor<br/>[CodeExecutor.cs]"]
  node_python_runtime["Python interpreter"]
  node_dotnet_runtime[".NET runtime"]
  node_java_toolchain["Java toolchain"]
  node_sqlite_engine["SQLite engine"]
end

subgraph group_game_state["Game state"]
  node_progression_store[("Progression and upgrades<br/>[DatabaseHelper.cs]")]
end

node_player(("Player"))

node_player -->|"selects save"| node_save_menu
node_save_menu -->|"resets save"| node_progression_store
node_save_menu -->|"launches game"| node_game_dashboard
node_game_dashboard -->|"loads and updates"| node_progression_store
node_player -.->|"views game"| node_game_dashboard
node_game_dashboard -->|"opens challenge"| node_challenge_editor
node_challenge_editor -->|"runs submission"| node_code_executor
node_code_executor -->|"runs Python"| node_python_runtime
node_code_executor -->|"runs C&#35;"| node_dotnet_runtime
node_code_executor -->|"compiles and runs"| node_java_toolchain
node_code_executor -->|"executes SQL"| node_sqlite_engine
node_challenge_editor -->|"records completion"| node_progression_store
node_challenge_editor -->|"refreshes views"| node_game_dashboard

click node_save_menu "https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/StartupWindow.xaml.cs"
click node_game_dashboard "https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/MainWindow.xaml.cs"
click node_challenge_editor "https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/IdeWindow.xaml.cs"
click node_code_executor "https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/CodeExecutor.cs"
click node_progression_store "https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/DatabaseHelper.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_save_menu,node_game_dashboard,node_challenge_editor toneBlue
class node_code_executor,node_python_runtime,node_dotnet_runtime,node_java_toolchain,node_sqlite_engine toneAmber
class node_progression_store toneMint
class node_player toneIndigo
```

## Components

### Game interface

- [Save selection](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/StartupWindow.xaml.cs): `GameApp/StartupWindow.xaml.cs`
- [Game dashboard](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/MainWindow.xaml.cs): `GameApp/MainWindow.xaml.cs`
- [Challenge editor](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/IdeWindow.xaml.cs): `GameApp/IdeWindow.xaml.cs`

### Challenge runtime

- [Code executor](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/CodeExecutor.cs): `GameApp/CodeExecutor.cs`
- **Python interpreter**
- **.NET runtime**
- **Java toolchain**
- **SQLite engine**

### Game state

- [Progression and upgrades](https://github.com/valentingues/devstartuptycoon/blob/master/GameApp/DatabaseHelper.cs): `GameApp/DatabaseHelper.cs`

### Other components

- **Player**

## Connections

- Player → Save selection: selects save (evidence: `GameApp/StartupWindow.xaml.cs`)
- Save selection → Progression and upgrades: resets save (evidence: `GameApp/StartupWindow.xaml.cs`)
- Save selection → Game dashboard: launches game (evidence: `GameApp/StartupWindow.xaml.cs`)
- Game dashboard → Progression and upgrades: loads and updates (evidence: `GameApp/MainWindow.xaml.cs`)
- Player → Game dashboard: views game
- Game dashboard → Challenge editor: opens challenge (evidence: `GameApp/MainWindow.xaml.cs`)
- Challenge editor → Code executor: runs submission (evidence: `GameApp/IdeWindow.xaml.cs`)
- Code executor → Python interpreter: runs Python (evidence: `GameApp/CodeExecutor.cs`)
- Code executor → .NET runtime: runs C# (evidence: `GameApp/CodeExecutor.cs`)
- Code executor → Java toolchain: compiles and runs (evidence: `GameApp/CodeExecutor.cs`)
- Code executor → SQLite engine: executes SQL (evidence: `GameApp/CodeExecutor.cs`)
- Challenge editor → Progression and upgrades: records completion (evidence: `GameApp/IdeWindow.xaml.cs`)
- Challenge editor → Game dashboard: refreshes views (evidence: `GameApp/IdeWindow.xaml.cs`)
