Skip to content

# Whac-A-Mole Game 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!

Notifications You must be signed in to change notification settings

Yeab-Ad/Punch-Game

Repository files navigation

Whac-A-Mole Game

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!

Instructions

  1. Start the game by clicking the "Play" button.
  2. The moles will randomly pop up from their holes.
  3. Use your mouse or tap on the moles to whack them before they go back into their holes.
  4. Each time you successfully whack a mole, you will earn points.
  5. Be careful not to whack the bombs! Whacking a bomb will deduct points from your score.
  6. The game will continue for a certain duration or until you reach a specific target score.
  7. After the game ends, you can choose to play again by clicking the "Restart" button.

Controls

  • Use your mouse to click on the moles and whack them.
  • On touch devices, tap on the moles to whack them.

Scoring

  • Whacking a mole: +10 points
  • Whacking a bomb: -5 points

Game Over

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.

Technologies Used

This Whac-A-Mole game is built using the following technologies:

  • HTML
  • CSS
  • JavaScript

Setup and Installation

To play the Whac-A-Mole game locally on your machine, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the project directory.
  3. Open the index.html file in your preferred web browser.
  4. Start playing the game!

Demo

You can find a live demo of the Whac-A-Mole game here.

Contributing

If you'd like to contribute to this Whac-A-Mole game, feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

About

# Whac-A-Mole Game 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!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published