https://github.com/ompreetham/pick
Pick is a SwiftUI-based game where users interact with "Needles" and score points based on their actions. The game features a dynamic UI with options to customize the number of needles and display scores in words.
https://github.com/ompreetham/pick
environment game needle needles pick preview score swift swiftui update
Last synced: 7 months ago
JSON representation
Pick is a SwiftUI-based game where users interact with "Needles" and score points based on their actions. The game features a dynamic UI with options to customize the number of needles and display scores in words.
- Host: GitHub
- URL: https://github.com/ompreetham/pick
- Owner: OmPreetham
- License: mit
- Created: 2024-07-31T00:32:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-31T19:13:57.000Z (about 1 year ago)
- Last Synced: 2024-08-01T03:44:24.300Z (about 1 year ago)
- Topics: environment, game, needle, needles, pick, preview, score, swift, swiftui, update
- Language: Swift
- Homepage:
- Size: 4.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pick - SwiftUI Game
## Overview
Pick is a SwiftUI-based game where users interact with "Needles" and score points based on their actions. The game features a dynamic UI with options to customize the number of needles and display scores in words.
## Features
- **Dynamic Needle Views**: Interact with needle objects that appear on the screen.
- **Score Tracking**: View your score in both numeric and word formats.
- **Customization**: Adjust the number of needles using the settings sheet.
- **Winning Condition**: The score resets and a congratulatory message appears when all needles are picked.## Screenshots



_Description of what the screenshot shows._## Installation
1. **Clone the repository**:
```sh
git clone https://github.com/OmPreetham/pick.git
```2. **Navigate to the project directory**:
```sh
cd pick
```3. **Open the project in Xcode**:
```sh
open Pick.xcodeproj
```4. **Build and run the project** in Xcode.
## Usage
1. **Start the Game**: Launch the app in the iOS Simulator or on a physical device.
2. **Interact with Needles**: Drag the needle views to score points.
3. **Adjust Needles**: Tap the settings icon in the top right corner to adjust the number of needles.
4. **View Score**: The current score is displayed in numeric and word formats at the top of the screen.
5. **Win Condition**: When all needles are picked, the score resets, and a "YEYY! You Picked All" message is displayed.
## Code Structure
- **PlayView.swift**: Contains the main game view with score display, needle management, and settings sheet.
- **NeedleView.swift**: Handles the individual needle views and their interaction logic.
- **EditView.swift**: Manages the settings sheet for adjusting the number of needles.
- **Stand.swift**: Represents the static elements or background of the game.## Contributing
Contributions are welcome! Please follow these steps:
1. Fork the repository.
2. Create a new branch for your changes.
3. Make your modifications.
4. Submit a pull request with a clear description of the changes.## License
This project is licensed under the [MIT License](LICENSE).