Back to all work

Architecture Kata / Swift & SwiftUI pair programming

TicTacToe (TDD & DDD Kata)

A TicTacToe game engine engineered using Test-Driven Development and Domain-Driven Design (DDD), with a reactive SwiftUI visual interface.

Domain-Driven DesignTDD Game EngineGitHub Open Source
  • TDD
  • DDD
  • SwiftUI
  • Clean Architecture
  • AI Pair Programming
TicTacToe game ready state with clean board
TicTacToe game ongoing state with dynamic player status
TicTacToe game winning state with victory highlight
Design pattern DDD + TDD
UI layer SwiftUI
Pairing Human + AI

What the project needed.

Demonstrates clean separation between business logic and UI presentation. The TDD-verified domain engine made constructing the SwiftUI front-end completely trivial and bug-free.

What I shipped.

  • Engineered an immutable, side-effect-free TicTacToe game engine using strict TDD.
  • Applied Domain-Driven Design concepts to model Board, Cell, Player, and Move value types.
  • Paired with early AI models, systematically identifying and correcting flawed generated code against the rock-solid test suite.

Technical architecture & leadership.

  • Developed domain specifications, test cases, and integrated the SwiftUI reactive bindings.

Results in production.

  • Educational repository demonstrating proper software engineering discipline and AI-assisted coding safeguards.

Have a similar challenge?

Whether you are architecting a new Apple product, optimizing video/AVFoundation pipelines, or enforcing strict TDD, tell me what needs to be solved.

Discuss your project

Studio Assistant

Ask about Hugo’s work

Answers come from Hugo’s published studio facts and CV via Cloudflare Workers AI. Hugo reads the questions to improve how the site explains his work, so that one day you will not need to ask. Questions and answers are kept for 12 months, without your name or IP address, so please leave personal details out.