Open-source iOS game-solving toolkit built with SwiftUI, featuring algorithmic assistants for Word Hunt, Anagrams, Four in a Row (Connect Four), Mancala, Sea Battle (Battleship), and Chess (Stockfish).
If this project is useful, star the repo to help more developers discover it.
PigeonHole is a mobile strategy assistant that helps analyze game states and suggest strong moves.
The Xcode target/app name is currently GameCheat, while this repository is published as PigeonHole.
This repository is useful if you are looking for:
- iOS game AI examples in Swift
- Stockfish integration in a SwiftUI app
- minimax strategy implementations
- trie/DFS word search solvers
- Battleship-style probability heatmaps
| Game | What it Solves | Core Approach |
|---|---|---|
| Word Hunt | Finds valid words and board paths on a 4x4 grid | Trie + DFS over adjacent cells |
| Anagrams | Finds valid words from scrambled letters | Trie + letter-frequency DFS |
| Four in a Row | Recommends strongest next column | Minimax search |
| Mancala | Recommends strongest next pit | Minimax search |
| Sea Battle | Suggests best shot coordinate | Probability grid + hunt/target mode |
| Chess | Suggests best legal move | Stockfish bridge + fallback evaluator |
- Real SwiftUI + algorithm code, not toy pseudocode
- Multiple classic game solvers in one iOS codebase
- Native Stockfish integration path for on-device chess analysis
- Test-backed core logic for easier contribution and extension
GameCheat/Core/WordEngine: Trie and dictionary loading for word gamesGameCheat/Core/MinimaxEngine: shared minimax contracts used by board gamesGameCheat/Core/BattleshipEngine: Sea Battle probability calculator and targeting heuristicsGameCheat/Games/Chess/Stockfish: native bridge layer to embedded Stockfish sourceGameCheatTests: unit tests covering solver behavior and game logic
- Xcode 16+
- iOS 17+ SDK
- XcodeGen
git clone https://github.com/eliseorobles/PigeonHole.git
cd PigeonHole
xcodegen generate
open GameCheat.xcodeprojxcodebuild -project GameCheat.xcodeproj -scheme GameCheat -destination 'platform=iOS Simulator,name=iPhone 16' testGameCheat/ # App source (SwiftUI + engines)
GameCheatTests/ # Unit tests
ThirdParty/Stockfish/ # Embedded Stockfish source (GPLv3)
GameCheat.xcodeproj/ # Generated Xcode project
project.yml # XcodeGen project spec (source of truth)
This repository uses GNU General Public License v3.0 (GPL-3.0).
See LICENSE for full terms.
Stockfish is included under GPLv3 and remains GPLv3 in this project.
See ThirdParty/Stockfish/Copying.txt and TERMS.md for redistribution obligations.
See TERMS.md.
Issues and pull requests are welcome. By contributing, you agree that your contributions are licensed under GPLv3.
iOS game solver, SwiftUI game assistant, Stockfish iOS integration, chess engine Swift, word hunt solver Swift, anagram solver iOS, connect four minimax Swift, mancala AI, battleship probability calculator, open source game AI.