Welcome to the Whac-A-Mole game! This is a fun and interactive game where you have to whack the moles as they pop up from their holes. Let's get started!
- Start the game by clicking the "Play" button.
- The moles will randomly pop up from their holes.
- Use your mouse or tap on the moles to whack them before they go back into their holes.
- Each time you successfully whack a mole, you will earn points.
- Be careful not to whack the bombs! Whacking a bomb will deduct points from your score.
- The game will continue for a certain duration or until you reach a specific target score.
- After the game ends, you can choose to play again by clicking the "Restart" button.
- Use your mouse to click on the moles and whack them.
- On touch devices, tap on the moles to whack them.
- Whacking a mole: +10 points
- Whacking a bomb: -5 points
The game will end in the following conditions:
- Time's up: When the game duration expires.
- Target score reached: When you reach the target score.
This Whac-A-Mole game is built using the following technologies:
- HTML
- CSS
- JavaScript
To play the Whac-A-Mole game locally on your machine, follow these steps:
- Clone the repository to your local machine.
- Open the project directory.
- Open the
index.html
file in your preferred web browser. - Start playing the game!
You can find a live demo of the Whac-A-Mole game here.
If you'd like to contribute to this Whac-A-Mole game, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License.