# tekyo23/number-match architecture

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

- Interactive diagram: https://gitdiagram.com/tekyo23/number-match
- Repository: https://github.com/tekyo23/number-match

## Overview

This is a Java Swing recreation of Number Match. The visible workflow is: the player chooses board dimensions and lives, the app creates a randomized board, and mouse selections are checked as matches; valid pairs update the board and score while invalid selections cost a life. Buttons also request one suggestion, list all possible moves, or add rows. Source excerpts show these responsibilities, but omit parts of Tablero.java, so detailed internal call relationships are limited to those documented or visible.

Main entry points: [`Tablero.java`](https://github.com/tekyo23/number-match/blob/main/Tablero.java) (Game Board), [`TestTablero.java`](https://github.com/tekyo23/number-match/blob/main/TestTablero.java) (App Launcher), [`resources`](https://github.com/tekyo23/number-match/tree/main/resources) (Game Images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Swing Application"]
  node_launcher["App Launcher<br/>[TestTablero.java]"]
  node_resources["Game Images"]
end

subgraph group_game["Number Match Gameplay"]
  node_board["Game Board<br/>[Tablero.java]"]
end

node_player(("Player"))

node_player -->|"sets options"| node_launcher
node_launcher -->|"creates"| node_board
node_launcher -->|"loads images"| node_resources
node_player -->|"selects cells"| node_board
node_board -->|"checks matches"| node_board
node_board -->|"updates score"| node_board
node_board -->|"shows suggestions"| node_board
node_board -->|"adds rows"| node_board

click node_launcher "https://github.com/tekyo23/number-match/blob/main/TestTablero.java"
click node_board "https://github.com/tekyo23/number-match/blob/main/Tablero.java"
click node_resources "https://github.com/tekyo23/number-match/tree/main/resources"

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_launcher,node_resources toneBlue
class node_board toneAmber
class node_player toneIndigo
```

## Components

### Swing Application

- [App Launcher](https://github.com/tekyo23/number-match/blob/main/TestTablero.java): `TestTablero.java`
- [Game Images](https://github.com/tekyo23/number-match/tree/main/resources): `resources`

### Number Match Gameplay

- [Game Board](https://github.com/tekyo23/number-match/blob/main/Tablero.java): `Tablero.java`

### Other components

- **Player**

## Connections

- Player → App Launcher: sets options (evidence: `TestTablero.java`)
- App Launcher → Game Board: creates (evidence: `TestTablero.java`)
- App Launcher → Game Images: loads images (evidence: `TestTablero.java`)
- Player → Game Board: selects cells (evidence: `Tablero.java`)
- Game Board → Game Board: checks matches (evidence: `Tablero.java`)
- Game Board → Game Board: updates score (evidence: `Tablero.java`)
- Game Board → Game Board: shows suggestions (evidence: `Tablero.java`)
- Game Board → Game Board: adds rows (evidence: `Tablero.java`)
