# junhao-luo/20261127 architecture

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

- Interactive diagram: https://gitdiagram.com/junhao-luo/20261127
- Repository: https://github.com/junhao-luo/20261127

## Overview

This repository contains two independent, small command-line programs. The cup-pyramid workflow reads teams and cup donations, totals cups per team, computes each team’s stack height and remainder, then prints a report. The life-path workflow reads names and birthdays, computes each person’s life number by repeatedly summing digits, counts people by number, and prints both results. The graph shows only relationships visible in the supplied source; there is no README or evidence of shared state or external services.

Main entry points: [`cup_pyramid/main.py`](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/main.py) (CLI workflow), [`life_path/main.py`](https://github.com/junhao-luo/20261127/blob/main/life_path/main.py) (CLI workflow), [`cup_pyramid/report.py`](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/report.py) (Team report), [`cup_pyramid/height.py`](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/height.py) (Stack height)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cup_pyramid["Cup pyramid"]
  node_cup_main["CLI workflow<br/>[main.py]"]
  node_cup_builder["Cup totals<br/>[cups.py]"]
  node_cup_report["Team report<br/>[report.py]"]
  node_cup_height["Stack height<br/>[height.py]"]
  node_cup_math["Cup requirement<br/>[pyramid.py]"]
end

subgraph group_life_path["Life path"]
  node_life_main["CLI workflow<br/>[main.py]"]
  node_life_people["Person numbers<br/>[people.py]"]
  node_life_number["Life number<br/>[lifenum.py]"]
  node_life_digits["Digit sum<br/>[digits.py]"]
  node_life_tally["Number counts<br/>[tally.py]"]
end

node_user(("User"))

node_user -->|"provides input"| node_cup_main
node_cup_main -->|"builds totals"| node_cup_builder
node_cup_main -->|"requests report"| node_cup_report
node_cup_report -->|"gets height"| node_cup_height
node_cup_report -->|"gets remainder"| node_cup_math
node_cup_height -->|"checks requirement"| node_cup_math
node_cup_main -->|"prints report"| node_user
node_user -->|"provides input"| node_life_main
node_life_main -->|"builds numbers"| node_life_people
node_life_main -->|"counts numbers"| node_life_tally
node_life_people -->|"calculates for birthdays"| node_life_number
node_life_number -->|"sums digits"| node_life_digits
node_life_main -->|"prints results"| node_user

click node_cup_main "https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/main.py"
click node_cup_builder "https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/cups.py"
click node_cup_report "https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/report.py"
click node_cup_height "https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/height.py"
click node_cup_math "https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/pyramid.py"
click node_life_main "https://github.com/junhao-luo/20261127/blob/main/life_path/main.py"
click node_life_people "https://github.com/junhao-luo/20261127/blob/main/life_path/people.py"
click node_life_number "https://github.com/junhao-luo/20261127/blob/main/life_path/lifenum.py"
click node_life_digits "https://github.com/junhao-luo/20261127/blob/main/life_path/digits.py"
click node_life_tally "https://github.com/junhao-luo/20261127/blob/main/life_path/tally.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_cup_main,node_cup_builder,node_cup_report,node_cup_height,node_cup_math,node_user toneBlue
class node_life_main,node_life_people,node_life_number,node_life_digits,node_life_tally toneAmber
```

## Components

### Cup pyramid

- [CLI workflow](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/main.py): `cup_pyramid/main.py`
- [Cup totals](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/cups.py): `cup_pyramid/cups.py`
- [Team report](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/report.py): `cup_pyramid/report.py`
- [Stack height](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/height.py): `cup_pyramid/height.py`
- [Cup requirement](https://github.com/junhao-luo/20261127/blob/main/cup_pyramid/pyramid.py): `cup_pyramid/pyramid.py`

### Life path

- [CLI workflow](https://github.com/junhao-luo/20261127/blob/main/life_path/main.py): `life_path/main.py`
- [Person numbers](https://github.com/junhao-luo/20261127/blob/main/life_path/people.py): `life_path/people.py`
- [Life number](https://github.com/junhao-luo/20261127/blob/main/life_path/lifenum.py): `life_path/lifenum.py`
- [Digit sum](https://github.com/junhao-luo/20261127/blob/main/life_path/digits.py): `life_path/digits.py`
- [Number counts](https://github.com/junhao-luo/20261127/blob/main/life_path/tally.py): `life_path/tally.py`

### Other components

- **User**

## Connections

- User → CLI workflow: provides input (evidence: `cup_pyramid/main.py`)
- CLI workflow → Cup totals: builds totals (evidence: `cup_pyramid/main.py`)
- CLI workflow → Team report: requests report (evidence: `cup_pyramid/main.py`)
- Team report → Stack height: gets height (evidence: `cup_pyramid/report.py`)
- Team report → Cup requirement: gets remainder (evidence: `cup_pyramid/report.py`)
- Stack height → Cup requirement: checks requirement (evidence: `cup_pyramid/height.py`)
- CLI workflow → User: prints report (evidence: `cup_pyramid/main.py`)
- User → CLI workflow: provides input (evidence: `life_path/main.py`)
- CLI workflow → Person numbers: builds numbers (evidence: `life_path/main.py`)
- CLI workflow → Number counts: counts numbers (evidence: `life_path/main.py`)
- Person numbers → Life number: calculates for birthdays (evidence: `life_path/people.py`)
- Life number → Digit sum: sums digits (evidence: `life_path/lifenum.py`)
- CLI workflow → User: prints results (evidence: `life_path/main.py`)
