# trishanjit-dhar/python-beginner-projects architecture

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

- Interactive diagram: https://gitdiagram.com/trishanjit-dhar/python-beginner-projects
- Repository: https://github.com/trishanjit-dhar/python-beginner-projects

## Overview

This repository contains two independent command-line projects. In Rock-Paper-Scissors, the user enters a choice, the script validates it, selects a computer move, and displays the outcome. The expense tracker is documented as a continuous console application for recording categorized spending and tracking it against a monthly budget. The expense-tracker source was not excerpted, so its internal stages and connections are not expanded beyond the README-supported application boundary.

Main entry points: [`01-rock-paper-scissors/rock_paper_scissors.py`](https://github.com/trishanjit-dhar/python-beginner-projects/blob/main/01-rock-paper-scissors/rock_paper_scissors.py) (Game script), [`02-expense-tracker/expense_tracker.py`](https://github.com/trishanjit-dhar/python-beginner-projects/blob/main/02-expense-tracker/expense_tracker.py) (Expense tracker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Rock-Paper-Scissors"]
  node_rps["Game script"]
  node_random["Random choice"]
end

subgraph group_expenses["Expense Tracker"]
  node_tracker["Expense tracker<br/>[expense_tracker.py]"]
end

node_user(("User"))
node_expense_user(("User"))

node_user -->|"enters choice"| node_rps
node_rps -->|"selects move"| node_random
node_expense_user -->|"uses console app"| node_tracker

click node_rps "https://github.com/trishanjit-dhar/python-beginner-projects/blob/main/01-rock-paper-scissors/rock_paper_scissors.py"
click node_tracker "https://github.com/trishanjit-dhar/python-beginner-projects/blob/main/02-expense-tracker/expense_tracker.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_rps,node_random,node_user,node_expense_user toneBlue
class node_tracker toneAmber
```

## Components

### Rock-Paper-Scissors

- [Game script](https://github.com/trishanjit-dhar/python-beginner-projects/blob/main/01-rock-paper-scissors/rock_paper_scissors.py): `01-rock-paper-scissors/rock_paper_scissors.py`
- **Random choice**

### Expense Tracker

- [Expense tracker](https://github.com/trishanjit-dhar/python-beginner-projects/blob/main/02-expense-tracker/expense_tracker.py): `02-expense-tracker/expense_tracker.py`

### Other components

- **User**
- **User**

## Connections

- User → Game script: enters choice (evidence: `01-rock-paper-scissors/rock_paper_scissors.py`)
- Game script → Random choice: selects move (evidence: `01-rock-paper-scissors/rock_paper_scissors.py`)
- User → Expense tracker: uses console app (evidence: `README.md`)
