Back to projects

Academic

Dekal

An evolving Swift project built across several versions, moving from a 3x3 grid to multiplayer logic with validation, scoring, deck management and suggested moves.

Swift Dekal project screenshot

Context

Polytech Montpellier piscine project focused on learning Swift, protocols and incremental game structure.

Role

Designed card, player, grid and game models, then progressively extended rules and validation.

Stack

Swift

Architecture

Swift files separated by responsibility, with CarteProtocol, JoueurProtocol, GrilleProtocol and JeuProtocol guiding evolution.

Key features

  • Successive 2-player versions, 3x3 then 4x4 grid.
  • Dynamic handling of 2, 3 or 4 players.
  • Suggested moves and deck size adapted to player count.

Learnings

  • Use Swift with protocol-oriented design.
  • Evolve game code without breaking previous versions.
  • Clarify scoring, validation and turn management.