# fudgeejane/tcc-feud architecture

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

## Overview

TCC Feud is a desktop Family Feud-style game builder and play application. A user enters through the Qt app, manages games and teams, authors questions, assigns teams, and launches a game; play state is rendered on a separate audience-facing board. The code also supports game and team editing and JSON persistence. The README is empty, and several modules are only partially excerpted, so the map follows relationships shown in excerpts and the source index; it omits uncertain internal calls.

Main entry points: [`modules/home.py`](https://github.com/fudgeejane/tcc-feud/blob/main/modules/home.py) (Game library), [`modules/modify_game.py`](https://github.com/fudgeejane/tcc-feud/blob/main/modules/modify_game.py) (Game editor), [`modules/play_game.py`](https://github.com/fudgeejane/tcc-feud/blob/main/modules/play_game.py) (Game controls), [`utils/addteam_modal.py`](https://github.com/fudgeejane/tcc-feud/blob/main/utils/addteam_modal.py) (Team assignment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["Qt application<br/>[main.py]"]
end

subgraph group_setup["Game Setup"]
  node_home["Game library<br/>[home.py]"]
  node_game_dialogs["Game dialogs<br/>[game_modal.py]"]
  node_team_admin["Team management<br/>[teams_modal.py]"]
  node_team_picker["Team assignment<br/>[addteam_modal.py]"]
  node_editor["Game editor<br/>[modify_game.py]"]
  node_question_dialog["Question dialogs<br/>[question_modal.py]"]
end

subgraph group_play["Live Play"]
  node_gameplay["Game controls<br/>[play_game.py]"]
  node_board["Audience board<br/>[display_game.py]"]
end

subgraph group_storage["Persistence"]
  node_json_store[("JSON game and team data<br/>[db.py]")]
end

node_user(("Game host"))

node_user -->|"uses"| node_entry
node_entry -->|"builds home"| node_home
node_entry -->|"opens dialog"| node_game_dialogs
node_home -->|"edits games"| node_game_dialogs
node_home -->|"manages teams"| node_team_admin
node_home -->|"adds teams"| node_team_picker
node_home -->|"opens editor"| node_editor
node_home -->|"loads and saves"| node_json_store
node_team_picker -->|"opens add dialog"| node_team_admin
node_team_picker -->|"saves teams"| node_json_store
node_editor -->|"opens dialog"| node_question_dialog
node_editor -->|"assigns teams"| node_team_picker
node_editor -->|"saves games"| node_json_store
node_editor -->|"launches game"| node_gameplay
node_gameplay -->|"updates display"| node_board
node_gameplay -->|"loads game data"| node_json_store
node_gameplay -->|"opens dialog"| node_game_dialogs
node_gameplay -->|"returns to edit"| node_editor

click node_entry "https://github.com/fudgeejane/tcc-feud/blob/main/main.py"
click node_home "https://github.com/fudgeejane/tcc-feud/blob/main/modules/home.py"
click node_game_dialogs "https://github.com/fudgeejane/tcc-feud/blob/main/utils/game_modal.py"
click node_team_admin "https://github.com/fudgeejane/tcc-feud/blob/main/utils/teams_modal.py"
click node_team_picker "https://github.com/fudgeejane/tcc-feud/blob/main/utils/addteam_modal.py"
click node_editor "https://github.com/fudgeejane/tcc-feud/blob/main/modules/modify_game.py"
click node_question_dialog "https://github.com/fudgeejane/tcc-feud/blob/main/utils/question_modal.py"
click node_gameplay "https://github.com/fudgeejane/tcc-feud/blob/main/modules/play_game.py"
click node_board "https://github.com/fudgeejane/tcc-feud/blob/main/modules/display_game.py"
click node_json_store "https://github.com/fudgeejane/tcc-feud/blob/main/database/db.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_entry toneBlue
class node_home,node_game_dialogs,node_team_admin,node_team_picker,node_editor,node_question_dialog toneAmber
class node_gameplay,node_board toneMint
class node_json_store toneRose
class node_user toneIndigo
```

## Components

### Application

- [Qt application](https://github.com/fudgeejane/tcc-feud/blob/main/main.py): `main.py`

### Game Setup

- [Game library](https://github.com/fudgeejane/tcc-feud/blob/main/modules/home.py): `modules/home.py`
- [Game dialogs](https://github.com/fudgeejane/tcc-feud/blob/main/utils/game_modal.py): `utils/game_modal.py`
- [Team management](https://github.com/fudgeejane/tcc-feud/blob/main/utils/teams_modal.py): `utils/teams_modal.py`
- [Team assignment](https://github.com/fudgeejane/tcc-feud/blob/main/utils/addteam_modal.py): `utils/addteam_modal.py`
- [Game editor](https://github.com/fudgeejane/tcc-feud/blob/main/modules/modify_game.py): `modules/modify_game.py`
- [Question dialogs](https://github.com/fudgeejane/tcc-feud/blob/main/utils/question_modal.py): `utils/question_modal.py`

### Live Play

- [Game controls](https://github.com/fudgeejane/tcc-feud/blob/main/modules/play_game.py): `modules/play_game.py`
- [Audience board](https://github.com/fudgeejane/tcc-feud/blob/main/modules/display_game.py): `modules/display_game.py`

### Persistence

- [JSON game and team data](https://github.com/fudgeejane/tcc-feud/blob/main/database/db.py): `database/db.py`

### Other components

- **Game host**

## Connections

- Game host → Qt application: uses (evidence: `main.py`)
- Qt application → Game library: builds home (evidence: `main.py`)
- Qt application → Game dialogs: opens dialog (evidence: `main.py`)
- Game library → Game dialogs: edits games (evidence: `modules/home.py`)
- Game library → Team management: manages teams (evidence: `modules/home.py`)
- Game library → Team assignment: adds teams (evidence: `modules/home.py`)
- Game library → Game editor: opens editor (evidence: `modules/home.py`)
- Game library → JSON game and team data: loads and saves (evidence: `modules/home.py`)
- Team assignment → Team management: opens add dialog (evidence: `utils/addteam_modal.py`)
- Team assignment → JSON game and team data: saves teams (evidence: `utils/addteam_modal.py`)
- Game editor → Question dialogs: opens dialog (evidence: `modules/modify_game.py`)
- Game editor → Team assignment: assigns teams (evidence: `modules/modify_game.py`)
- Game editor → JSON game and team data: saves games (evidence: `modules/modify_game.py`)
- Game editor → Game controls: launches game (evidence: `modules/modify_game.py`)
- Game controls → Audience board: updates display (evidence: `modules/play_game.py`)
- Game controls → JSON game and team data: loads game data (evidence: `modules/play_game.py`)
- Game controls → Game dialogs: opens dialog (evidence: `modules/play_game.py`)
- Game controls → Game editor: returns to edit (evidence: `modules/play_game.py`)
