Welcome to the War Card Game, an iOS application developed using Swift and SwiftUI. This app replicates the classic card game "War," where two players compete by comparing card values. The project includes all necessary resources, including code, assets, and design files, contained within this repository.
- Classic Gameplay: Simulates the traditional War card game.
- Smooth Animations: Enhanced user experience with SwiftUI animations.
- Rich Visuals: Includes card assets and a visually appealing UI.
- Local Play: Play against the computer in single-player mode.
Ensure you have the following installed:
- macOS: Version 12.0 or later.
- Xcode: Version 13.0 or later.
- Swift: Version 5.5 or later.
-
Clone this repository:
git clone https://github.com/your-repo/war-card-game.git cd war-card-game -
Open the project in Xcode:
open WarCardGame.xcodeproj
-
Build and run the app on the iOS simulator or a physical device.
- Launch the app on your iOS device or simulator.
- Tap "Start" to begin the game.
- Cards will be dealt randomly to two players.
- Each round, the top card from each player's deck is compared:
- The player with the higher card wins the round and collects both cards.
- In the event of a tie, "War" occurs, and additional cards are played.
- The game ends when one player collects all cards.
- Cards: High-quality card images for all 52 cards in the standard deck.
- Sounds: Optional sound effects for card dealing and winning rounds.
- App Icons: Provided in all required resolutions for iOS.
We welcome contributions to improve the game! To contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit your changes and push to your fork.
- Open a pull request.
Enjoy the game! 🎮 If you encounter any issues or have suggestions, feel free to open an issue. 😊


