# ripon83/engineering-with-c architecture

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

- Interactive diagram: https://gitdiagram.com/ripon83/engineering-with-c
- Repository: https://github.com/ripon83/engineering-with-c

## Overview

This repository is a collection of standalone C teaching programs accompanying Chapters 2–14 of a programming textbook, not one integrated application. Users select and compile an individual example; it may demonstrate a concept, compute or transform data, and print results. The graph highlights the matrix chapter’s distinct operations and the random-number game because source excerpts show those runtime behaviors. Other chapter topics are documented in the README but are independent examples, so the graph does not imply cross-program calls. Evidence is limited to the README and sampled files; unsampled examples are represented only where their topics are explicit.

Main entry points: [`chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`](https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/14.42.guess_most_frequent_face_game.c) (Guessing game), [`chapter10_Matrix/10.58.sparse-matrix.c`](https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.58.sparse-matrix.c) (Sparse conversion), [`chapter10_Matrix`](https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix) (Matrix display), [`chapter14_Random numbers/librand.h`](https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/librand.h) (Random generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_matrix["Matrix examples"]
  node_matrix_basics["Matrix basics"]
  node_matrix_ops["Matrix operations"]
  node_matrix_sparse["Sparse conversion"]
  node_matrix_flips["Matrix flips"]
  node_matrix_rotation["Matrix rotation"]
  node_matrix_symmetry["Symmetry check"]
  node_matrix_orthogonal["Orthogonality check"]
  node_matrix_display["Matrix display"]
end

subgraph group_random["Random game"]
  node_guess_game["Guessing game"]
  node_roll["Dice rolls"]
  node_rng["Random generator<br/>[librand.h]"]
end

node_learner(("Learner"))
node_standalone["Standalone C program"]
node_player(("Player"))
node_terminal["Console I/O"]

node_learner -->|"selects example"| node_standalone
node_matrix_sparse -->|"displays compact data"| node_matrix_display
node_matrix_sparse -->|"displays source matrix"| node_matrix_display
node_guess_game -->|"generates frequencies"| node_roll
node_guess_game -->|"calls generator"| node_rng
node_player -->|"enters guess"| node_guess_game
node_guess_game -->|"reads and prints"| node_terminal

click node_matrix_basics "https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix"
click node_matrix_ops "https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix"
click node_matrix_sparse "https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.58.sparse-matrix.c"
click node_matrix_flips "https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.54.program-for-horizontal-and-vertical-flipping.c"
click node_matrix_rotation "https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.55.rotation-of-a-matrix.c"
click node_matrix_symmetry "https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.72.symmetric-matrix.c"
click node_matrix_orthogonal "https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.76.orthogonal-matrix.c"
click node_matrix_display "https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix"
click node_guess_game "https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/14.42.guess_most_frequent_face_game.c"
click node_roll "https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/14.42.guess_most_frequent_face_game.c"
click node_rng "https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/librand.h"

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_matrix_basics,node_matrix_ops,node_matrix_sparse,node_matrix_flips,node_matrix_rotation,node_matrix_symmetry,node_matrix_orthogonal,node_matrix_display toneBlue
class node_guess_game,node_roll,node_rng toneAmber
class node_learner,node_standalone,node_player,node_terminal toneIndigo
```

## Components

### Matrix examples

- [Matrix basics](https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix): `chapter10_Matrix`
- [Matrix operations](https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix): `chapter10_Matrix`
- [Sparse conversion](https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.58.sparse-matrix.c): `chapter10_Matrix/10.58.sparse-matrix.c`
- [Matrix flips](https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.54.program-for-horizontal-and-vertical-flipping.c): `chapter10_Matrix/10.54.program-for-horizontal-and-vertical-flipping.c`
- [Matrix rotation](https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.55.rotation-of-a-matrix.c): `chapter10_Matrix/10.55.rotation-of-a-matrix.c`
- [Symmetry check](https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.72.symmetric-matrix.c): `chapter10_Matrix/10.72.symmetric-matrix.c`
- [Orthogonality check](https://github.com/ripon83/engineering-with-c/blob/main/chapter10_Matrix/10.76.orthogonal-matrix.c): `chapter10_Matrix/10.76.orthogonal-matrix.c`
- [Matrix display](https://github.com/ripon83/engineering-with-c/tree/main/chapter10_Matrix): `chapter10_Matrix`

### Random game

- [Guessing game](https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/14.42.guess_most_frequent_face_game.c): `chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`
- [Dice rolls](https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/14.42.guess_most_frequent_face_game.c): `chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`
- [Random generator](https://github.com/ripon83/engineering-with-c/blob/main/chapter14_Random%20numbers/librand.h): `chapter14_Random numbers/librand.h`

### Other components

- **Learner**
- **Standalone C program**
- **Player**
- **Console I/O**

## Connections

- Learner → Standalone C program: selects example (evidence: `README.md`)
- Sparse conversion → Matrix display: displays compact data (evidence: `chapter10_Matrix/10.58.sparse-matrix.c`)
- Sparse conversion → Matrix display: displays source matrix (evidence: `chapter10_Matrix/10.58.sparse-matrix.c`)
- Guessing game → Dice rolls: generates frequencies (evidence: `chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`)
- Guessing game → Random generator: calls generator (evidence: `chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`)
- Player → Guessing game: enters guess (evidence: `chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`)
- Guessing game → Console I/O: reads and prints (evidence: `chapter14_Random numbers/14.42.guess_most_frequent_face_game.c`)
