# jaguann/sqa-extreme-course-project architecture

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

- Interactive diagram: https://gitdiagram.com/jaguann/sqa-extreme-course-project
- Repository: https://github.com/jaguann/sqa-extreme-course-project

## Overview

This repository is a command-line game marketplace/account prototype. A user enters commands in the C++ CLI, which manages login state and dispatches account, selling, buying, and admin operations to domain classes. Account and Game hold the core marketplace model; the sampled implementations mostly print success messages rather than performing persistence or complete transactions. A separate Python backend is present as a transaction-processing scaffold, but its relationship to the C++ program is not shown, so it is represented independently.

Main entry points: [`main.cpp`](https://github.com/jaguann/sqa-extreme-course-project/blob/main/main.cpp) (Command Loop), [`account.cpp`](https://github.com/jaguann/sqa-extreme-course-project/blob/main/account.cpp) (Account), [`admin_user.cpp`](https://github.com/jaguann/sqa-extreme-course-project/blob/main/admin_user.cpp) (Admin User), [`user.cpp`](https://github.com/jaguann/sqa-extreme-course-project/blob/main/user.cpp) (Standard User)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command Line"]
  node_command_loop["Command Loop<br/>[main.cpp]"]
end

subgraph group_accounts["Accounts"]
  node_account["Account<br/>[account.cpp]"]
  node_user["Standard User<br/>[user.cpp]"]
  node_admin["Admin User<br/>[admin_user.cpp]"]
end

subgraph group_market["Marketplace"]
  node_game["Game Model<br/>[game.cpp]"]
end

subgraph group_python["Python Scaffold"]
  node_py_account["Python Account<br/>[Account.py]"]
  node_py_backend["Transaction Backend<br/>[Backend.py]"]
end

node_operator(("Operator"))

node_operator -->|"enters commands"| node_command_loop
node_command_loop -->|"creates user"| node_user
node_command_loop -->|"creates admin"| node_admin
node_command_loop -->|"dispatches operations"| node_account
node_command_loop -->|"dispatches admin actions"| node_admin
node_user -->|"inherits and delegates"| node_account
node_admin -->|"inherits"| node_account
node_account -->|"stores collection"| node_game

click node_command_loop "https://github.com/jaguann/sqa-extreme-course-project/blob/main/main.cpp"
click node_account "https://github.com/jaguann/sqa-extreme-course-project/blob/main/account.cpp"
click node_user "https://github.com/jaguann/sqa-extreme-course-project/blob/main/user.cpp"
click node_admin "https://github.com/jaguann/sqa-extreme-course-project/blob/main/admin_user.cpp"
click node_game "https://github.com/jaguann/sqa-extreme-course-project/blob/main/game.cpp"
click node_py_account "https://github.com/jaguann/sqa-extreme-course-project/blob/main/Backend/Account.py"
click node_py_backend "https://github.com/jaguann/sqa-extreme-course-project/blob/main/Backend/Backend.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_command_loop toneBlue
class node_account,node_user,node_admin toneAmber
class node_game toneMint
class node_py_account,node_py_backend toneRose
class node_operator toneIndigo
```

## Components

### Command Line

- [Command Loop](https://github.com/jaguann/sqa-extreme-course-project/blob/main/main.cpp): `main.cpp`

### Accounts

- [Account](https://github.com/jaguann/sqa-extreme-course-project/blob/main/account.cpp): `account.cpp`
- [Standard User](https://github.com/jaguann/sqa-extreme-course-project/blob/main/user.cpp): `user.cpp`
- [Admin User](https://github.com/jaguann/sqa-extreme-course-project/blob/main/admin_user.cpp): `admin_user.cpp`

### Marketplace

- [Game Model](https://github.com/jaguann/sqa-extreme-course-project/blob/main/game.cpp): `game.cpp`

### Python Scaffold

- [Python Account](https://github.com/jaguann/sqa-extreme-course-project/blob/main/Backend/Account.py): `Backend/Account.py`
- [Transaction Backend](https://github.com/jaguann/sqa-extreme-course-project/blob/main/Backend/Backend.py): `Backend/Backend.py`

### Other components

- **Operator**

## Connections

- Operator → Command Loop: enters commands (evidence: `main.cpp`)
- Command Loop → Standard User: creates user (evidence: `main.cpp`)
- Command Loop → Admin User: creates admin (evidence: `main.cpp`)
- Command Loop → Account: dispatches operations (evidence: `main.cpp`)
- Command Loop → Admin User: dispatches admin actions (evidence: `main.cpp`)
- Standard User → Account: inherits and delegates (evidence: `user.cpp`)
- Admin User → Account: inherits
- Account → Game Model: stores collection
