~ 2 players pit their aim against each other using nerf balls.
~ The goal of the game is to hit the target with a ball as many times as possible in the shortest amount of time.
~ Every time a ball hits the target, the teddy bear moves up the tower for a tenth of a second.
~ The first teddy bear that reaches the top of the tower wins! Enjoy as the congratulatory flag unrolls to the tune of “We are the Champions”!
How does it work?
~ Two motors connected to Handyboard 2 run the targets.
~ Two pairs of switches help the motors decide which direction to turn, thus providing a means for the targets to move backwards and forwards in a controlled and predictable manner.
~ There are two touch sensors on the targets that ‘sense’ the balls hitting.
~ These are connected to Handyboard 1, which is outputs to the two motors that control the tower.
~ As the game progresses, a piece of Lego on the back of the tower moves downwards, eventually activating another touch sensor. This signals the end of the game.
~ The motors on the towers then rewind, and stop when the front hits another set of switches. The song ‘ We are the Champions’ comes on, and the congratulatory flag unfurls.
The Code:
Handyboard One -
menu 1 [reel]
to reel
ab, on thisway
when [switch 7] [a, thisway]
when [switch 8] [b, thisway]
when [switch 9] [a, thatway]
when [switch 10] [b, thatway]
end
Handyboard Two -
menu 1 [go]
to reelone
output switch 7
end
to reeltwo
output switch 8
end
to endone
output switch 9
end
to endtwo
output switch 10
end
to rewind
ab, thatway
ab, on
when [switch 11] [a, off]
when [switch 12] [b, off]
end
to unrollone
c, thisway
c, onfor 15
end
to unrolltwo
d, thisway
d, onfor 15
end
to song
note 62 10
note 61 3
note 62 3
note 61 7
note 57 7
note 55 5
note 58 7
note 55 10
note 62 10
note 64 3
note 66 3
note 69 7
note 66 7
note 59 3
note 61 3
note 59 10
wait 10
note 59 7
note 58 5
note 59 3
note 58 7
note 56 7
note 62 7
note 61 5
note 62 3
note 61 7
note 59 7
wait 10
note 66 5
note 62 7
note 67 3
note 66 5
note 62 7
note 67 3
note 65 5
note 62 7
note 67 3
note 65 5
note 62 7
wait 10
note 62 7
note 57 5
note 62 7
end
to resetone
c, thatway
c, onfor 15
end
to resettwo
d, thatway
d, onfor 15
end
to go
when [reelone] [a, onfor 1]
when [reeltwo] [b, onfor 1]
when [endone] [stoprules rewind unrollone song resetone]
when [endtwo] [stoprules rewind unrolltwo song resettwo]
end