# wflageol-uqtr/inf1011 architecture

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

- Interactive diagram: https://gitdiagram.com/wflageol-uqtr/inf1011
- Repository: https://github.com/wflageol-uqtr/inf1011

## Overview

This repository is a collection of software-design coursework examples, not one integrated application. It includes a Harry Potter basket/pricing exercise, standalone poker and Minesweeper models, a SignalR poker web example, design-pattern demonstrations, and a composite filesystem example. The clearest runtime flows are the web poker hub’s hand evaluation, Minesweeper board construction through a tile factory, and the filesystem demo’s assembled tree. Several exercise modules are unsampled, so their internal relationships are not asserted.

Main entry points: [`PokerWeb/PokerWeb/Hubs/PokerHub.cs`](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/PokerWeb/Hubs/PokerHub.cs) (Poker hub), [`SystemeFichierExemple/SystemeFichierExemple/Program.cs`](https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Program.cs) (Filesystem demo), [`PokerWeb/Poker/GameLogic/GameController.cs`](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/GameLogic/GameController.cs) (Game controller), [`Minesweeper/Minesweeper/Board.cs`](https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Board.cs) (Board)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_potter["Harry Potter Basket"]
  node_basket["Basket<br/>[Basket.cs]"]
  node_book["Book<br/>[Book.cs]"]
  node_discount["Discount<br/>[Discount.cs]"]
  node_cashier["Cashier<br/>[Cashier.cs]"]
end

subgraph group_poker["Poker Examples"]
  node_hub["Poker hub<br/>[PokerHub.cs]"]
  node_controller["Game controller<br/>[GameController.cs]"]
  node_gamestates["Game states"]
  node_handanalyzer["Hand analyzer"]
  node_serializer["Card serializer<br/>[CardSerializer.cs]"]
  node_deck["Deck<br/>[Deck.cs]"]
  node_hand["Hand model<br/>[Hand.cs]"]
  node_standalonepoker["Standalone analyzer"]
end

subgraph group_mine["Minesweeper"]
  node_game["Game<br/>[Game.cs]"]
  node_board["Board<br/>[Board.cs]"]
  node_tilefactory["Tile factory<br/>[TileFactory.cs]"]
  node_tiletypes["Tile types"]
end

subgraph group_patterns["Pattern Demonstrations"]
  node_patternsprogram["Pattern examples<br/>[Program.cs]"]
  node_facade["Facade template method"]
  node_strategy["Strategy factory"]
  node_observer["Observer decorator"]
end

subgraph group_filesystem["Filesystem Composite"]
  node_root["Filesystem demo<br/>[Program.cs]"]
  node_folder["Folder<br/>[Folder.cs]"]
  node_loggingfolder["Logging folder<br/>[LoggingFolder.cs]"]
  node_element["Element base<br/>[Element.cs]"]
  node_file["File<br/>[MyFile.cs]"]
end

node_buyer(("Exercise user"))
node_pokerclient(("Web client"))
node_player(("Player"))

node_pokerclient -.->|"sends messages"| node_hub
node_hub -->|"evaluates hands"| node_handanalyzer
node_hub -->|"sends response"| node_pokerclient
node_hub -->|"holds controller"| node_controller
node_controller -->|"dispatches actions"| node_gamestates
node_controller -->|"deserializes cards"| node_serializer
node_player -.->|"starts game"| node_board
node_board -->|"requests tiles"| node_tilefactory
node_tilefactory -->|"creates tiles"| node_tiletypes
node_root -->|"assembles tree"| node_folder
node_root -->|"adds files"| node_file
node_root -->|"wraps folder"| node_loggingfolder
node_folder -->|"inherits"| node_element
node_file -->|"inherits"| node_element

click node_basket "https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Basket.cs"
click node_book "https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Book.cs"
click node_discount "https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Discount.cs"
click node_cashier "https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Cashier.cs"
click node_hub "https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/PokerWeb/Hubs/PokerHub.cs"
click node_controller "https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/GameLogic/GameController.cs"
click node_gamestates "https://github.com/wflageol-uqtr/inf1011/tree/main/PokerWeb/Poker/GameLogic"
click node_handanalyzer "https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/PokerHandAnalyzer.cs"
click node_serializer "https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/CardSerializer.cs"
click node_deck "https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/Deck.cs"
click node_hand "https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/Hand.cs"
click node_standalonepoker "https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/Poker/Poker/PokerHandAnalyzer.cs"
click node_game "https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Game.cs"
click node_board "https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Board.cs"
click node_tilefactory "https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Tiles/TileFactory.cs"
click node_tiletypes "https://github.com/wflageol-uqtr/inf1011/tree/main/Minesweeper/Minesweeper/Tiles"
click node_patternsprogram "https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Program.cs"
click node_facade "https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Facade_TemplateMethod.cs"
click node_strategy "https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Strategy_Factory.cs"
click node_observer "https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Singleton_Observer_Decorator.cs"
click node_root "https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Program.cs"
click node_folder "https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Folder.cs"
click node_loggingfolder "https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/LoggingFolder.cs"
click node_element "https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Element.cs"
click node_file "https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/MyFile.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_basket,node_book,node_discount,node_cashier,node_buyer,node_pokerclient toneBlue
class node_hub,node_controller,node_gamestates,node_handanalyzer,node_serializer,node_deck,node_hand,node_standalonepoker toneAmber
class node_game,node_board,node_tilefactory,node_tiletypes toneMint
class node_patternsprogram,node_facade,node_strategy,node_observer toneRose
class node_root,node_folder,node_loggingfolder,node_element,node_file,node_player toneIndigo
```

## Components

### Harry Potter Basket

- [Basket](https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Basket.cs): `Exercices/HarryPotter - Solution/HarryPotter/Basket.cs`
- [Book](https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Book.cs): `Exercices/HarryPotter - Solution/HarryPotter/Book.cs`
- [Discount](https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Discount.cs): `Exercices/HarryPotter - Solution/HarryPotter/Discount.cs`
- [Cashier](https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/HarryPotter%20-%20Solution/HarryPotter/Cashier.cs): `Exercices/HarryPotter - Solution/HarryPotter/Cashier.cs`

### Poker Examples

- [Poker hub](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/PokerWeb/Hubs/PokerHub.cs): `PokerWeb/PokerWeb/Hubs/PokerHub.cs`
- [Game controller](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/GameLogic/GameController.cs): `PokerWeb/Poker/GameLogic/GameController.cs`
- [Game states](https://github.com/wflageol-uqtr/inf1011/tree/main/PokerWeb/Poker/GameLogic): `PokerWeb/Poker/GameLogic`
- [Hand analyzer](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/PokerHandAnalyzer.cs): `PokerWeb/Poker/PokerHandAnalyzer.cs`
- [Card serializer](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/CardSerializer.cs): `PokerWeb/Poker/CardSerializer.cs`
- [Deck](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/Deck.cs): `PokerWeb/Poker/Deck.cs`
- [Hand model](https://github.com/wflageol-uqtr/inf1011/blob/main/PokerWeb/Poker/Hand.cs): `PokerWeb/Poker/Hand.cs`
- [Standalone analyzer](https://github.com/wflageol-uqtr/inf1011/blob/main/Exercices/Poker/Poker/PokerHandAnalyzer.cs): `Exercices/Poker/Poker/PokerHandAnalyzer.cs`

### Minesweeper

- [Game](https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Game.cs): `Minesweeper/Minesweeper/Game.cs`
- [Board](https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Board.cs): `Minesweeper/Minesweeper/Board.cs`
- [Tile factory](https://github.com/wflageol-uqtr/inf1011/blob/main/Minesweeper/Minesweeper/Tiles/TileFactory.cs): `Minesweeper/Minesweeper/Tiles/TileFactory.cs`
- [Tile types](https://github.com/wflageol-uqtr/inf1011/tree/main/Minesweeper/Minesweeper/Tiles): `Minesweeper/Minesweeper/Tiles`

### Pattern Demonstrations

- [Pattern examples](https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Program.cs): `PatronsBibliotheque/PatronsBibliotheque/Program.cs`
- [Facade template method](https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Facade_TemplateMethod.cs): `PatronsBibliotheque/PatronsBibliotheque/Facade_TemplateMethod.cs`
- [Strategy factory](https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Strategy_Factory.cs): `PatronsBibliotheque/PatronsBibliotheque/Strategy_Factory.cs`
- [Observer decorator](https://github.com/wflageol-uqtr/inf1011/blob/main/PatronsBibliotheque/PatronsBibliotheque/Singleton_Observer_Decorator.cs): `PatronsBibliotheque/PatronsBibliotheque/Singleton_Observer_Decorator.cs`

### Filesystem Composite

- [Filesystem demo](https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Program.cs): `SystemeFichierExemple/SystemeFichierExemple/Program.cs`
- [Folder](https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Folder.cs): `SystemeFichierExemple/SystemeFichierExemple/Folder.cs`
- [Logging folder](https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/LoggingFolder.cs): `SystemeFichierExemple/SystemeFichierExemple/LoggingFolder.cs`
- [Element base](https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/Element.cs): `SystemeFichierExemple/SystemeFichierExemple/Element.cs`
- [File](https://github.com/wflageol-uqtr/inf1011/blob/main/SystemeFichierExemple/SystemeFichierExemple/MyFile.cs): `SystemeFichierExemple/SystemeFichierExemple/MyFile.cs`

### Other components

- **Exercise user**
- **Web client**
- **Player**

## Connections

- Web client → Poker hub: sends messages
- Poker hub → Hand analyzer: evaluates hands (evidence: `PokerWeb/PokerWeb/Hubs/PokerHub.cs`)
- Poker hub → Web client: sends response (evidence: `PokerWeb/PokerWeb/Hubs/PokerHub.cs`)
- Poker hub → Game controller: holds controller (evidence: `PokerWeb/PokerWeb/Hubs/PokerHub.cs`)
- Game controller → Game states: dispatches actions (evidence: `PokerWeb/Poker/GameLogic/GameController.cs`)
- Game controller → Card serializer: deserializes cards (evidence: `PokerWeb/Poker/GameLogic/GameController.cs`)
- Player → Board: starts game
- Board → Tile factory: requests tiles (evidence: `Minesweeper/Minesweeper/Board.cs`)
- Tile factory → Tile types: creates tiles (evidence: `Minesweeper/Minesweeper/Tiles/TileFactory.cs`)
- Filesystem demo → Folder: assembles tree (evidence: `SystemeFichierExemple/SystemeFichierExemple/Program.cs`)
- Filesystem demo → File: adds files (evidence: `SystemeFichierExemple/SystemeFichierExemple/Program.cs`)
- Filesystem demo → Logging folder: wraps folder (evidence: `SystemeFichierExemple/SystemeFichierExemple/Program.cs`)
- Folder → Element base: inherits (evidence: `SystemeFichierExemple/SystemeFichierExemple/Folder.cs`)
- File → Element base: inherits (evidence: `SystemeFichierExemple/SystemeFichierExemple/MyFile.cs`)
