This is a simple math game written in JavaScript and jQuery. The game consists of four crystal buttons that each add a specific amount of points to the player's total score when clicked. The player wins if their total score matches a random number generated at the start of the game. The game restarts whenever the player wins or loses.
- Open the
index.html
file in your web browser. - Click on a crystal to reveal its point value.
- Each time you click on a crystal, its point value will be added to your score.
- Try to get your score to match the random number displayed at the start of the game.
- If your score goes above the random number, you lose the game.
- If your score matches the random number, you win the game.
- The game will automatically restart and generate a new random number and crystal values.
To run the Crystal Collector Game on your local machine, follow these steps:
- Clone the repository to your local machine using
git clone
. - Open the
index.html
file in your web browser.
Faran Navazi
This project is licensed under the MIT License.