Skip to content

This project is a simple card game where the goal is to draw a higher card than the computer. I built this app

Notifications You must be signed in to change notification settings

PCapid3v/gameOfWar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of War

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.

How to Play

  1. The game starts by making an API call to create a new deck of cards.
  2. Click the "Draw" button to draw a card from the deck.
  3. The computer will also draw a card.
  4. The player with the higher card value wins the round.
  5. If there is a tie, the game enters "War" mode, and another card is drawn to break the tie.
  6. The game continues until the deck is exhausted or one player reaches a predetermined score.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • External Card Deck API

Demo

Check out the live demo of the game: Live Demo Link

Installation

  1. Clone the repository:

git clone https://github.com/yourusername/gameOfWar.git

  1. Open the index.html file in your web browser.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

Enjoy playing Game of War, and may the best player win!

About

This project is a simple card game where the goal is to draw a higher card than the computer. I built this app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published