# snevdah/kattistask architecture

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

- Interactive diagram: https://gitdiagram.com/snevdah/kattistask
- Repository: https://github.com/snevdah/kattistask

## Overview

This repository contains three independent Java command-line solutions, not a shared application. Each reads a problem instance from standard input, computes a result, and prints it to standard output. The excerpts show the complete solution logic; the empty README provides no additional product capabilities.

Main entry points: [`dicegame/problemA.java`](https://github.com/snevdah/kattistask/blob/main/dicegame/problemA.java) (Dice comparison), [`imperialmeasurement/problemB.java`](https://github.com/snevdah/kattistask/blob/main/imperialmeasurement/problemB.java) (Unit conversion), [`trainsimulation/problemC.java`](https://github.com/snevdah/kattistask/blob/main/trainsimulation/problemC.java) (Train simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_stdin(("Standard input"))
node_dice["Dice comparison<br/>[problemA.java]"]
node_units["Unit conversion<br/>[problemB.java]"]
node_trains["Train simulation<br/>[problemC.java]"]
node_stdout(("Standard output"))

node_stdin -->|"reads rolls"| node_dice
node_dice -->|"prints winner"| node_stdout
node_stdin -->|"reads measurement"| node_units
node_units -->|"prints conversion"| node_stdout
node_stdin -->|"reads events"| node_trains
node_trains -->|"prints feasibility"| node_stdout

click node_dice "https://github.com/snevdah/kattistask/blob/main/dicegame/problemA.java"
click node_units "https://github.com/snevdah/kattistask/blob/main/imperialmeasurement/problemB.java"
click node_trains "https://github.com/snevdah/kattistask/blob/main/trainsimulation/problemC.java"

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_stdin,node_stdout toneIndigo
class node_dice,node_units,node_trains toneTeal
```

## Components

### Other components

- **Standard input**
- [Dice comparison](https://github.com/snevdah/kattistask/blob/main/dicegame/problemA.java): `dicegame/problemA.java`
- [Unit conversion](https://github.com/snevdah/kattistask/blob/main/imperialmeasurement/problemB.java): `imperialmeasurement/problemB.java`
- [Train simulation](https://github.com/snevdah/kattistask/blob/main/trainsimulation/problemC.java): `trainsimulation/problemC.java`
- **Standard output**

## Connections

- Standard input → Dice comparison: reads rolls (evidence: `dicegame/problemA.java`)
- Dice comparison → Standard output: prints winner (evidence: `dicegame/problemA.java`)
- Standard input → Unit conversion: reads measurement (evidence: `imperialmeasurement/problemB.java`)
- Unit conversion → Standard output: prints conversion (evidence: `imperialmeasurement/problemB.java`)
- Standard input → Train simulation: reads events (evidence: `trainsimulation/problemC.java`)
- Train simulation → Standard output: prints feasibility (evidence: `trainsimulation/problemC.java`)
