IT’S NEARLY DONE. WE GOT THROUGH SOME BETA TESTING AND IT WAS WORKING PERFECTLY THEN IT STOPPED WORKING AND WE REALIZED THE WIRE TO THE POTENTIOMETER FELL OUT. THEN IT WAS A HEADACHE TRYING TO RECONNECT IT.
Anyways, Isaac took the lead today, designing the track for the candy (or wooden balls as used in testing) to go down when you win. He designed it as a track for the candy to roll down as well as created a gate attached to a servo to release the candy. We finished constructing the rest of the frame and added a rounded roof. We put in a divider to separate the wires from the wheels and to give it a cleaner feel from the front. We put together a quick win/lose buzzer system that draws your attention to the marble track when you win.
I also cleaned up the code a lot, defining more functions to use in the loops, and learned how to use randomSeed(). The code uses states to send the user back to the beginning every time the candy is dispensed.