# dankim94/bank-simulator architecture

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

- Interactive diagram: https://gitdiagram.com/dankim94/bank-simulator
- Repository: https://github.com/dankim94/bank-simulator

## Overview

This is a minimal bank-account simulator. Running `Bank_Simulator.py` creates an in-memory account, greets its owner, deposits and withdraws amounts, then prints the resulting balance. `Bank_Account.py` defines the account state and operations; there is no persistence or separate banking service. The excerpts show the script invoking the account methods and reading its balance, but do not establish how the script is launched. The output is represented as console output.

Main entry points: [`Bank_Simulator.py`](https://github.com/dankim94/bank-simulator/blob/main/Bank_Simulator.py) (Bank Simulator), [`Bank_Account.py`](https://github.com/dankim94/bank-simulator/blob/main/Bank_Account.py) (Account)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_simulator["Bank Simulator<br/>[Bank_Simulator.py]"]
node_account["Account<br/>[Bank_Account.py]"]
node_console["Console"]

node_user -.->|"runs"| node_simulator
node_simulator -->|"creates and operates"| node_account
node_simulator -->|"prints balance"| node_console

click node_simulator "https://github.com/dankim94/bank-simulator/blob/main/Bank_Simulator.py"
click node_account "https://github.com/dankim94/bank-simulator/blob/main/Bank_Account.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_user toneBlue
class node_simulator,node_account toneTeal
class node_console toneIndigo
```

## Components

### Other components

- **User**
- [Bank Simulator](https://github.com/dankim94/bank-simulator/blob/main/Bank_Simulator.py): `Bank_Simulator.py`
- [Account](https://github.com/dankim94/bank-simulator/blob/main/Bank_Account.py): `Bank_Account.py`
- **Console**

## Connections

- User → Bank Simulator: runs
- Bank Simulator → Account: creates and operates (evidence: `Bank_Simulator.py`)
- Bank Simulator → Console: prints balance (evidence: `Bank_Simulator.py`)
