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