This is a simple Whack-a-Mole game implemented using HTML, CSS, and JavaScript.
This project is a browser-based game where players aim to hit randomly appearing moles within a specified time frame. It utilizes fundamental web technologies such as HTML, CSS, and JavaScript to create an interactive gaming experience.
- Mole Whacking: Click on the appearing moles to increase your score.
- Timer: A countdown timer adds urgency to the gameplay.
- Score Tracking: The game keeps track of your score.
Include a link or embedded demo of the game in action.
To run this game locally, follow these steps:
- Clone the repository:
git clone https://github.com/googly1030/whack-a-mole.git
- Navigate to the project directory.
- Open
index.html
in your preferred web browser.
Once the game is running, click on the appearing moles to increase your score within the given time limit.
To start the game, simply click the "Start" button. The moles will randomly pop up in different positions within the grid of squares. Click on them quickly to increase your score.
To end the game or reset, click the "Reset" button.
Contributions are welcome! If you'd like to improve the game or add new features, feel free to open an issue or submit a pull request.
- Fork the repository.
- Create your feature branch:
git checkout -b feature/NewFeature
- Commit your changes:
git commit -am 'Add a new feature'
- Push to the branch:
git push origin feature/NewFeature
- Submit a pull request.
This project is licensed under the MIT License.