# faizanmkhan/42_warsaw architecture

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

- Interactive diagram: https://gitdiagram.com/faizanmkhan/42_warsaw
- Repository: https://github.com/faizanmkhan/42_warsaw

## Overview

This repository is a portfolio of independent 42 Warsaw projects, not one integrated application. Its user-facing workflows range from interactive command-line tools to graphical renderers and process simulations. The graph preserves the README’s major projects and the central CPP exercise families; sampled entry points show a few direct calls or imports, while most project internals were not sampled, so their connections are intentionally left unspecified.

Main entry points: [`CPP`](https://github.com/faizanmkhan/42_warsaw/tree/master/CPP) (CPP Examples), [`CPP/cpp_00/ex01/PhoneBook.cpp`](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_00/ex01/PhoneBook.cpp) (PhoneBook), [`CPP/cpp_04/ex00/Animal.hpp`](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_04/ex00/Animal.hpp) (Animal Hierarchy), [`miniShell/src/execution/execute_pipeline_cmds.c`](https://github.com/faizanmkhan/42_warsaw/blob/master/miniShell/src/execution/execute_pipeline_cmds.c) (Shell Execution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cpp["CPP Exercises"]
  node_phonebook["PhoneBook<br/>[PhoneBook.cpp]"]
  node_contact["Contact<br/>[Contact.hpp]"]
  node_fixed["Fixed Point<br/>[Fixed.hpp]"]
  node_combat["Trap Hierarchy<br/>[FragTrap.hpp]"]
  node_animal["Animal Hierarchy<br/>[Animal.hpp]"]
  node_brain["Animal Brain<br/>[Brain.cpp]"]
  node_cpp_portfolio["CPP Examples"]
end

subgraph group_apps["Interactive Applications"]
  node_shell["miniShell<br/>[myshell.c]"]
  node_shell_parse["Shell Parsing"]
  node_shell_commands["Command Creation"]
  node_shell_execute["Shell Execution"]
  node_shell_builtins["Shell Builtins"]
  node_cub_parse["Map Parsing"]
  node_cub_engine["Game Engine"]
  node_cub_render["Ray Renderer"]
  node_fractals["Fractal Renderer<br/>[main.c]"]
  node_fractal_kernels["Fractal Families<br/>[mandelbrot.c]"]
end

subgraph group_systems["Process Tools"]
  node_philo["Philosopher Simulation<br/>[main.c]"]
  node_philo_routine["Dining Routine<br/>[routine.c]"]
  node_talk_client["Signal Client<br/>[client.c]"]
  node_talk_server["Signal Server<br/>[server.c]"]
  node_sorter["Stack Sorter<br/>[quick_sort.c]"]
end

subgraph group_libraries["C Libraries"]
  node_printf["ft_printf<br/>[ft_printf.c]"]
  node_gnl["get_next_line<br/>[get_next_line.c]"]
  node_libft["libft<br/>[libft.h]"]
end

node_cpp_user(("Exercise User"))

node_cpp_user -->|"uses"| node_phonebook
node_phonebook -->|"stores"| node_contact
node_cpp_user -->|"runs examples"| node_animal
node_cpp_user -->|"tests copies"| node_brain
node_cpp_user -->|"exercises"| node_combat
node_shell_execute -->|"executes pipeline"| node_shell
node_cpp_portfolio -.->|"includes exercise"| node_fixed
node_cpp_portfolio -.->|"includes exercise"| node_animal

click node_phonebook "https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_00/ex01/PhoneBook.cpp"
click node_contact "https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_00/ex01/Contact.hpp"
click node_fixed "https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_02/ex01/Fixed.hpp"
click node_combat "https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_03/ex02/FragTrap.hpp"
click node_animal "https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_04/ex00/Animal.hpp"
click node_brain "https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_04/ex01/Brain.cpp"
click node_shell "https://github.com/faizanmkhan/42_warsaw/blob/master/miniShell/src/myshell.c"
click node_shell_parse "https://github.com/faizanmkhan/42_warsaw/tree/master/miniShell/src/parsing"
click node_shell_commands "https://github.com/faizanmkhan/42_warsaw/tree/master/miniShell/src/commands_creation"
click node_shell_execute "https://github.com/faizanmkhan/42_warsaw/blob/master/miniShell/src/execution/execute_pipeline_cmds.c"
click node_shell_builtins "https://github.com/faizanmkhan/42_warsaw/tree/master/miniShell/src/builtin_functions"
click node_cub_parse "https://github.com/faizanmkhan/42_warsaw/tree/master/cub3D/src/parser"
click node_cub_engine "https://github.com/faizanmkhan/42_warsaw/tree/master/cub3D/src/engine"
click node_cub_render "https://github.com/faizanmkhan/42_warsaw/tree/master/cub3D/src/renderer"
click node_fractals "https://github.com/faizanmkhan/42_warsaw/blob/master/fract-ol/main.c"
click node_fractal_kernels "https://github.com/faizanmkhan/42_warsaw/blob/master/fract-ol/mandelbrot.c"
click node_philo "https://github.com/faizanmkhan/42_warsaw/blob/master/Philosopher/main.c"
click node_philo_routine "https://github.com/faizanmkhan/42_warsaw/blob/master/Philosopher/routine.c"
click node_talk_client "https://github.com/faizanmkhan/42_warsaw/blob/master/minitalk/client.c"
click node_talk_server "https://github.com/faizanmkhan/42_warsaw/blob/master/minitalk/server.c"
click node_sorter "https://github.com/faizanmkhan/42_warsaw/blob/master/push_swap/quick_sort.c"
click node_printf "https://github.com/faizanmkhan/42_warsaw/blob/master/ft_printf/ft_printf.c"
click node_gnl "https://github.com/faizanmkhan/42_warsaw/blob/master/get_next_line/get_next_line.c"
click node_libft "https://github.com/faizanmkhan/42_warsaw/blob/master/libft/libft.h"
click node_cpp_portfolio "https://github.com/faizanmkhan/42_warsaw/tree/master/CPP"

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_phonebook,node_contact,node_fixed,node_combat,node_animal,node_brain,node_cpp_portfolio,node_cpp_user toneBlue
class node_shell,node_shell_parse,node_shell_commands,node_shell_execute,node_shell_builtins,node_cub_parse,node_cub_engine,node_cub_render,node_fractals,node_fractal_kernels toneAmber
class node_philo,node_philo_routine,node_talk_client,node_talk_server,node_sorter toneMint
class node_printf,node_gnl,node_libft toneRose
```

## Components

### CPP Exercises

- [PhoneBook](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_00/ex01/PhoneBook.cpp): `CPP/cpp_00/ex01/PhoneBook.cpp`
- [Contact](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_00/ex01/Contact.hpp): `CPP/cpp_00/ex01/Contact.hpp`
- [Fixed Point](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_02/ex01/Fixed.hpp): `CPP/cpp_02/ex01/Fixed.hpp`
- [Trap Hierarchy](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_03/ex02/FragTrap.hpp): `CPP/cpp_03/ex02/FragTrap.hpp`
- [Animal Hierarchy](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_04/ex00/Animal.hpp): `CPP/cpp_04/ex00/Animal.hpp`
- [Animal Brain](https://github.com/faizanmkhan/42_warsaw/blob/master/CPP/cpp_04/ex01/Brain.cpp): `CPP/cpp_04/ex01/Brain.cpp`
- [CPP Examples](https://github.com/faizanmkhan/42_warsaw/tree/master/CPP): `CPP`

### Interactive Applications

- [miniShell](https://github.com/faizanmkhan/42_warsaw/blob/master/miniShell/src/myshell.c): `miniShell/src/myshell.c`
- [Shell Parsing](https://github.com/faizanmkhan/42_warsaw/tree/master/miniShell/src/parsing): `miniShell/src/parsing`
- [Command Creation](https://github.com/faizanmkhan/42_warsaw/tree/master/miniShell/src/commands_creation): `miniShell/src/commands_creation`
- [Shell Execution](https://github.com/faizanmkhan/42_warsaw/blob/master/miniShell/src/execution/execute_pipeline_cmds.c): `miniShell/src/execution/execute_pipeline_cmds.c`
- [Shell Builtins](https://github.com/faizanmkhan/42_warsaw/tree/master/miniShell/src/builtin_functions): `miniShell/src/builtin_functions`
- [Map Parsing](https://github.com/faizanmkhan/42_warsaw/tree/master/cub3D/src/parser): `cub3D/src/parser`
- [Game Engine](https://github.com/faizanmkhan/42_warsaw/tree/master/cub3D/src/engine): `cub3D/src/engine`
- [Ray Renderer](https://github.com/faizanmkhan/42_warsaw/tree/master/cub3D/src/renderer): `cub3D/src/renderer`
- [Fractal Renderer](https://github.com/faizanmkhan/42_warsaw/blob/master/fract-ol/main.c): `fract-ol/main.c`
- [Fractal Families](https://github.com/faizanmkhan/42_warsaw/blob/master/fract-ol/mandelbrot.c): `fract-ol/mandelbrot.c`

### Process Tools

- [Philosopher Simulation](https://github.com/faizanmkhan/42_warsaw/blob/master/Philosopher/main.c): `Philosopher/main.c`
- [Dining Routine](https://github.com/faizanmkhan/42_warsaw/blob/master/Philosopher/routine.c): `Philosopher/routine.c`
- [Signal Client](https://github.com/faizanmkhan/42_warsaw/blob/master/minitalk/client.c): `minitalk/client.c`
- [Signal Server](https://github.com/faizanmkhan/42_warsaw/blob/master/minitalk/server.c): `minitalk/server.c`
- [Stack Sorter](https://github.com/faizanmkhan/42_warsaw/blob/master/push_swap/quick_sort.c): `push_swap/quick_sort.c`

### C Libraries

- [ft_printf](https://github.com/faizanmkhan/42_warsaw/blob/master/ft_printf/ft_printf.c): `ft_printf/ft_printf.c`
- [get_next_line](https://github.com/faizanmkhan/42_warsaw/blob/master/get_next_line/get_next_line.c): `get_next_line/get_next_line.c`
- [libft](https://github.com/faizanmkhan/42_warsaw/blob/master/libft/libft.h): `libft/libft.h`

### Other components

- **Exercise User**

## Connections

- Exercise User → PhoneBook: uses
- PhoneBook → Contact: stores
- Exercise User → Animal Hierarchy: runs examples
- Exercise User → Animal Brain: tests copies
- Exercise User → Trap Hierarchy: exercises
- Shell Execution → miniShell: executes pipeline (evidence: `miniShell/src/execution/execute_pipeline_cmds.c`)
- CPP Examples → Fixed Point: includes exercise (evidence: `CPP/cpp_02/ex01/main.cpp`)
- CPP Examples → Animal Hierarchy: includes exercise (evidence: `CPP/cpp_04/ex00/main.cpp`)
