# tazp108/project_space_war architecture

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

- Interactive diagram: https://gitdiagram.com/tazp108/project_space_war
- Repository: https://github.com/tazp108/project_space_war

## Overview

This is a Haskell, two-player, turn-based game described as client-server over WebSocket. The tree names its runtime modules, but no source excerpts were provided, so their responsibilities are inferred only from filenames and no internal call flow is asserted. The sole relationship shown comes from the README; implementation details of the server and transport remain unverified.

Main entry points: [`src/Game`](https://github.com/tazp108/project_space_war/tree/main/src/Game) (Game server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game runtime"]
  node_game_server["Game server"]
end

subgraph group_domain["Game domain"]
  node_actions["Game actions<br/>[Action.hs]"]
  node_configuration["Configuration<br/>[Config.hs]"]
  node_generation["Game generation<br/>[Generate.hs]"]
  node_state["Game state<br/>[State.hs]"]
  node_turns["Turn handling<br/>[Turn.hs]"]
  node_types["Game types<br/>[Types.hs]"]
  node_world["Game world<br/>[World.hs]"]
end

subgraph group_entry["Application entry"]
  node_main["Executable entry<br/>[Main.hs]"]
  node_library["Library module<br/>[Lib.hs]"]
end

node_players(("Two players"))

node_players -->|"play via WebSocket"| node_game_server

click node_game_server "https://github.com/tazp108/project_space_war/tree/main/src/Game"
click node_main "https://github.com/tazp108/project_space_war/blob/main/app/Main.hs"
click node_library "https://github.com/tazp108/project_space_war/blob/main/src/Lib.hs"
click node_actions "https://github.com/tazp108/project_space_war/blob/main/src/Game/Action.hs"
click node_configuration "https://github.com/tazp108/project_space_war/blob/main/src/Game/Config.hs"
click node_generation "https://github.com/tazp108/project_space_war/blob/main/src/Game/Generate.hs"
click node_state "https://github.com/tazp108/project_space_war/blob/main/src/Game/State.hs"
click node_turns "https://github.com/tazp108/project_space_war/blob/main/src/Game/Turn.hs"
click node_types "https://github.com/tazp108/project_space_war/blob/main/src/Game/Types.hs"
click node_world "https://github.com/tazp108/project_space_war/blob/main/src/Game/World.hs"

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_server toneBlue
class node_actions,node_configuration,node_generation,node_state,node_turns,node_types,node_world toneAmber
class node_main,node_library toneMint
class node_players toneIndigo
```

## Components

### Game runtime

- [Game server](https://github.com/tazp108/project_space_war/tree/main/src/Game): `src/Game`

### Game domain

- [Game actions](https://github.com/tazp108/project_space_war/blob/main/src/Game/Action.hs): `src/Game/Action.hs`
- [Configuration](https://github.com/tazp108/project_space_war/blob/main/src/Game/Config.hs): `src/Game/Config.hs`
- [Game generation](https://github.com/tazp108/project_space_war/blob/main/src/Game/Generate.hs): `src/Game/Generate.hs`
- [Game state](https://github.com/tazp108/project_space_war/blob/main/src/Game/State.hs): `src/Game/State.hs`
- [Turn handling](https://github.com/tazp108/project_space_war/blob/main/src/Game/Turn.hs): `src/Game/Turn.hs`
- [Game types](https://github.com/tazp108/project_space_war/blob/main/src/Game/Types.hs): `src/Game/Types.hs`
- [Game world](https://github.com/tazp108/project_space_war/blob/main/src/Game/World.hs): `src/Game/World.hs`

### Application entry

- [Executable entry](https://github.com/tazp108/project_space_war/blob/main/app/Main.hs): `app/Main.hs`
- [Library module](https://github.com/tazp108/project_space_war/blob/main/src/Lib.hs): `src/Lib.hs`

### Other components

- **Two players**

## Connections

- Two players → Game server: play via WebSocket (evidence: `README.md`)
