# alexlenaerts/moordle architecture

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

- Interactive diagram: https://gitdiagram.com/alexlenaerts/moordle
- Repository: https://github.com/alexlenaerts/moordle

## Overview

Moordle is a French-language, browser-based five-letter word game: players submit guesses, receive positional color feedback, and can see the answer’s definition. The sampled client implements the board and game interactions, while the README documents unlimited play and definitions. MVC startup and routing are visible, but HomeController was not sampled, so links from the client to specific server actions remain unverified. The graph omits generated output and third-party libraries.

Main entry points: [`Moordle/js/site.js`](https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js) (Game interface), [`Moordle/Global.asax.cs`](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Global.asax.cs) (Application startup), [`Moordle/App_Start/RouteConfig.cs`](https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/RouteConfig.cs) (MVC routes), [`Moordle/Controllers/HomeController.cs`](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/HomeController.cs) (Game controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["MVC startup"]
  node_app_start["Application startup<br/>[Global.asax.cs]"]
  node_routes["MVC routes<br/>[RouteConfig.cs]"]
  node_filters["Global filters<br/>[FilterConfig.cs]"]
  node_bundles["Script bundles<br/>[BundleConfig.cs]"]
end

subgraph group_game["Game experience"]
  node_browser_game["Game interface<br/>[site.js]"]
  node_guess_board["Guess and feedback<br/>[site.js]"]
  node_game_extras["Stats and sharing<br/>[site.js]"]
end

subgraph group_server["Game services"]
  node_home["Game controller<br/>[HomeController.cs]"]
  node_definition_link["Definition response"]
end

subgraph group_contracts["Data contracts"]
  node_game_model["Game model<br/>[Moordle.cs]"]
  node_word_response["Word response<br/>[RandomWord.cs]"]
end

node_player(("Player"))

node_player -->|"plays"| node_browser_game
node_browser_game -->|"enters guesses"| node_guess_board
node_browser_game -->|"tracks and shares"| node_game_extras
node_browser_game -.->|"requests game data"| node_home
node_browser_game -.->|"requests definition"| node_definition_link
node_app_start -->|"registers routes"| node_routes
node_app_start -->|"registers filters"| node_filters
node_app_start -->|"registers bundles"| node_bundles
node_routes -->|"routes default"| node_home

click node_app_start "https://github.com/alexlenaerts/moordle/blob/main/Moordle/Global.asax.cs"
click node_routes "https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/RouteConfig.cs"
click node_filters "https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/FilterConfig.cs"
click node_bundles "https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/BundleConfig.cs"
click node_browser_game "https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js"
click node_guess_board "https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js"
click node_game_extras "https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js"
click node_home "https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/HomeController.cs"
click node_definition_link "https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/ResponseDicoLink.cs"
click node_game_model "https://github.com/alexlenaerts/moordle/blob/main/Moordle/Models/Moordle.cs"
click node_word_response "https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/RandomWord.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_app_start,node_routes,node_filters,node_bundles toneBlue
class node_browser_game,node_guess_board,node_game_extras toneAmber
class node_home,node_definition_link toneMint
class node_game_model,node_word_response toneRose
class node_player toneIndigo
```

## Components

### MVC startup

- [Application startup](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Global.asax.cs): `Moordle/Global.asax.cs`
- [MVC routes](https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/RouteConfig.cs): `Moordle/App_Start/RouteConfig.cs`
- [Global filters](https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/FilterConfig.cs): `Moordle/App_Start/FilterConfig.cs`
- [Script bundles](https://github.com/alexlenaerts/moordle/blob/main/Moordle/App_Start/BundleConfig.cs): `Moordle/App_Start/BundleConfig.cs`

### Game experience

- [Game interface](https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js): `Moordle/js/site.js`
- [Guess and feedback](https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js): `Moordle/js/site.js`
- [Stats and sharing](https://github.com/alexlenaerts/moordle/blob/main/Moordle/js/site.js): `Moordle/js/site.js`

### Game services

- [Game controller](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/HomeController.cs): `Moordle/Controllers/HomeController.cs`
- [Definition response](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/ResponseDicoLink.cs): `Moordle/Controllers/ResponseDicoLink.cs`

### Data contracts

- [Game model](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Models/Moordle.cs): `Moordle/Models/Moordle.cs`
- [Word response](https://github.com/alexlenaerts/moordle/blob/main/Moordle/Controllers/RandomWord.cs): `Moordle/Controllers/RandomWord.cs`

### Other components

- **Player**

## Connections

- Player → Game interface: plays
- Game interface → Guess and feedback: enters guesses (evidence: `Moordle/js/site.js`)
- Game interface → Stats and sharing: tracks and shares (evidence: `Moordle/js/site.js`)
- Game interface → Game controller: requests game data
- Game interface → Definition response: requests definition
- Application startup → MVC routes: registers routes (evidence: `Moordle/Global.asax.cs`)
- Application startup → Global filters: registers filters (evidence: `Moordle/Global.asax.cs`)
- Application startup → Script bundles: registers bundles (evidence: `Moordle/Global.asax.cs`)
- MVC routes → Game controller: routes default (evidence: `Moordle/App_Start/RouteConfig.cs`)
