# carfalt/guessing-game architecture

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

## Overview

A small console guessing game. The user enters guesses or “quit”; `Main` generates a number from 0–100, checks the input, and prints prompts or results. These responsibilities are implemented together, so the graph keeps them in one runtime component.

Main entry points: [`src/Main.java`](https://github.com/carfalt/guessing-game/blob/master/src/Main.java) (Guessing game)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Player"))
node_game["Guessing game<br/>[Main.java]"]

node_user -->|"enters guesses"| node_game
node_game -->|"prints prompts and results"| node_user

click node_game "https://github.com/carfalt/guessing-game/blob/master/src/Main.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_user toneIndigo
class node_game toneTeal
```

## Components

### Other components

- **Player**
- [Guessing game](https://github.com/carfalt/guessing-game/blob/master/src/Main.java): `src/Main.java`

## Connections

- Player → Guessing game: enters guesses (evidence: `src/Main.java`)
- Guessing game → Player: prints prompts and results (evidence: `src/Main.java`)
