/Ace_Hunter_JS

A JavaScript card game to find the Ace of Spades card among four cards

Primary LanguageJavaScriptMIT LicenseMIT

Ace Hunter - Card Game

image

Welcome to Ace Hunter, a JavaScript card game. The objective of the game is to find the Ace of Spades card among four cards, which are randomly shuffled each round.

Description

High-Tech Ace is a single-player card game developed using HTML, CSS, and JavaScript. The game consists of multiple rounds. In each round, the player chooses a card. If the player selects the Ace of Spades, their score increases, and they proceed to the next round. The game ends after a predetermined number of rounds or can be resumed later if left incomplete.

Setup

  1. Fork the repository
  2. Clone the repository.
  3. Open the index.html file in a web browser.

OR

Just click on this link to play the game

How to Play

  1. Click the "Play Game" button to start a new game.
  2. Four cards will be displayed, shuffled, and placed face down.
  3. Click on the card that you think is the Ace of Spades.
  4. The positions of the cards are revealed, and the game moves to the next round.
  5. The game ends after four rounds. Your final score is based on the number of times you correctly identified the Ace of Spades.

Features

  • The game includes a scoring system, where points are added based on correct identification of the Ace of Spades.
  • The game maintains the state and offers an option to resume an incomplete game.
  • Cards are revealed and shuffled in a visually appealing manner.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Reference

This game was developed using this guide from FreeCodeCamp

License

This project is licensed under the MIT License. You can find the full text of the license in the LICENSE.md file.