A native iOS deduction assistant for the board game Clue (Cluedo). Use it alongside a physical game to automatically track suggestions, eliminate possibilities, and solve the mystery faster than manual note-taking ever could.
@Observable macro and @MainActor isolation# Generate Xcode project (if using XcodeGen)
xcodegen generate --spec ClueSolver/project.yml
# Or open directly
open ClueSolver/ClueSolver.xcodeproj
Build and run on an iOS 17+ simulator or device from Xcode.
# Logic + integration tests (fast, no simulator UI)
xcodebuild test \
-project ClueSolver/ClueSolver.xcodeproj \
-scheme ClueSolver \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
-skip-testing:ClueSolverUITests
# Full suite including UI tests
xcodebuild test \
-project ClueSolver/ClueSolver.xcodeproj \
-scheme ClueSolver \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro'
The test suite includes oracle-verified solver correctness, replay equivalence checks, seeded random transcript testing, invariance tests (seat rotation, card renaming), edition validation, persistence integration, performance benchmarks, and end-to-end UI automation.
ClueSolver/
├── App/ Entry point and app state management
├── Models/ SwiftData models (Game, Player, Card, Turn, CardMarker, GameEdition)
├── Engine/ Constraint propagation solver, state validator, snapshots
├── Views/ SwiftUI screens (Home, Setup, Dashboard, Turn recording, Custom editions)
├── Editions/ Edition registry + 24 bundled JSON edition definitions
├── Theme/ Design system, haptics, sound, animations
├── Utilities/ Undo/redo manager, export manager
└── Extensions/ Navigation styling helpers
Docs/project-overview.md — Comprehensive project description for onboarding and LLM contextDocs/edition-support-audit.md — Detailed audit of which editions the solver can and cannot modelDocs/testing-suite.md — Test coverage strategy, commands, and CI recommendationsDocs/dashboard-accessibility-issues.md — Known accessibility issues on the game dashboard| Status | Count | Examples |
|---|---|---|
| Fully supported | 3 | Classic Clue, Clue 2016, Master Detective |
| Likely compatible (needs verification) | 11 | Stranger Things, The Office, Scooby-Doo, D&D, etc. |
| Not supported (extra mechanics) | 10 | Harry Potter, Game of Thrones, Star Wars, etc. |
See the edition support audit for details on each edition.
Private repository. All rights reserved.