# greeneggsandhamseuss/fun architecture

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

- Interactive diagram: https://gitdiagram.com/greeneggsandhamseuss/fun
- Repository: https://github.com/greeneggsandhamseuss/fun

## Overview

This repository is a collection of independent beginner-scale Python scripts, not one integrated application. Its visible workflows are a console slot machine, a two-player Tic-Tac-Toe game, a short greeting interaction, and a Turtle drawing. The tree also contains an uninspected file named `number guessing game`; its behavior and connections are unknown. The graph shows only relationships visible in the excerpts; there is no README or evidence of shared state between scripts.

Main entry points: [`lotto.py`](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py) (Spin and settle), [`tictactoe.py`](https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py) (Tic-Tac-Toe loop), [`bored.py`](https://github.com/greeneggsandhamseuss/fun/blob/main/bored.py) (Greeting script)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Console user"))
node_lotto_main["Slot game loop<br/>[lotto.py]"]
node_lotto_input["Bet inputs<br/>[lotto.py]"]
node_lotto_spin["Spin and settle<br/>[lotto.py]"]
node_lotto_generate["Generate reels<br/>[lotto.py]"]
node_lotto_render["Print reels<br/>[lotto.py]"]
node_lotto_winnings["Check winnings<br/>[lotto.py]"]
node_tic_main["Tic-Tac-Toe loop<br/>[tictactoe.py]"]
node_tic_draw["Draw board<br/>[tictactoe.py]"]
node_tic_check["Check winner<br/>[tictactoe.py]"]
node_tic_rule["Compare line<br/>[tictactoe.py]"]
node_bored["Greeting script<br/>[bored.py]"]
node_turtle["Turtle drawing<br/>[turtle test.py]"]
node_guessing["Uninspected script"]

node_user -->|"plays via console"| node_lotto_main
node_lotto_main -->|"gets deposit"| node_lotto_input
node_lotto_main -->|"starts spin"| node_lotto_spin
node_lotto_spin -->|"gets bet settings"| node_lotto_input
node_lotto_spin -->|"generates reels"| node_lotto_generate
node_lotto_spin -->|"prints reels"| node_lotto_render
node_lotto_spin -->|"checks lines"| node_lotto_winnings
node_user -->|"plays via console"| node_tic_main
node_tic_main -->|"draws board"| node_tic_draw
node_tic_main -->|"checks move"| node_tic_check
node_tic_check -->|"checks each line"| node_tic_rule
node_user -->|"answers prompts"| node_bored

click node_lotto_main "https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py"
click node_lotto_input "https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py"
click node_lotto_spin "https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py"
click node_lotto_generate "https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py"
click node_lotto_render "https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py"
click node_lotto_winnings "https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py"
click node_tic_main "https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py"
click node_tic_draw "https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py"
click node_tic_check "https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py"
click node_tic_rule "https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py"
click node_bored "https://github.com/greeneggsandhamseuss/fun/blob/main/bored.py"
click node_turtle "https://github.com/greeneggsandhamseuss/fun/blob/main/turtle%20test.py"
click node_guessing "https://github.com/greeneggsandhamseuss/fun/blob/main/number%20guessing%20game"

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 toneBlue
class node_lotto_main,node_lotto_input,node_lotto_spin,node_lotto_generate,node_lotto_render,node_lotto_winnings,node_tic_main,node_tic_draw,node_tic_check,node_tic_rule,node_bored,node_turtle,node_guessing toneTeal
```

## Components

### Other components

- **Console user**
- [Slot game loop](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py): `lotto.py`
- [Bet inputs](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py): `lotto.py`
- [Spin and settle](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py): `lotto.py`
- [Generate reels](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py): `lotto.py`
- [Print reels](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py): `lotto.py`
- [Check winnings](https://github.com/greeneggsandhamseuss/fun/blob/main/lotto.py): `lotto.py`
- [Tic-Tac-Toe loop](https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py): `tictactoe.py`
- [Draw board](https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py): `tictactoe.py`
- [Check winner](https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py): `tictactoe.py`
- [Compare line](https://github.com/greeneggsandhamseuss/fun/blob/main/tictactoe.py): `tictactoe.py`
- [Greeting script](https://github.com/greeneggsandhamseuss/fun/blob/main/bored.py): `bored.py`
- [Turtle drawing](https://github.com/greeneggsandhamseuss/fun/blob/main/turtle%20test.py): `turtle test.py`
- [Uninspected script](https://github.com/greeneggsandhamseuss/fun/blob/main/number%20guessing%20game): `number guessing game`

## Connections

- Console user → Slot game loop: plays via console (evidence: `lotto.py`)
- Slot game loop → Bet inputs: gets deposit (evidence: `lotto.py`)
- Slot game loop → Spin and settle: starts spin (evidence: `lotto.py`)
- Spin and settle → Bet inputs: gets bet settings (evidence: `lotto.py`)
- Spin and settle → Generate reels: generates reels (evidence: `lotto.py`)
- Spin and settle → Print reels: prints reels (evidence: `lotto.py`)
- Spin and settle → Check winnings: checks lines (evidence: `lotto.py`)
- Console user → Tic-Tac-Toe loop: plays via console (evidence: `tictactoe.py`)
- Tic-Tac-Toe loop → Draw board: draws board (evidence: `tictactoe.py`)
- Tic-Tac-Toe loop → Check winner: checks move (evidence: `tictactoe.py`)
- Check winner → Compare line: checks each line (evidence: `tictactoe.py`)
- Console user → Greeting script: answers prompts (evidence: `bored.py`)
