ft_transcendence — Mert İlhan
The final project of the common core: a real time multiplayer Pong website with accounts, chat and matchmaking.
The capstone of the 42 common core, and the only project in it that is a product rather than an exercise. A single page web application where players sign in, chat, challenge each other and play Pong against another person in real time. It is also the first project that is built as a team, which makes the interfaces between parts as important as the parts themselves.
The server owns the game state
Ball position, paddle position and score live on the server, which steps the simulation on a fixed tick and broadcasts it. Clients send intent — up, down, stop — and never their own coordinates. Without that rule a player can edit the numbers in their own browser and win every rally, so authority has to sit on one side and it cannot be the client's.
Making a fast game survive a slow network
A tick arriving late must not make the ball stutter. The client interpolates between the last two states it received rather than waiting, and reconciles when the next authoritative state contradicts what it drew. The gap between what the player sees and what the server believes is the central engineering problem of the whole project.
Matchmaking, invitations and spectating
Players either queue for an opponent or challenge someone directly from the chat. A game that is in progress can be watched live by others, which means the same state stream has to serve participants and observers without leaking anything a spectator should not have.
Chat with real moderation
Public, private and password protected channels plus direct messages. Channels have an owner and administrators who can kick, mute for a duration, and ban; users can block each other, which has to hide messages retroactively in a shared channel without deleting them for everyone else.
Authentication done properly
Sign in through the 42 OAuth provider rather than storing passwords, with two factor authentication on top and sessions that survive a reload without leaving a token somewhere a script can read it.
Profiles, history and a ladder
Every finished match is recorded, so profiles carry a win/loss record, a match history and a live online/offline/in-game status, and the ladder ranks players against each other.
One command to run the whole stack
Frontend, backend, database and reverse proxy each in their own container, brought up together by a single docker-compose call — the same discipline Inception covered, applied to a real application instead of a demo.
Technologies: Full Stack, WebSockets, Real Time, Docker
Other Projects by Mert İlhan
- MediScan AI — AI powered health platform that recognises medicine from a photo of its box, blister or the pill itself, then rewrites the official leaflet in language anyone can understand.
- This Portfolio — The site you are reading. A React single page app deployed to GitHub Pages, with a projects section that reads its own statistics and documentation from the GitHub API at runtime.
- Employee Retention Model — Capstone of the Google Advanced Data Analytics certificate: predicting which employees are about to leave a company, and identifying what is actually driving them out.
- Born2beroot — A hardened Debian server built from a blank virtual machine: encrypted LVM partitions, a strict sudo and password policy, a firewall, a scheduled monitoring script — and, for the bonus, a WordPress site served by lighttpd and MariaDB.
- NetPractice — A networking exercise: repair ten broken TCP/IP topologies by working out the addressing, masks and routes each one needs.
- CPP Module 09 — The last C++ module: choosing the right STL container for each problem and paying for that choice in performance.
- Webserv — A non blocking HTTP/1.1 server written from scratch in C++98. Parses its own nginx style config, serves static files, handles CGI and keeps many clients alive on a single event loop.
- CPP Modules 05-08 — The advanced half of the 42 C++ track: exception hierarchies, type casting and serialisation, templates, and finally container and iterator work on top of the STL.
- Inception — A small infrastructure built entirely from hand written Dockerfiles: NGINX with TLS, WordPress on PHP-FPM and MariaDB, wired together with docker-compose and persistent volumes.
- miniRT — A ray tracer in C. Parses a scene description, then renders spheres, planes and cylinders with ambient and diffuse lighting, hard shadows and 2×2 supersampling.
- minishell — A working shell in C. Lexer and parser for quotes, redirections and pipes, plus its own builtins, environment handling and signal behaviour that matches bash.
- Philosophers — The dining philosophers problem solved with threads and mutexes. No philosopher starves and no data race survives, which is the entire difficulty of the exercise.
- push_swap — Sorting a stack with a restricted instruction set, using a radix sort to keep the instruction count low. Graded purely on how short the output sequence is.
- fract-ol — Real time fractal explorer built on MiniLibX, rendering the Mandelbrot and Julia sets with interactive zoom deep into the boundary.
- minitalk — A client and server that exchange whole strings using nothing but the two UNIX user signals, encoding each character one bit at a time.
- get_next_line — Reads one line at a time from any file descriptor, keeping the leftover bytes in a static buffer between calls so nothing is read twice or lost.
- ft_printf — A reimplementation of printf with variadic arguments, handling the conversion specifiers of the original and returning the same character count.
- libft — The first project of the cursus: a static library rebuilding the parts of the C standard library that every later project depends on.