Back to projects
Desktop game · Academic projectCompleted

Sokoban

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

PROJECT VIEWSSokoban game's main menu
APPLICATION ARCHITECTURE

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

JavaJavaFXMavenJUnit 5JaCoCoSonarQubeGitGitLab CI

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.

01View

JavaFX

02Control

Controllers

03Rules

Game service

04Model

Entities

The diagram shows the flow from JavaFX views to the game rules and model.

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.

Back to projects