Game Description
Our penny bowling
game has four main stages. First, the user puts a penny into a
slot. Next, the user selects the difficulty level. Then they push a
button to start the timer and light up the pin which they are suppose to aim
at. Finally they physically aim the launcher to the correctly lit pin and
the penny releases automatically after a set amount of time.
Once the user
places a penny in the slot, the software detects a penny insertion by the
blocking of an optointerrupter and recognizes that
the game has begun. The LED lights on the bowling pins start flashing to alert
the user visually that the game has begun.
Next, the user
selects the difficulty level using a dial knob. The game has 3 difficult
levels: easy, medium, and hard. The potentiometer will take the analog
input from the user and create a digital output. Based on the difficulty
lever, the user has a shorter or longer time to aim before the penny launches.
After the user has selected the difficulty
level, they push a button to start the timer. When the start button
is pressed, a digital display with a timer countdown will begin to alert the
user how much time they have to aim at the pin. Also, after the start
button is pressed only one of the bowling pin LED will light up to alert the
user which pin to aim at.
The last step for
the user is to aim the penny ramp at the correctly lit bowling pin. Based
on the set difficulty level by the user, a solenoid will push back the blocking
gate after a set amount of time and the penny will be released down the
ramp.
Once the penny is released, if the penny hits
a bowling pin, the force of the penny pushes the pin back, which blocks an
optointeruptor. Behind the set of 8 bowling
pins, there is a strip of 8 optointeruptors.
They are positioned in such a way that when the pin pushes back, a flap on
the back of the bowling pin blocks the optointeruptor
slot. When a specific optointeruptor is blocked,
the software detects that pin has been hit.
If the correct pin that was to be aimed at
is hit, then the software registers it as a hit and the green hit LED lights
up and a score will be added to the digital display based on difficulty level.
If the penny does not hit the correct pin
and the correct optointeruptor is not blocked, a
buzzer sound will alert the user that the penny missed the pin and the red
miss LED lights up.
The user has three tries and then based on
the score at the end of the three tries, skittles
are dispensed based on the score.