It is a simple card game where the player competes against the computer to draw the highest card. In the event of a tie, the game enters a "War" phase, requiring another card to be drawn to determine the winner.
- The game starts by making an API call to create a new deck of cards.
- Click the "Draw" button to draw a card from the deck.
- The computer will also draw a card.
- The player with the higher card value wins the round.
- If there is a tie, the game enters "War" mode, and another card is drawn to break the tie.
- The game continues until the deck is exhausted or one player reaches a predetermined score.
- HTML
- CSS
- JavaScript
- External Card Deck API
Check out the live demo of the game: Live Demo Link
- Clone the repository:
git clone https://github.com/yourusername/gameOfWar.git
- Open the
index.htmlfile in your web browser.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.
- GitHub Pages for hosting the live demo.
Enjoy playing Game of War, and may the best player win!