Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaredcassoutt/minesweeper_swiftui
An open-source Minesweeper app designed for relaxation, with a clean, minimalist interface. Built with SwiftUI for an intuitive experience, this app brings puzzle-solving and calming gameplay together in a smooth, responsive design.
https://github.com/jaredcassoutt/minesweeper_swiftui
ios puzzle swift swiftui swiftui-demo
Last synced: 4 days ago
JSON representation
An open-source Minesweeper app designed for relaxation, with a clean, minimalist interface. Built with SwiftUI for an intuitive experience, this app brings puzzle-solving and calming gameplay together in a smooth, responsive design.
- Host: GitHub
- URL: https://github.com/jaredcassoutt/minesweeper_swiftui
- Owner: jaredcassoutt
- Created: 2025-01-02T01:14:10.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2025-01-18T21:37:00.000Z (11 days ago)
- Last Synced: 2025-01-18T22:25:52.597Z (11 days ago)
- Topics: ios, puzzle, swift, swiftui, swiftui-demo
- Language: Swift
- Homepage:
- Size: 943 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwiftUI MineSweeper Game
A full-featured Minesweeper game built with SwiftUI, offering multiple difficulty levels and an engaging, user-friendly design. This app brings the classic puzzle game to life, complete with flagging mode, hints, and a confetti celebration for successful completions!## Preview
## Features
- Three Difficulty Levels: Choose from Easy, Medium, and Hard to match your puzzle-solving skills.
- Interactive Minesweeper Grid: Tap to reveal tiles, flag potential mines, and navigate the game intuitively.
- Game Center Integration: Track your scores on the leaderboard and compete with others to achieve the fastest times.
- Confetti Celebration: Enjoy a vibrant confetti animation when you successfully clear a board!
- Flagging Mode and Hints: Switch to flagging mode to mark potential mines or use hints to guide your next move.
- Restart and New Game Options: Start over or dive into a new game at any time for endless fun.## Getting Started
1. Clone the Repository:
```bash
git clone https://github.com/jaredcassoutt/minesweeper_swiftui.git2. Open the Project in Xcode:
- Open Minesweeper.xcodeproj in Xcode.
- Make sure you’re running Xcode 12 or later.
3. Run the App:
- Build and run on the simulator or an actual device.
- Select a difficulty level and start solving puzzles!## How It Works
The project is organized into several key components:- **GameView.swift:** The main game screen, displaying the Minesweeper grid and handling user interactions.
- **GameViewModel.swift:** The engine that generates new puzzles with unique solutions, adjustable by difficulty.
- **GameCenterHelper.swift:** Manages Game Center authentication and leaderboard score submissions.
- **ConfettiView.swift:** Displays a celebratory confetti animation when a puzzle is completed.## Future Enhancements
- **Daily Challenges:** Add a daily board for players to compete on a global leaderboard.
- **Sound Effects and Animations:** Add subtle sound effects and more animations to enhance the user experience.## Contributing
Feel free to fork the project, submit issues, or suggest improvements. Feedback and ideas for new features are welcome!## License
This project is open-source under the MIT License.
Thanks for checking out my SwiftUI Minesweeper game! Dive into the code, solve some puzzles, and see if you can beat your own high scores.