A typical Whac-A-Mole machine consists of a large cabinet with five holes in its top. Each hole contains a single plastic mole and the machinery necessary to move it up and down. Once the game starts, the moles will begin to pop up from their holes randomly and if the player hit an individual mole directly on the head with the mallet, the mole will go back in to the hole,
thereby adding to the player's score.1
The Whac-A-Mole game is implemented on an FPGA. In order to make the game, we need to make a random number generator so that we could light up a random LED, and each LED lights will be lit for a random time: between 1-8 seconds.
The theory and methods used for the random number generation will be discussed in the next section.