JavaFX
Sokoban
A desktop puzzle game built by a team of four students, with levels, saved games and progression.

01CONTEXT
In Sokoban, the player pushes boxes onto their goals without blocking the board. This academic team project built a desktop version, covering the interface and rules as well as level and save-game management.
02TEAM WORK & MY CONTRIBUTIONS
TEAM WORK
As a team, we built a Java and JavaFX application with MVC architecture. It includes file-loaded levels, movement and collision handling, undo and restart, progression, scoring, and save/load. We also worked on level validation, tests and continuous integration.
WHAT I WORKED ON
- Extended SaveSlotManager and CurrentGameState to serialize games and manage save slots, and added tests for that flow.
- Connected saving and loading to MenuController and SaveGameView, including slot refresh and confirmation before overwriting a game.
- Implemented progression between levels and the transition to the completion screen.
- Added tests for Level, LevelFileReader and the save system.
- Set up the initial GitLab CI configuration to run the Maven tests.
03TECHNOLOGIES
04ARCHITECTURE
We organized the game using MVC: JavaFX views present the interface, controllers coordinate actions, and the game service brings the rules together. Level loading and saved games are handled separately.
Controllers
Game service
Entities
05FEATURES
- JavaFX desktop interface with levels loaded from files.
- Player movement, box pushing and collision handling.
- Actions to undo moves and restart a level.
- Level progression and scoring.
- Save and load games using three slots.
- Validation of levels and their contents.
06TECHNICAL CHALLENGES
- Keep the board state consistent across moves, undo and restart.
- Resume a saved game without losing its level and progression state.
- Integrate interface, game logic and persistence changes across a team.
07STATUS & OUTCOMES
Completed academic project; the gallery shows the main menu and a gameplay screen.
08VISUAL ARCHIVE

