# fabiomorena/snowman-meltdown architecture

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

- Interactive diagram: https://gitdiagram.com/fabiomorena/snowman-meltdown
- Repository: https://github.com/fabiomorena/snowman-meltdown

## Overview

##### Project type and purpose
- This is a small command-line “Snowman” (Hangman-style) game written in Python. The user runs snowman.py, which orchestrates game play; ascii_art.py renders the snowman stages; and game_logic.py drives the core rules and state.

##### File structure
- Top level:
- snowman.py       – entry point / CLI controller
- game_logic.py    – game state, word selection, guess handling, win/loss detection
- ascii_art.py     – functions that return or print the ASCII snowman at each stage
- README.md        – project description (very brief)
- .gitignore

##### Final advice
- Be detailed: even in a small project, explicitly show each module and data flow.
- Every interaction: user input, state update, rendering call, and console output.

## Diagram (Mermaid)

```mermaid
graph TB
    %% Nodes
    User["User"]:::user
    CLI["snowman.py (CLI Controller)"]:::cli
    Logic["game_logic.py (Core Logic)"]:::core
    Art["ascii_art.py (Presentation)"]:::pres
    Data[(Word List / Data)]:::data

    %% Connections
    User -->|"input guess"| CLI
    CLI -->|"process guess"| Logic
    Logic -->|"state result"| CLI
    CLI -->|"render stage"| Art
    Art -->|"ascii output"| CLI
    Logic -->|"load words"| Data

    %% Click Events
    click CLI "https://github.com/fabiomorena/snowman-meltdown/blob/main/snowman.py"
    click Logic "https://github.com/fabiomorena/snowman-meltdown/blob/main/game_logic.py"
    click Art "https://github.com/fabiomorena/snowman-meltdown/blob/main/ascii_art.py"

    %% Styles
    classDef user fill:#ffffff,stroke:#333,stroke-width:1px
    classDef cli fill:#d4f8d4,stroke:#333,stroke-width:1px
    classDef core fill:#d0e1f9,stroke:#333,stroke-width:1px
    classDef pres fill:#fff4b2,stroke:#333,stroke-width:1px
    classDef data fill:#e0e0e0,stroke:#000,stroke-width:1px
```
