# hasherhassan/cs-314-projects architecture

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

- Interactive diagram: https://gitdiagram.com/hasherhassan/cs-314-projects
- Repository: https://github.com/hasherhassan/cs-314-projects

## Overview

This repository is a collection of independent Java coursework programs and data-structure exercises, rather than one integrated product. Its user-facing workflows are the Evil Hangman console game and the NameSurfer console lookup and analysis tool; the other directories provide standalone algorithm, matrix, linked-list, and recursion implementations. The graph includes those runtime components and the recursion drawing layer. Tester classes are omitted. Edges reflect visible source-index references or the NameSurfer excerpt; dictionary and other unsampled data-loading connections are not asserted.

Main entry points: [`EvilHangman/HangmanMain.java`](https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanMain.java) (Game Console), [`EvilHangman/HangmanManager.java`](https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanManager.java) (Game Manager), [`NameSurfer/NameSurfer.java`](https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/NameSurfer.java) (Console Options), [`NameSurfer/Names.java`](https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/Names.java) (Name Analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hangman["Evil Hangman"]
  node_hangman_main["Game Console<br/>[HangmanMain.java]"]
  node_hangman_manager["Game Manager"]
  node_hangman_difficulty["Difficulty Levels"]
end

subgraph group_names["NameSurfer"]
  node_name_cli["Console Options<br/>[NameSurfer.java]"]
  node_names_database["Name Analysis<br/>[Names.java]"]
  node_name_record["Name Records<br/>[NameRecord.java]"]
end

subgraph group_codecamp["CodeCamp Algorithms"]
  node_codecamp_algorithms["Array Algorithms<br/>[CodeCamp.java]"]
end

subgraph group_linkedlist["Linked List"]
  node_linked_list["Linked List<br/>[LL314.java]"]
end

subgraph group_matrix["Matrix Library"]
  node_matrix_library["Matrix Operations<br/>[MathMatrix.java]"]
end

subgraph group_recursive["Recursive Exercises"]
  node_recursive_methods["Recursive Methods<br/>[Recursive.java]"]
  node_drawing_panel["Drawing Panel<br/>[DrawingPanel.java]"]
end

node_player(("Player"))
node_name_user(("NameSurfer User"))

node_player -->|"plays"| node_hangman_main
node_hangman_main -->|"uses game logic"| node_hangman_manager
node_hangman_main -->|"uses levels"| node_hangman_difficulty
node_hangman_manager -->|"references levels"| node_hangman_difficulty
node_name_user -->|"chooses options"| node_name_cli
node_name_cli -->|"queries"| node_names_database
node_names_database -->|"creates and analyzes"| node_name_record
node_recursive_methods -->|"draws with"| node_drawing_panel

click node_hangman_main "https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanMain.java"
click node_hangman_manager "https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanManager.java"
click node_hangman_difficulty "https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanDifficulty.java"
click node_name_cli "https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/NameSurfer.java"
click node_names_database "https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/Names.java"
click node_name_record "https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/NameRecord.java"
click node_codecamp_algorithms "https://github.com/hasherhassan/cs-314-projects/blob/main/CodeCamp/CodeCamp.java"
click node_linked_list "https://github.com/hasherhassan/cs-314-projects/blob/main/LinkedList/LL314.java"
click node_matrix_library "https://github.com/hasherhassan/cs-314-projects/blob/main/MathMatrix/MathMatrix.java"
click node_recursive_methods "https://github.com/hasherhassan/cs-314-projects/blob/main/Recursive/Recursive.java"
click node_drawing_panel "https://github.com/hasherhassan/cs-314-projects/blob/main/Recursive/DrawingPanel.java"

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_hangman_main,node_hangman_manager,node_hangman_difficulty,node_name_user toneBlue
class node_name_cli,node_names_database,node_name_record toneAmber
class node_codecamp_algorithms toneMint
class node_linked_list toneRose
class node_matrix_library,node_player toneIndigo
class node_recursive_methods,node_drawing_panel toneTeal
```

## Components

### Evil Hangman

- [Game Console](https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanMain.java): `EvilHangman/HangmanMain.java`
- [Game Manager](https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanManager.java): `EvilHangman/HangmanManager.java`
- [Difficulty Levels](https://github.com/hasherhassan/cs-314-projects/blob/main/EvilHangman/HangmanDifficulty.java): `EvilHangman/HangmanDifficulty.java`

### NameSurfer

- [Console Options](https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/NameSurfer.java): `NameSurfer/NameSurfer.java`
- [Name Analysis](https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/Names.java): `NameSurfer/Names.java`
- [Name Records](https://github.com/hasherhassan/cs-314-projects/blob/main/NameSurfer/NameRecord.java): `NameSurfer/NameRecord.java`

### CodeCamp Algorithms

- [Array Algorithms](https://github.com/hasherhassan/cs-314-projects/blob/main/CodeCamp/CodeCamp.java): `CodeCamp/CodeCamp.java`

### Linked List

- [Linked List](https://github.com/hasherhassan/cs-314-projects/blob/main/LinkedList/LL314.java): `LinkedList/LL314.java`

### Matrix Library

- [Matrix Operations](https://github.com/hasherhassan/cs-314-projects/blob/main/MathMatrix/MathMatrix.java): `MathMatrix/MathMatrix.java`

### Recursive Exercises

- [Recursive Methods](https://github.com/hasherhassan/cs-314-projects/blob/main/Recursive/Recursive.java): `Recursive/Recursive.java`
- [Drawing Panel](https://github.com/hasherhassan/cs-314-projects/blob/main/Recursive/DrawingPanel.java): `Recursive/DrawingPanel.java`

### Other components

- **Player**
- **NameSurfer User**

## Connections

- Player → Game Console: plays
- Game Console → Game Manager: uses game logic (evidence: `EvilHangman/HangmanMain.java`)
- Game Console → Difficulty Levels: uses levels (evidence: `EvilHangman/HangmanMain.java`)
- Game Manager → Difficulty Levels: references levels (evidence: `EvilHangman/HangmanManager.java`)
- NameSurfer User → Console Options: chooses options
- Console Options → Name Analysis: queries (evidence: `NameSurfer/NameSurfer.java`)
- Name Analysis → Name Records: creates and analyzes (evidence: `NameSurfer/Names.java`)
- Recursive Methods → Drawing Panel: draws with (evidence: `Recursive/Recursive.java`)
