# jhon287/arj-multiplication-tables-trainer-cli architecture

> Architecture diagram of the GitHub repository jhon287/arj-multiplication-tables-trainer-cli, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jhon287/arj-multiplication-tables-trainer-cli
- Repository: https://github.com/jhon287/arj-multiplication-tables-trainer-cli

## Overview

This is a Python CLI for practicing multiplication tables through progressively harder belt levels. A user selects a belt (or all belts) and chooses printed questions or a timed quiz. The main entry point selects the belt and prepares a question set; shared utilities generate questions, print or administer them, and report results. Belt definitions and the time limit live in configuration. The runtime evidence is limited to the README and the three indexed source files; tests and packaging are excluded.

Main entry points: [`src/main.py`](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/main.py) (Command entry), [`src/utils.py`](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py) (Timed quiz), [`src/config.py`](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/config.py) (Belt configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI entry"]
  node_cli["Command entry<br/>[main.py]"]
end

subgraph group_practice["Practice flow"]
  node_question_setup["Question setup<br/>[utils.py]"]
  node_question_set["Generated questions<br/>[utils.py]"]
  node_print_mode["Print questions<br/>[utils.py]"]
  node_game["Timed quiz<br/>[utils.py]"]
  node_answer_prompt["Answer prompt<br/>[utils.py]"]
  node_scoring["Results and scoring<br/>[utils.py]"]
end

subgraph group_rules["Belt rules"]
  node_belt_config["Belt configuration<br/>[config.py]"]
end

node_user(("User"))

node_user -->|"selects mode"| node_cli
node_cli -->|"reads options"| node_belt_config
node_cli -->|"requests questions"| node_question_setup
node_question_setup -->|"reads belt rules"| node_belt_config
node_question_setup -->|"generates"| node_question_set
node_cli -->|"prints questions"| node_print_mode
node_cli -->|"starts quiz"| node_game
node_game -->|"requests answers"| node_answer_prompt
node_answer_prompt -->|"prompts"| node_user
node_game -->|"reports results"| node_scoring
node_game -->|"uses questions"| node_question_set

click node_cli "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/main.py"
click node_belt_config "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/config.py"
click node_question_setup "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py"
click node_question_set "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py"
click node_print_mode "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py"
click node_game "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py"
click node_answer_prompt "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py"
click node_scoring "https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.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_cli,node_user toneBlue
class node_question_setup,node_question_set,node_print_mode,node_game,node_answer_prompt,node_scoring toneAmber
class node_belt_config toneMint
```

## Components

### CLI entry

- [Command entry](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/main.py): `src/main.py`

### Practice flow

- [Question setup](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py): `src/utils.py`
- [Generated questions](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py): `src/utils.py`
- [Print questions](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py): `src/utils.py`
- [Timed quiz](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py): `src/utils.py`
- [Answer prompt](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py): `src/utils.py`
- [Results and scoring](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/utils.py): `src/utils.py`

### Belt rules

- [Belt configuration](https://github.com/jhon287/arj-multiplication-tables-trainer-cli/blob/main/src/config.py): `src/config.py`

### Other components

- **User**

## Connections

- User → Command entry: selects mode (evidence: `README.md`)
- Command entry → Belt configuration: reads options (evidence: `src/main.py`)
- Command entry → Question setup: requests questions (evidence: `src/main.py`)
- Question setup → Belt configuration: reads belt rules (evidence: `src/utils.py`)
- Question setup → Generated questions: generates (evidence: `src/utils.py`)
- Command entry → Print questions: prints questions (evidence: `src/main.py`)
- Command entry → Timed quiz: starts quiz (evidence: `src/main.py`)
- Timed quiz → Answer prompt: requests answers (evidence: `src/utils.py`)
- Answer prompt → User: prompts (evidence: `src/utils.py`)
- Timed quiz → Results and scoring: reports results (evidence: `src/utils.py`)
- Timed quiz → Generated questions: uses questions (evidence: `src/utils.py`)
