# hawzhinrazi/210 architecture

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

## Overview

Project 210 is a button-and-light sequence game. Its documented logic creates a random pattern, displays each round with LEDs and buzzer, then checks the player’s button presses and signals a mistake. The README documents these stages but provides no source excerpts, so relationships shown here are limited to those flowcharts; the implementation path is the sketch file.

Main entry points: [`210.ino`](https://github.com/hawzhinrazi/210/blob/main/210.ino) (Show pattern)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_pattern["Pattern creation<br/>[210.ino]"]
node_state["Pattern and round<br/>[210.ino]"]
node_display["Show pattern<br/>[210.ino]"]
node_check["Check input<br/>[210.ino]"]
node_player(("Player"))
node_leds["LEDs"]
node_buzzer["Buzzer"]

node_pattern -->|"adds values"| node_state
node_display -->|"reads pattern"| node_state
node_display -->|"lights LEDs"| node_leds
node_display -->|"plays tones"| node_buzzer
node_player -->|"presses buttons"| node_check
node_check -->|"compares input"| node_state
node_check -->|"signals failure"| node_buzzer

click node_pattern "https://github.com/hawzhinrazi/210/blob/main/210.ino"
click node_state "https://github.com/hawzhinrazi/210/blob/main/210.ino"
click node_display "https://github.com/hawzhinrazi/210/blob/main/210.ino"
click node_check "https://github.com/hawzhinrazi/210/blob/main/210.ino"

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_pattern,node_state,node_display,node_check toneTeal
class node_player,node_leds,node_buzzer toneIndigo
```

## Components

### Other components

- [Pattern creation](https://github.com/hawzhinrazi/210/blob/main/210.ino): `210.ino`
- [Pattern and round](https://github.com/hawzhinrazi/210/blob/main/210.ino): `210.ino`
- [Show pattern](https://github.com/hawzhinrazi/210/blob/main/210.ino): `210.ino`
- [Check input](https://github.com/hawzhinrazi/210/blob/main/210.ino): `210.ino`
- **Player**
- **LEDs**
- **Buzzer**

## Connections

- Pattern creation → Pattern and round: adds values (evidence: `README.md`)
- Show pattern → Pattern and round: reads pattern (evidence: `README.md`)
- Show pattern → LEDs: lights LEDs (evidence: `README.md`)
- Show pattern → Buzzer: plays tones (evidence: `README.md`)
- Player → Check input: presses buttons (evidence: `README.md`)
- Check input → Pattern and round: compares input (evidence: `README.md`)
- Check input → Buzzer: signals failure (evidence: `README.md`)
