An open API service indexing awesome lists of open source software.

https://github.com/christopheralphonse/whackamole_java


https://github.com/christopheralphonse/whackamole_java

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Whack-A-Mole - Mario Edition

## Overview
Whack-A-Mole is a classic game with a Mario twist, where players aim to hit the popping Moles while avoiding hitting Piranha Plants. The game features a graphical user interface (GUI) built using Java Swing and utilizes audio feedback for a more immersive experience.

## Features
- 🌟 Mario-themed Whack-A-Mole game.
- 🌟 Score tracking for successful hits.
- 🌟 Audio feedback for wins and losses.
- 🌟 Adjustable difficulty with timer speed control.
- 🌟 Restart option for a new game.

## How to Run
1. 🌟 Clone or download the project from the GitHub repository.
2. 🌟 Open the project in your preferred Java development environment.
3. 🌟 Run the `WhackAMole` class to start the game.

## Gameplay
- 🌟 Moles and Piranha Plants pop up randomly on the game board.
- 🌟 Click on Moles to score points. Avoid clicking on Piranha Plants.
- 🌟 Use the buttons to adjust the game's difficulty by changing the timer speed.
- 🌟 Restart the game at any time by clicking the "Restart Game" button.

## Project Structure
- 🌟 `WhackAMole.java`: Main class containing the game logic.
- 🌟 `/assetsFiles`: Folder containing game assets (icons, audio files).

## Prerequisites
- 🌟 Java Development Kit (JDK)

## Installation
1. 🌟 Clone or download the repository to your local machine.

```bash
git clone https://github.com/ChristopherAlphonse/whackAMole_Java.git

#### 🌟 Run the Main.java to start the game.

```bash
public class Main {
public static void main(String[] args) throws Exception {
WhackAMole WhackAMole = new WhackAMole();
System.out.println("Game Started");
}
}
```

## Game Features
- 🌟 The game board dynamically adjusts to a 3x3 grid, providing a challenging gameplay experience.
- 🌟 Enjoy the game with iconic Mario characters, featuring Monty Mole and Piranha Plant.
- 🌟 The score is displayed at the top of the window, allowing you to track your performance.