# silentbenjininja/console-games architecture

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

- Interactive diagram: https://gitdiagram.com/silentbenjininja/console-games
- Repository: https://github.com/silentbenjininja/console-games

## Overview

This repository is a collection of independent C# console games, challenges, and small demonstrations, not one shared application. The usual user workflow is to interact with a game through the terminal and see its state rendered there; the README establishes CLI rendering as the collection’s purpose. The sampled maze project has a clearer internal flow: its loop sets up, generates, and solves mazes, using node tracking and drawing helpers. Other projects remain separate because no shared runtime or cross-project calls are shown. Some internal details are unsampled, so their links are omitted.

Main entry points: [`Challenge - Maze Generation/Maze.cs`](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Maze.cs) (Maze generation and solver), [`Challenge - Maze Generation/Helper.cs`](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Helper.cs) (Maze drawing and timing), [`Challenge - Maze Generation/Program.cs`](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Program.cs) (Maze runner), [`Challenge - Maze Generation/CrossNodeSet.cs`](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/CrossNodeSet.cs) (Cross-node tracking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_games["Console Games"]
  node_game2048["2048<br/>[Program.cs]"]
  node_sokoban["Sokoban<br/>[Program.cs]"]
  node_snake["Snake<br/>[Program.cs]"]
  node_tetris["Tetris<br/>[Program.cs]"]
  node_mastermind["Mastermind<br/>[Program.cs]"]
  node_tictactoe["Tic Tac Toe<br/>[Program.cs]"]
  node_tictactoemin["Minimal Tic Tac Toe<br/>[Program.cs]"]
end

subgraph group_challenges["Challenges"]
  node_gameoflife["Game of Life<br/>[Program.cs]"]
  node_mazeapp["Maze runner<br/>[Program.cs]"]
  node_maze["Maze generation and solver<br/>[Maze.cs]"]
  node_nodes["Cross-node tracking<br/>[CrossNodeSet.cs]"]
  node_tunneler["Tunnel steps<br/>[Tunneler.cs]"]
  node_mazehelper["Maze drawing and timing<br/>[Helper.cs]"]
  node_mazeconfig["Maze settings<br/>[MazeConfig.cs]"]
  node_crossnode["Cross node<br/>[CrossNode.cs]"]
  node_int2["Grid coordinates<br/>[Int2.cs]"]
  node_colors["Color mapping<br/>[ColorConfig.cs]"]
  node_pathfinding["Pathfinding challenge<br/>[Program.cs]"]
end

subgraph group_demos["Demos"]
  node_ascii["ASCII art renderer<br/>[Program.cs]"]
  node_colorstest["Color test<br/>[Program.cs]"]
  node_tick["Game tick boilerplate<br/>[Program.cs]"]
  node_stencil["Games stencil<br/>[Program.cs]"]
  node_soundtest["Sound test<br/>[Program.cs]"]
end

node_player(("Terminal user"))

node_player -->|"plays in CLI"| node_game2048
node_player -->|"plays in CLI"| node_sokoban
node_player -->|"plays in CLI"| node_snake
node_player -->|"plays in CLI"| node_tetris
node_player -->|"plays in CLI"| node_mastermind
node_player -->|"plays in CLI"| node_tictactoe
node_player -->|"plays in CLI"| node_tictactoemin
node_player -->|"views in CLI"| node_gameoflife
node_player -->|"views in CLI"| node_mazeapp
node_player -->|"views in CLI"| node_pathfinding
node_player -->|"views in CLI"| node_ascii
node_player -->|"views in CLI"| node_colorstest
node_player -->|"views in CLI"| node_tick
node_player -->|"views in CLI"| node_stencil
node_player -->|"views in CLI"| node_soundtest
node_mazeapp -->|"sets up, generates, solves"| node_maze
node_maze -->|"tracks nodes"| node_nodes
node_maze -->|"creates tunnel steps"| node_tunneler
node_maze -->|"draws and reports"| node_mazehelper
node_maze -->|"uses settings"| node_mazeconfig
node_nodes -->|"stores nodes"| node_crossnode
node_crossnode -->|"uses coordinates"| node_int2
node_mazehelper -->|"looks up colors"| node_colors
node_mazehelper -->|"reads dimensions"| node_mazeconfig

click node_game2048 "https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%202048/Program.cs"
click node_sokoban "https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%20Sokoban/Program.cs"
click node_snake "https://github.com/silentbenjininja/console-games/blob/main/Game%20-%20Snake/Program.cs"
click node_tetris "https://github.com/silentbenjininja/console-games/blob/main/Game%20-%20Tetris/Program.cs"
click node_mastermind "https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%20Mastermind/Program.cs"
click node_tictactoe "https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%20TicTacToe/Program.cs"
click node_tictactoemin "https://github.com/silentbenjininja/console-games/blob/main/TicTacToe%20Minimal/Program.cs"
click node_gameoflife "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Game%20of%20Life/Program.cs"
click node_mazeapp "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Program.cs"
click node_maze "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Maze.cs"
click node_nodes "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/CrossNodeSet.cs"
click node_tunneler "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Tunneler.cs"
click node_mazehelper "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Helper.cs"
click node_mazeconfig "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/MazeConfig.cs"
click node_crossnode "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/CrossNode.cs"
click node_int2 "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Int2.cs"
click node_colors "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/ColorConfig.cs"
click node_pathfinding "https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Pathfinding/Program.cs"
click node_ascii "https://github.com/silentbenjininja/console-games/blob/main/ASCII%20Art%20Renderer/Program.cs"
click node_colorstest "https://github.com/silentbenjininja/console-games/blob/main/Farbtest/Program.cs"
click node_tick "https://github.com/silentbenjininja/console-games/blob/main/Game-Tick-Boilerplate/Program.cs"
click node_stencil "https://github.com/silentbenjininja/console-games/blob/main/Games-Stencil/Program.cs"
click node_soundtest "https://github.com/silentbenjininja/console-games/blob/main/Test%20-%20Sounds/Program.cs"

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_game2048,node_sokoban,node_snake,node_tetris,node_mastermind,node_tictactoe,node_tictactoemin,node_player toneBlue
class node_gameoflife,node_mazeapp,node_maze,node_nodes,node_tunneler,node_mazehelper,node_mazeconfig,node_crossnode,node_int2,node_colors,node_pathfinding toneAmber
class node_ascii,node_colorstest,node_tick,node_stencil,node_soundtest toneMint
```

## Components

### Console Games

- [2048](https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%202048/Program.cs): `Konsolenspiel - 2048/Program.cs`
- [Sokoban](https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%20Sokoban/Program.cs): `Konsolenspiel - Sokoban/Program.cs`
- [Snake](https://github.com/silentbenjininja/console-games/blob/main/Game%20-%20Snake/Program.cs): `Game - Snake/Program.cs`
- [Tetris](https://github.com/silentbenjininja/console-games/blob/main/Game%20-%20Tetris/Program.cs): `Game - Tetris/Program.cs`
- [Mastermind](https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%20Mastermind/Program.cs): `Konsolenspiel - Mastermind/Program.cs`
- [Tic Tac Toe](https://github.com/silentbenjininja/console-games/blob/main/Konsolenspiel%20-%20TicTacToe/Program.cs): `Konsolenspiel - TicTacToe/Program.cs`
- [Minimal Tic Tac Toe](https://github.com/silentbenjininja/console-games/blob/main/TicTacToe%20Minimal/Program.cs): `TicTacToe Minimal/Program.cs`

### Challenges

- [Game of Life](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Game%20of%20Life/Program.cs): `Challenge - Game of Life/Program.cs`
- [Maze runner](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Program.cs): `Challenge - Maze Generation/Program.cs`
- [Maze generation and solver](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Maze.cs): `Challenge - Maze Generation/Maze.cs`
- [Cross-node tracking](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/CrossNodeSet.cs): `Challenge - Maze Generation/CrossNodeSet.cs`
- [Tunnel steps](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Tunneler.cs): `Challenge - Maze Generation/Tunneler.cs`
- [Maze drawing and timing](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Helper.cs): `Challenge - Maze Generation/Helper.cs`
- [Maze settings](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/MazeConfig.cs): `Challenge - Maze Generation/MazeConfig.cs`
- [Cross node](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/CrossNode.cs): `Challenge - Maze Generation/CrossNode.cs`
- [Grid coordinates](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/Int2.cs): `Challenge - Maze Generation/Int2.cs`
- [Color mapping](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Maze%20Generation/ColorConfig.cs): `Challenge - Maze Generation/ColorConfig.cs`
- [Pathfinding challenge](https://github.com/silentbenjininja/console-games/blob/main/Challenge%20-%20Pathfinding/Program.cs): `Challenge - Pathfinding/Program.cs`

### Demos

- [ASCII art renderer](https://github.com/silentbenjininja/console-games/blob/main/ASCII%20Art%20Renderer/Program.cs): `ASCII Art Renderer/Program.cs`
- [Color test](https://github.com/silentbenjininja/console-games/blob/main/Farbtest/Program.cs): `Farbtest/Program.cs`
- [Game tick boilerplate](https://github.com/silentbenjininja/console-games/blob/main/Game-Tick-Boilerplate/Program.cs): `Game-Tick-Boilerplate/Program.cs`
- [Games stencil](https://github.com/silentbenjininja/console-games/blob/main/Games-Stencil/Program.cs): `Games-Stencil/Program.cs`
- [Sound test](https://github.com/silentbenjininja/console-games/blob/main/Test%20-%20Sounds/Program.cs): `Test - Sounds/Program.cs`

### Other components

- **Terminal user**

## Connections

- Terminal user → 2048: plays in CLI (evidence: `README.md`)
- Terminal user → Sokoban: plays in CLI (evidence: `README.md`)
- Terminal user → Snake: plays in CLI (evidence: `README.md`)
- Terminal user → Tetris: plays in CLI (evidence: `README.md`)
- Terminal user → Mastermind: plays in CLI (evidence: `README.md`)
- Terminal user → Tic Tac Toe: plays in CLI (evidence: `README.md`)
- Terminal user → Minimal Tic Tac Toe: plays in CLI (evidence: `README.md`)
- Terminal user → Game of Life: views in CLI (evidence: `README.md`)
- Terminal user → Maze runner: views in CLI (evidence: `README.md`)
- Terminal user → Pathfinding challenge: views in CLI (evidence: `README.md`)
- Terminal user → ASCII art renderer: views in CLI (evidence: `README.md`)
- Terminal user → Color test: views in CLI (evidence: `README.md`)
- Terminal user → Game tick boilerplate: views in CLI (evidence: `README.md`)
- Terminal user → Games stencil: views in CLI (evidence: `README.md`)
- Terminal user → Sound test: views in CLI (evidence: `README.md`)
- Maze runner → Maze generation and solver: sets up, generates, solves (evidence: `Challenge - Maze Generation/Program.cs`)
- Maze generation and solver → Cross-node tracking: tracks nodes (evidence: `Challenge - Maze Generation/Maze.cs`)
- Maze generation and solver → Tunnel steps: creates tunnel steps (evidence: `Challenge - Maze Generation/Maze.cs`)
- Maze generation and solver → Maze drawing and timing: draws and reports (evidence: `Challenge - Maze Generation/Maze.cs`)
- Maze generation and solver → Maze settings: uses settings (evidence: `Challenge - Maze Generation/Maze.cs`)
- Cross-node tracking → Cross node: stores nodes (evidence: `Challenge - Maze Generation/CrossNodeSet.cs`)
- Cross node → Grid coordinates: uses coordinates (evidence: `Challenge - Maze Generation/CrossNode.cs`)
- Maze drawing and timing → Color mapping: looks up colors (evidence: `Challenge - Maze Generation/Helper.cs`)
- Maze drawing and timing → Maze settings: reads dimensions (evidence: `Challenge - Maze Generation/Helper.cs`)
