A working roguelike
A complete 2D roguelike game, playable from start to finish.
Project · 2026
An intelligent 2D roguelike whose monsters learn how YOU play.
Team
5 people
Duration
6 months
Context
ESEO · DAIA option
Summary
Roguia is a 2D roguelike, a genre inspired by the 1980 game Rogue, where the player clears as many dungeons as possible without dying. We, 5 friends, decided to mix our passion for video games with AI and data. Our touch: our evil little monsters learn through reinforcement learning to adapt to each player's strategy.
My role. I managed the reinforcement learning algorithm crafted to make you loose ;)
Timeline
Step 1
Defining the player character, the starting point of the game.
In pictures
Tools
The language of most of the game and of the monsters.
To train the monsters, so that their difficulty adapts to each player.
To generate the rooms of every map randomly.
A NoSQL database that stores the monsters' training logs.
A SQL database that stores the player's information, inventory and more.
Each of us worked on a personal branch of the shared code.
Challenges
At first, the monsters were not smart and players could get bored. We pre-trained them to give them a base of knowledge before the player even downloads the game, then let each monster adapt to the player's style: the more the player attacks, the more the monsters dodge.
We each worked on our own branch, held weekly meetings and communicated a lot.
Results
A complete 2D roguelike game, playable from start to finish.
Monsters driven by reinforcement learning that adapt to each player.
Maps whose rooms are generated procedurally.
MongoDB and PostgreSQL set up for the training logs and the player data.
Next project
Rerailing Simulation