# unisequence/solbreaker architecture

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

- Interactive diagram: https://gitdiagram.com/unisequence/solbreaker
- Repository: https://github.com/unisequence/solbreaker

## Overview

Solbreaker is a self-hosted multiplayer tank-game server with desktop and terminal interfaces, plus adapters for a compatible game client. The main workflow is to prepare or select a client and server profile, connect players to rooms, run bot or multiplayer battles, and record results. The repository also covers accounts and garage inventory, battle modes, bot decisions, native physics, recon, and Proving Ground practice. Relationships below use README descriptions and the supplied source index; unsampled implementation details are not assumed.

Main entry points: [`solbreaker/base.py`](https://github.com/unisequence/solbreaker/blob/main/solbreaker/base.py) (Battle rules), [`solbreaker/desktop.py`](https://github.com/unisequence/solbreaker/blob/main/solbreaker/desktop.py) (Desktop launcher), [`solbreaker/server.py`](https://github.com/unisequence/solbreaker/blob/main/solbreaker/server.py) (Server endpoint), [`solbreaker/connection.py`](https://github.com/unisequence/solbreaker/blob/main/solbreaker/connection.py) (Connection profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Launch and connection"]
  node_launcher["Desktop launcher<br/>[desktop.py]"]
  node_terminal["Terminal interface<br/>[terminal.py]"]
  node_profile["Connection profile<br/>[connection.py]"]
  node_server["Server endpoint<br/>[server.py]"]
end

subgraph group_game["Accounts and battles"]
  node_accounts[("Accounts and auth<br/>[storage.py]")]
  node_garage["Garage and inventory<br/>[garage.py]"]
  node_rooms["Rooms and setup<br/>[rooms.py]"]
  node_arena["Arena lifecycle"]
  node_battle["Battle rules<br/>[base.py]"]
  node_results["Battle results<br/>[results.py]"]
end

subgraph group_simulation["Simulation and practice"]
  node_bots["Bot decisions<br/>[bot_ai.py]"]
  node_physics["Ground physics<br/>[lib.rs]"]
  node_recon["Battle recon<br/>[recon.py]"]
  node_practice["Proving Ground"]
  node_mapcatalog["Map catalog<br/>[map_catalog.py]"]
end

subgraph group_client["Client experience"]
  node_clientui["Client UI adapters<br/>[client_ui.py]"]
  node_settings["Battle settings UI"]
  node_clientpatch["Client patching<br/>[client_patch.py]"]
  node_replay["Replay viewing<br/>[replay_viewer.py]"]
end

node_player(("Player"))

node_player -->|"starts setup"| node_launcher
node_player -->|"opens interface"| node_terminal
node_launcher -.->|"selects server"| node_profile
node_profile -->|"connects client"| node_server
node_server -->|"authenticates"| node_accounts
node_server -.->|"serves rooms"| node_rooms
node_rooms -->|"starts battles"| node_arena
node_arena -->|"runs rules"| node_battle
node_battle -->|"records outcomes"| node_results
node_battle -.->|"uses decisions"| node_bots
node_battle -.->|"simulates motion"| node_physics
node_battle -.->|"provides recon"| node_recon
node_accounts -->|"stores inventory"| node_garage
node_player -->|"selects practice"| node_practice
node_practice -.->|"selects map"| node_mapcatalog
node_launcher -->|"prepares client"| node_clientpatch
node_clientpatch -.->|"installs overrides"| node_clientui
node_clientui -->|"hosts controls"| node_settings
node_player -.->|"inspects replay"| node_replay

click node_launcher "https://github.com/unisequence/solbreaker/blob/main/solbreaker/desktop.py"
click node_terminal "https://github.com/unisequence/solbreaker/blob/main/solbreaker/terminal.py"
click node_profile "https://github.com/unisequence/solbreaker/blob/main/solbreaker/connection.py"
click node_server "https://github.com/unisequence/solbreaker/blob/main/solbreaker/server.py"
click node_accounts "https://github.com/unisequence/solbreaker/blob/main/solbreaker/storage.py"
click node_garage "https://github.com/unisequence/solbreaker/blob/main/solbreaker/garage.py"
click node_rooms "https://github.com/unisequence/solbreaker/blob/main/solbreaker/rooms.py"
click node_arena "https://github.com/unisequence/solbreaker/blob/main/solbreaker/arena_owner_service.py"
click node_battle "https://github.com/unisequence/solbreaker/blob/main/solbreaker/base.py"
click node_results "https://github.com/unisequence/solbreaker/blob/main/solbreaker/results.py"
click node_bots "https://github.com/unisequence/solbreaker/blob/main/solbreaker/bot_ai.py"
click node_physics "https://github.com/unisequence/solbreaker/blob/main/solbreaker/native/physics_core/src/lib.rs"
click node_recon "https://github.com/unisequence/solbreaker/blob/main/solbreaker/recon.py"
click node_practice "https://github.com/unisequence/solbreaker/blob/main/solbreaker/proving_ground_map.py"
click node_mapcatalog "https://github.com/unisequence/solbreaker/blob/main/solbreaker/map_catalog.py"
click node_clientui "https://github.com/unisequence/solbreaker/blob/main/solbreaker/client_ui.py"
click node_settings "https://github.com/unisequence/solbreaker/blob/main/solbreaker/client_battle_settings.py"
click node_clientpatch "https://github.com/unisequence/solbreaker/blob/main/solbreaker/client_patch.py"
click node_replay "https://github.com/unisequence/solbreaker/blob/main/solbreaker/replay_viewer.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_launcher,node_terminal,node_profile,node_server toneBlue
class node_accounts,node_garage,node_rooms,node_arena,node_battle,node_results toneAmber
class node_bots,node_physics,node_recon,node_practice,node_mapcatalog toneMint
class node_clientui,node_settings,node_clientpatch,node_replay toneRose
class node_player toneIndigo
```

## Components

### Launch and connection

- [Desktop launcher](https://github.com/unisequence/solbreaker/blob/main/solbreaker/desktop.py): `solbreaker/desktop.py`
- [Terminal interface](https://github.com/unisequence/solbreaker/blob/main/solbreaker/terminal.py): `solbreaker/terminal.py`
- [Connection profile](https://github.com/unisequence/solbreaker/blob/main/solbreaker/connection.py): `solbreaker/connection.py`
- [Server endpoint](https://github.com/unisequence/solbreaker/blob/main/solbreaker/server.py): `solbreaker/server.py`

### Accounts and battles

- [Accounts and auth](https://github.com/unisequence/solbreaker/blob/main/solbreaker/storage.py): `solbreaker/storage.py`
- [Garage and inventory](https://github.com/unisequence/solbreaker/blob/main/solbreaker/garage.py): `solbreaker/garage.py`
- [Rooms and setup](https://github.com/unisequence/solbreaker/blob/main/solbreaker/rooms.py): `solbreaker/rooms.py`
- [Arena lifecycle](https://github.com/unisequence/solbreaker/blob/main/solbreaker/arena_owner_service.py): `solbreaker/arena_owner_service.py`
- [Battle rules](https://github.com/unisequence/solbreaker/blob/main/solbreaker/base.py): `solbreaker/base.py`
- [Battle results](https://github.com/unisequence/solbreaker/blob/main/solbreaker/results.py): `solbreaker/results.py`

### Simulation and practice

- [Bot decisions](https://github.com/unisequence/solbreaker/blob/main/solbreaker/bot_ai.py): `solbreaker/bot_ai.py`
- [Ground physics](https://github.com/unisequence/solbreaker/blob/main/solbreaker/native/physics_core/src/lib.rs): `solbreaker/native/physics_core/src/lib.rs`
- [Battle recon](https://github.com/unisequence/solbreaker/blob/main/solbreaker/recon.py): `solbreaker/recon.py`
- [Proving Ground](https://github.com/unisequence/solbreaker/blob/main/solbreaker/proving_ground_map.py): `solbreaker/proving_ground_map.py`
- [Map catalog](https://github.com/unisequence/solbreaker/blob/main/solbreaker/map_catalog.py): `solbreaker/map_catalog.py`

### Client experience

- [Client UI adapters](https://github.com/unisequence/solbreaker/blob/main/solbreaker/client_ui.py): `solbreaker/client_ui.py`
- [Battle settings UI](https://github.com/unisequence/solbreaker/blob/main/solbreaker/client_battle_settings.py): `solbreaker/client_battle_settings.py`
- [Client patching](https://github.com/unisequence/solbreaker/blob/main/solbreaker/client_patch.py): `solbreaker/client_patch.py`
- [Replay viewing](https://github.com/unisequence/solbreaker/blob/main/solbreaker/replay_viewer.py): `solbreaker/replay_viewer.py`

### Other components

- **Player**

## Connections

- Player → Desktop launcher: starts setup (evidence: `README.md`)
- Player → Terminal interface: opens interface (evidence: `README.md`)
- Desktop launcher → Connection profile: selects server
- Connection profile → Server endpoint: connects client (evidence: `README.md`)
- Server endpoint → Accounts and auth: authenticates (evidence: `solbreaker/server.py`)
- Server endpoint → Rooms and setup: serves rooms
- Rooms and setup → Arena lifecycle: starts battles (evidence: `README.md`)
- Arena lifecycle → Battle rules: runs rules (evidence: `solbreaker/arena_owner_service.py`)
- Battle rules → Battle results: records outcomes (evidence: `README.md`)
- Battle rules → Bot decisions: uses decisions
- Battle rules → Ground physics: simulates motion
- Battle rules → Battle recon: provides recon
- Accounts and auth → Garage and inventory: stores inventory (evidence: `solbreaker/storage.py`)
- Player → Proving Ground: selects practice (evidence: `README.md`)
- Proving Ground → Map catalog: selects map (evidence: `solbreaker/proving_ground_map.py`)
- Desktop launcher → Client patching: prepares client (evidence: `README.md`)
- Client patching → Client UI adapters: installs overrides
- Client UI adapters → Battle settings UI: hosts controls (evidence: `solbreaker/client_battle_settings.py`)
- Player → Replay viewing: inspects replay
