# jd862/probabilities architecture

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

## Overview

Probabilities is a small Streamlit app for estimating the chance of rolling selected Catan numbers across unblocked settlements. The player selects Catan, configures resource tiles and settlement counts, chooses wanted resources, and submits; the app totals the two-dice probabilities for matching tiles and displays the result. All runtime behavior is in main.py; the graph separates the form, calculation, and displayed result. Evidence is limited to the README and the single excerpted source file.

Main entry points: [`main.py`](https://github.com/jd862/probabilities/blob/main/main.py) (Catan form)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_player(("Player"))
node_catan_form["Catan form<br/>[main.py]"]
node_dice_probability["Dice probability<br/>[main.py]"]
node_probability_result["Probability result<br/>[main.py]"]

node_player -->|"configures"| node_catan_form
node_catan_form -->|"calls"| node_dice_probability
node_catan_form -->|"displays"| node_probability_result

click node_catan_form "https://github.com/jd862/probabilities/blob/main/main.py"
click node_dice_probability "https://github.com/jd862/probabilities/blob/main/main.py"
click node_probability_result "https://github.com/jd862/probabilities/blob/main/main.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_player toneIndigo
class node_catan_form,node_dice_probability,node_probability_result toneTeal
```

## Components

### Other components

- **Player**
- [Catan form](https://github.com/jd862/probabilities/blob/main/main.py): `main.py`
- [Dice probability](https://github.com/jd862/probabilities/blob/main/main.py): `main.py`
- [Probability result](https://github.com/jd862/probabilities/blob/main/main.py): `main.py`

## Connections

- Player → Catan form: configures (evidence: `main.py`)
- Catan form → Dice probability: calls (evidence: `main.py`)
- Catan form → Probability result: displays (evidence: `main.py`)
