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

I'm working my way through the Alice Textbook and I think my brain is not making connections with how variables get assigned to objects.

In the game from the text, you have the three switches. Each switch is assigned a 0 or 1. You now have a binary number (000, 001, 010, 011, etc). In my example the switch being up represents 1 and the switch begins in the up position. If you get the number correct, a light bulb lights up.

I have a world level variable for the Object switch so I can modify which switch I'm using, and I also have a world level variable to hold the random number.

I really think I'm going about this the wrong way, but it's taking me quite long to do so I figured I'd stop desk/head and ask for help.
Reply With Quote