A retro gaming platform that swaps its graphics library mid-game
- context
- EPITECH · team of 3
- period
- Mar → Apr 2026
- platforms
- C++ · ncurses · SDL2 · SFML

> cat context.md
An EPITECH project, built with Evans Ramin and Marin Jeunot. Its general architecture was shared with another team: Nicolas Gonzalez, Daniel Lozovan and Thibault Miallet. My part: the core (main loop and dynamic loading of the libraries with dlopen), the menu, a good share of the ncurses, SDL2 and SFML displays, and the CI. The games, Snake and Minesweeper, were written by my teammates.
> cat how-it-works.md
- 01The core never links to a graphics library: games and displays are separate .so plug-ins, loaded with dlopen, dlsym and dlclose.
- 02Two interfaces keep them apart: IDisplay for rendering and input, IGame for the game logic. A display never touches the rules, a game draws nothing itself.
- 03The menu lists the games and graphics libraries found in ./lib, the players' scores and a field for the player's name. Keys switch library, switch game, restart or go back to the menu.
- 04The CI installs ncurses, SDL2 and SFML and checks that the core, the displays and the games all build.