Stack Cards Sort

A one-tap color-sorting puzzle with a deterministic Swift game engine.

Personal Project September 2026 - Present
Stack Cards Sort logo and colorful stacked tiles on a blue background

Project Overview

Stack Cards Sort is a native iOS puzzle with one simple move: tap a column to insert the tile in your hand at the top and collect the tile ejected from the bottom. Complete a column in one color to lock it, then lock every column to finish the level.

Solvable by Construction

Levels start from a solved board and are scrambled with reversible moves. Each generated puzzle retains a known solution, and its level seed produces the same board on every device. A separate search-based solver powers hints.

The rules, generator, and session state live in a pure-Swift package. SwiftUI handles navigation and controls, while SpriteKit draws and animates the board from that state. This keeps game rules independent of rendering and makes the domain logic testable.

Key Features

  • Progressive puzzles: seeded levels, move budgets, stars, and unlockable power-ups.
  • Daily challenges: daily puzzles with Game Center leaderboard integration.
  • Play at your pace: Relax Mode removes the move limit; undo, hints, and swaps support harder boards.
  • Native purchases: StoreKit 2 powers the Pro unlock and consumable hint packs.
  • Companion website: introduces the game, screenshots, and support information.

Screenshots

Stack Cards Sort puzzle board with colorful tile columns
Level selection and progression in Stack Cards Sort
Completed color-sorting puzzle and level results
Stack Cards Sort home screen with game modes and practice entry points
Daily puzzle board with its move budget
Player progress, stars, and puzzle achievements

Tech Stack

  • SwiftUI
  • Swift 6
  • SpriteKit
  • StoreKit 2
  • GameKit

Have a useful problem to solve?

Tell me what you are making, where it is getting stuck, and what a good outcome looks like.

Contact Johan