How xandaokruger/common-core works
This repository is a collection of 42-school projects rather than one integrated application: C utility libraries, a stack-sorting program, a maze generator/viewer, and independent Python exercises. The clearest end-to-end workflow is push_swap: read command-line input, initialize stacks, select and run a strategy, then free resources. The maze project separately generates and renders mazes. Relationships for unsampled implementations are omitted; the graph uses the provided excerpts and SOURCE INDEX, not assumptions about sibling modules.
Main entry points: main.c Program entry · a_maze_ing.py Application entry · generator.py Generate and solve · menu.py Interactive menu
Components 23
C Utilities
- Original libft
Milestone0/LIBFT_ORIGINAL - Extended libft
Milestone0/libft_modificado - Line reader
Milestone1/get_next_line/get_next_line.c - Formatter
Milestone1/printf/ft_printf.c - Format helpers
Milestone1/printf
Stack Sorting
- Program entry
Milestone1/push_swap/srcs/main.c - Input and setup
Milestone1/push_swap/srcs/push_swap.c - Strategy selection
Milestone1/push_swap/srcs/flags.c - Stack state
Milestone1/push_swap/srcs/stack.c - Sorting algorithms
Milestone1/push_swap/algorithm - Stack operations
Milestone1/push_swap/operations - Bundled libft
Milestone1/push_swap/libft
Maze Application
- Application entry
Milestone2/A_maze_ing/a_maze_ing.py - Maze configuration
Milestone2/A_maze_ing/config.py - Generate and solve
Milestone2/A_maze_ing/mazegen/generator.py - Maze glyphs
Milestone2/A_maze_ing/mazegen/glyphs.py - Interactive menu
Milestone2/A_maze_ing/view/menu.py - Maze renderer
Milestone2/A_maze_ing/view/render.py
Python Projects
- Python exercises
Milestone2/Python_Modules - Alchemy exercises
Milestone2/Python_Modules/Python_Module_06 - Creature tournament
Milestone2/Python_Modules/Python_Module_07/tournament.py
Other components
- CLI user
- Maze user
Connections 15
- CLI user → Program entry: runs
- Program entry → Input and setup: initializes input
Milestone1/push_swap/srcs/main.c - Program entry → Stack state: sets up stacks
Milestone1/push_swap/srcs/main.c - Program entry → Strategy selection: executes strategy
Milestone1/push_swap/srcs/main.c - CLI user → Application entry: runs
- Application entry → Maze configuration: imports
Milestone2/A_maze_ing/a_maze_ing.py - Application entry → Generate and solve: imports package
Milestone2/A_maze_ing/a_maze_ing.py - Application entry → Interactive menu: imports view
Milestone2/A_maze_ing/a_maze_ing.py - Generate and solve → Maze glyphs: uses glyphs
Milestone2/A_maze_ing/mazegen/generator.py - Interactive menu → Generate and solve: uses generator
Milestone2/A_maze_ing/view/menu.py - Interactive menu → Maze renderer: uses renderer
Milestone2/A_maze_ing/view/menu.py - Maze renderer → Generate and solve: reads maze
Milestone2/A_maze_ing/view/render.py - Formatter → Format helpers: dispatches specs
Milestone1/printf/ft_printf.c - Creature tournament → Python exercises: imports creature packages
Milestone2/Python_Modules/Python_Module_07/tournament.py - Creature tournament → Alchemy exercises