Thread: The Binary game
View Single Post
Junior Member
Kelrizzo's Avatar
Status: Offline
Posts: 5
Join Date: Feb 2013
Location: Seattle
Default 04-26-2013, 01:07 PM

Oh I understand the physical steps to make a variable. Maybe I'm too tired to make sense I was talking about the theoretical...when to use a variable versus a parameter.

I'm going to work on the project again now so I may get somewhere on my own, but I need to assign a random value 0 or 1 to each of the three switches. The user guesses what each switch is by flipping it up or down. Up represents 1, down represents 0. So you have a binary number with 3 digits.

If you guess the right number, the lightbulb goes on.
Reply With Quote