Your task is to write a program that simulates the childhood arcade game, Wac-A-Mole, using the Java Swing GUI. Your
program may be a JApplet or you can use the JFrame-based GUI.
The minimum requirements:
Your program should use multiple layout managers to provide a label that presents information to the user (including the
final score) at the top, a 5x5 grid of buttons for the playing area in the center, and a “play again” button at the bottom that
is enabled only when the game is over.
Your program should use a random generator to randomly select which button will display the mole icon. Each time the
correct button is selected 5 points are earned.
Your program should use timers to control when to change the Mole’s position on the playing area every 2 seconds, unless
the correct button is clicked in which the Mole’s position is changed immediately and the timer is restarted, and the overall
game timer which limits each game to 30 seconds. These timers, and the buttons, should trigger listener events that are
handled appropriately by listener method(s) you define.
Once the game finishes, all buttons should be blank (no icon) and the total points should be displayed in the label.
Dear Sir/Madam,
I have a few questions regarding the allowed methods:
Is it ok to go over the top?
Can i use schedulers instead of timers?
should it have stuff like a high score list?
do you need a documentation?