Showing posts with label mole. Show all posts
Showing posts with label mole. Show all posts

Monday, November 19, 2018

Whack A Mole - ALICE Program

Whack A Mole



 In this game, the player picks up a hammer and whacks at a mole-like puppet that pops up here and there out of a box. Points are scored each time the player whacks a mole. 
One possible modification to the WhackAMole game is to play it until the user has whacked all of the moles. To make this adjustment, change the color of a mole in the list to red whenever it is whacked. Allow the mole to be raised only if it is not already red. The game ends when all moles have been whacked!

Solution:
The user moves the mouse to click (or whack) on the mole that pops up. Every time a mole is whacked, there is a pop sound effect. The mole that has been whacked changes its color to red. The score of the user is tracked by the yellow cylinder, which keeps increasing when the user whacks a mole successfully. It is made sure that no red mole ever pops up.
Once the user has whacked all the moles, a congratulatory message is displayed.

See the attached video created using Alice 2.4 for this program using the actual source code.



Contact me @ allassignmenthelp@gmail.com for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code. I can modify the program if you would need any changes.