# nexusifyapi/chess-bdfd architecture

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

## Overview

This repository packages a deprecated BDFD-based, 1v1 Discord chess game as localized command and interaction files, rather than as a conventional application codebase. The documented workflow starts with a player’s `!chess` command, uses an external chess API for move validation and board rendering, and stores game state in BDFD’s `chess_state` variable. The README also documents game setup, interaction features, and six language variants. No source excerpts were provided, so edges reflect only relationships stated in the README.

Main entry points: [`English/Chess_Command.md`](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md) (Chess command), [`English/Callback 1 ($onInteraction).md`](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Callback%201%20(%24onInteraction).md) (Interaction callback 1), [`English/Callback 2 ($onInteraction).md`](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Callback%202%20(%24onInteraction).md) (Interaction callback 2)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Chess Gameplay"]
  node_main_command["Chess command<br/>[Chess_Command.md]"]
  node_callback_one["Interaction callback 1"]
  node_callback_two["Interaction callback 2"]
  node_board_themes["Board themes<br/>[Chess_Command.md]"]
  node_game_actions["Game actions<br/>[Chess_Command.md]"]
  node_game_rules["Chess rules<br/>[Chess_Command.md]"]
end

subgraph group_commands["BDFD Commands"]
  node_localized_commands["Localized commands"]
end

subgraph group_state["State and API"]
  node_chess_state[("Per-user game state")]
  node_chess_api["Chess API"]
end

node_player(("Discord player"))

node_player -->|"starts game"| node_main_command
node_main_command -->|"validates moves, renders board"| node_chess_api
node_main_command -->|"stores game state"| node_chess_state
node_player -->|"uses interactions"| node_callback_one
node_player -->|"uses interactions"| node_callback_two

click node_localized_commands "https://github.com/nexusifyapi/chess-bdfd/tree/main/English"
click node_main_command "https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md"
click node_callback_one "https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Callback%201%20(%24onInteraction).md"
click node_callback_two "https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Callback%202%20(%24onInteraction).md"
click node_board_themes "https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md"
click node_game_actions "https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md"
click node_game_rules "https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md"

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_main_command,node_callback_one,node_callback_two,node_board_themes,node_game_actions,node_game_rules toneBlue
class node_localized_commands toneAmber
class node_chess_state,node_chess_api toneMint
class node_player toneIndigo
```

## Components

### Chess Gameplay

- [Chess command](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md): `English/Chess_Command.md`
- [Interaction callback 1](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Callback%201%20(%24onInteraction).md): `English/Callback 1 ($onInteraction).md`
- [Interaction callback 2](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Callback%202%20(%24onInteraction).md): `English/Callback 2 ($onInteraction).md`
- [Board themes](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md): `English/Chess_Command.md`
- [Game actions](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md): `English/Chess_Command.md`
- [Chess rules](https://github.com/nexusifyapi/chess-bdfd/blob/main/English/Chess_Command.md): `English/Chess_Command.md`

### BDFD Commands

- [Localized commands](https://github.com/nexusifyapi/chess-bdfd/tree/main/English): `English`

### State and API

- **Per-user game state**
- **Chess API**

### Other components

- **Discord player**

## Connections

- Discord player → Chess command: starts game (evidence: `README.md`)
- Chess command → Chess API: validates moves, renders board (evidence: `README.md`)
- Chess command → Per-user game state: stores game state (evidence: `README.md`)
- Discord player → Interaction callback 1: uses interactions (evidence: `README.md`)
- Discord player → Interaction callback 2: uses interactions (evidence: `README.md`)
