# vishnuprabu/flames architecture

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

- Interactive diagram: https://gitdiagram.com/vishnuprabu/flames
- Repository: https://github.com/vishnuprabu/flames

## Overview

Flames.c is a small interactive C program that asks for two names, compares their letters, applies the FLAMES elimination rules, and prints relationship results. The workflow and its helper functions are all implemented in one source file; the graph separates its meaningful stages without implying separate modules.

Main entry points: [`Flames.c`](https://github.com/vishnuprabu/flames/blob/main/Flames.c) (Program loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_main["Program loop<br/>[Flames.c]"]
node_name_entry["Name entry<br/>[Flames.c]"]
node_letter_match["Letter matching<br/>[Flames.c]"]
node_flames_elimination["FLAMES elimination<br/>[Flames.c]"]
node_result_messages["Result messages<br/>[Flames.c]"]
node_delay["Timed pauses<br/>[Flames.c]"]
node_terminal["Terminal"]

node_user -->|"starts"| node_main
node_main -->|"runs round"| node_name_entry
node_name_entry -->|"prompts and reads"| node_terminal
node_name_entry -->|"provides names"| node_letter_match
node_letter_match -->|"provides count"| node_flames_elimination
node_flames_elimination -->|"selects outcomes"| node_result_messages
node_result_messages -->|"prints results"| node_terminal
node_main -->|"prompts repeat"| node_terminal
node_flames_elimination -->|"calls pauses"| node_delay
node_result_messages -->|"calls pause"| node_delay

click node_main "https://github.com/vishnuprabu/flames/blob/main/Flames.c"
click node_name_entry "https://github.com/vishnuprabu/flames/blob/main/Flames.c"
click node_letter_match "https://github.com/vishnuprabu/flames/blob/main/Flames.c"
click node_flames_elimination "https://github.com/vishnuprabu/flames/blob/main/Flames.c"
click node_result_messages "https://github.com/vishnuprabu/flames/blob/main/Flames.c"
click node_delay "https://github.com/vishnuprabu/flames/blob/main/Flames.c"

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_main,node_name_entry,node_letter_match,node_flames_elimination,node_result_messages,node_delay toneTeal
class node_terminal toneIndigo
```

## Components

### Other components

- **User**
- [Program loop](https://github.com/vishnuprabu/flames/blob/main/Flames.c): `Flames.c`
- [Name entry](https://github.com/vishnuprabu/flames/blob/main/Flames.c): `Flames.c`
- [Letter matching](https://github.com/vishnuprabu/flames/blob/main/Flames.c): `Flames.c`
- [FLAMES elimination](https://github.com/vishnuprabu/flames/blob/main/Flames.c): `Flames.c`
- [Result messages](https://github.com/vishnuprabu/flames/blob/main/Flames.c): `Flames.c`
- [Timed pauses](https://github.com/vishnuprabu/flames/blob/main/Flames.c): `Flames.c`
- **Terminal**

## Connections

- User → Program loop: starts (evidence: `Flames.c`)
- Program loop → Name entry: runs round (evidence: `Flames.c`)
- Name entry → Terminal: prompts and reads (evidence: `Flames.c`)
- Name entry → Letter matching: provides names (evidence: `Flames.c`)
- Letter matching → FLAMES elimination: provides count (evidence: `Flames.c`)
- FLAMES elimination → Result messages: selects outcomes (evidence: `Flames.c`)
- Result messages → Terminal: prints results (evidence: `Flames.c`)
- Program loop → Terminal: prompts repeat (evidence: `Flames.c`)
- FLAMES elimination → Timed pauses: calls pauses (evidence: `Flames.c`)
- Result messages → Timed pauses: calls pause (evidence: `Flames.c`)
