TCAminesweeper
Minesweeper game in Swift UI using the Composable Architecture
Install / Use
/learn @RogyMD/TCAminesweeperREADME
Minesweeper
This project is a copy of the Windows game Minesweeper.
About
Minesweeper is an iOS & Mac Catalyst application built entirely in Swift. The logic is build in the Composable Architecture and the UI is built in SwiftUI.
The project shows following use cases:
- Highly modularized: every feature is isolated into its own module with minimal dependencies between them, allowing us to compile and run features in isolation without building the entire application.
- Fully controlled side effects. Every feature is provided with all the dependencies it needs to do its work, which makes testing very easy.
- The core logic of the application is put into modules named like *Core, and they are kept separate from modules containing UI, which is what allows us to share code across multiple platforms (SwiftUI and UIKit), but could also allow us to share code across iOS, macOS, watchOS and tvOS apps.
- Comprehensive test suite for every feature, including integration tests of many features working in unison, and end-to-end testing of side effects.
Screenshots
| Game | High Scores | Settings | |---|---|---| | <img src="Assets/README/game.png" width="300"> | <img src="Assets/README/high_scores.png" width="300"> | <img src="Assets/README/settings.png" width="300"> |
| Mac Catalyst |
|---|
|
|
License
The source code in this repository may be run and altered for education purposes only and not for commercial purposes. For more information see LICENSE.
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
