# window794/oyabun-darts architecture

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

- Interactive diagram: https://gitdiagram.com/window794/oyabun-darts
- Repository: https://github.com/window794/oyabun-darts

## Overview

Oyabun Darts is a browser-based joke darts game. Players choose one of three modes: a daily target throw, eight-round count-up, or 501. The documented gameplay uses a 20-segment board; count-up and 501 let players aim by tapping it. Scoring, target multipliers, busts, recommendations, and awards are distinct game rules. The README is the only implementation evidence available, so relationships below reflect documented behavior; all implementation nodes point to the sole source file, index.html.

Main entry points: [`index.html`](https://github.com/window794/oyabun-darts/blob/main/index.html) (Count-up)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game_modes["Game modes"]
  node_daily["Daily target<br/>[index.html]"]
  node_countup["Count-up<br/>[index.html]"]
  node_game501["501 game<br/>[index.html]"]
end

subgraph group_gameplay["Board and gameplay"]
  node_dartboard["Dartboard<br/>[index.html]"]
  node_thrower["Thrower and aim<br/>[index.html]"]
  node_scoring["Scoring rules<br/>[index.html]"]
end

subgraph group_results["Targets and results"]
  node_target_roster["Fictional companies<br/>[index.html]"]
  node_target_reveal["Target reveal<br/>[index.html]"]
  node_awards["Darts awards<br/>[index.html]"]
  node_finish_rules["501 finish rules<br/>[index.html]"]
end

node_player(("Player"))

node_player -->|"chooses"| node_daily
node_player -->|"chooses"| node_countup
node_player -->|"chooses"| node_game501
node_player -->|"taps to aim"| node_dartboard
node_daily -->|"throws on"| node_dartboard
node_daily -->|"selects target"| node_target_roster
node_daily -->|"reveals result"| node_target_reveal
node_countup -->|"throws on"| node_dartboard
node_countup -->|"may use"| node_thrower
node_countup -->|"totals points"| node_scoring
node_countup -->|"awards"| node_awards
node_game501 -->|"throws on"| node_dartboard
node_game501 -->|"aims throws"| node_thrower
node_game501 -->|"updates remainder"| node_scoring
node_game501 -->|"checks finish"| node_finish_rules
node_scoring -->|"classifies throws"| node_awards

click node_daily "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_countup "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_game501 "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_dartboard "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_thrower "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_scoring "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_target_roster "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_target_reveal "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_awards "https://github.com/window794/oyabun-darts/blob/main/index.html"
click node_finish_rules "https://github.com/window794/oyabun-darts/blob/main/index.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_daily,node_countup,node_game501 toneBlue
class node_dartboard,node_thrower,node_scoring toneAmber
class node_target_roster,node_target_reveal,node_awards,node_finish_rules toneMint
class node_player toneIndigo
```

## Components

### Game modes

- [Daily target](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [Count-up](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [501 game](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`

### Board and gameplay

- [Dartboard](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [Thrower and aim](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [Scoring rules](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`

### Targets and results

- [Fictional companies](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [Target reveal](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [Darts awards](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`
- [501 finish rules](https://github.com/window794/oyabun-darts/blob/main/index.html): `index.html`

### Other components

- **Player**

## Connections

- Player → Daily target: chooses (evidence: `README.md`)
- Player → Count-up: chooses (evidence: `README.md`)
- Player → 501 game: chooses (evidence: `README.md`)
- Player → Dartboard: taps to aim (evidence: `README.md`)
- Daily target → Dartboard: throws on (evidence: `README.md`)
- Daily target → Fictional companies: selects target (evidence: `README.md`)
- Daily target → Target reveal: reveals result (evidence: `README.md`)
- Count-up → Dartboard: throws on (evidence: `README.md`)
- Count-up → Thrower and aim: may use (evidence: `README.md`)
- Count-up → Scoring rules: totals points (evidence: `README.md`)
- Count-up → Darts awards: awards (evidence: `README.md`)
- 501 game → Dartboard: throws on (evidence: `README.md`)
- 501 game → Thrower and aim: aims throws (evidence: `README.md`)
- 501 game → Scoring rules: updates remainder (evidence: `README.md`)
- 501 game → 501 finish rules: checks finish (evidence: `README.md`)
- Scoring rules → Darts awards: classifies throws (evidence: `README.md`)
