# rafa-riki/even-or-odd- architecture

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

- Interactive diagram: https://gitdiagram.com/rafa-riki/even-or-odd-
- Repository: https://github.com/rafa-riki/even-or-odd-

## Overview

A small command-line even/odd guessing game. The player enters a guess or exit choice; the script validates it, draws a random number, updates win/loss counters, and prints the outcome. All game behavior is implemented in one file. The randomness relationship is visible through its import and call; no other subsystems are present.

Main entry points: [`even_or_odd.py`](https://github.com/rafa-riki/even-or-odd-/blob/main/even_or_odd.py) (Guessing Game)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_player(("Player"))
node_game["Guessing Game<br/>[even_or_odd.py]"]
node_random["Random Generator"]

node_player -->|"enters guess"| node_game
node_game -->|"prints prompts and results"| node_player
node_game -->|"draws number"| node_random

click node_game "https://github.com/rafa-riki/even-or-odd-/blob/main/even_or_odd.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,node_random toneIndigo
class node_game toneTeal
```

## Components

### Other components

- **Player**
- [Guessing Game](https://github.com/rafa-riki/even-or-odd-/blob/main/even_or_odd.py): `even_or_odd.py`
- **Random Generator**

## Connections

- Player → Guessing Game: enters guess (evidence: `even_or_odd.py`)
- Guessing Game → Player: prints prompts and results (evidence: `even_or_odd.py`)
- Guessing Game → Random Generator: draws number (evidence: `even_or_odd.py`)
