# syalpratama/kartu-pasangan architecture

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

- Interactive diagram: https://gitdiagram.com/syalpratama/kartu-pasangan
- Repository: https://github.com/syalpratama/kartu-pasangan

## Overview

Kartu Pertanyaan Pasangan is a small browser-based conversation-card game implemented in one HTML file. Players reveal questions in batches of 10, advance after opening each batch, and can reshuffle to restart; after all 30 questions, a closing panel offers another playthrough. The README documents these behaviors, but no source excerpt was provided, so the graph shows documented user interactions rather than internal call relationships.

Main entry points: [`kartu-pasangan.html`](https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html) (Card game)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_player["Card game"]
node_questions["Question cards"]
node_rounds["Round progression"]
node_shuffle["Shuffle and restart"]
node_ending["Completion panel"]
node_player_user(("Player"))

node_player_user -->|"opens in browser"| node_player
node_player_user -->|"reveals cards"| node_questions
node_player_user -->|"advances rounds"| node_rounds
node_player_user -->|"reshuffles deck"| node_shuffle
node_player_user -->|"restarts game"| node_ending

click node_player "https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html"
click node_questions "https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html"
click node_rounds "https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html"
click node_shuffle "https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html"
click node_ending "https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html"

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_player,node_questions,node_rounds,node_shuffle,node_ending toneTeal
class node_player_user toneIndigo
```

## Components

### Other components

- [Card game](https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html): `kartu-pasangan.html`
- [Question cards](https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html): `kartu-pasangan.html`
- [Round progression](https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html): `kartu-pasangan.html`
- [Shuffle and restart](https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html): `kartu-pasangan.html`
- [Completion panel](https://github.com/syalpratama/kartu-pasangan/blob/main/kartu-pasangan.html): `kartu-pasangan.html`
- **Player**

## Connections

- Player → Card game: opens in browser (evidence: `README.md`)
- Player → Question cards: reveals cards (evidence: `README.md`)
- Player → Round progression: advances rounds (evidence: `README.md`)
- Player → Shuffle and restart: reshuffles deck (evidence: `README.md`)
- Player → Completion panel: restarts game (evidence: `README.md`)
