Random 4 LED Game Help
Author |
Message |
Lucky1
|
Posted: Fri Dec 31, 2010 1:20 am Post subject: Random 4 LED Game Help |
|
|
What is it you are trying to achieve?
Get the code
What is the problem you are having?
Program must generate two numbers and display them one after another in one second intervals as a binary numbers. You will use a four LED interface to display the numbers as binary. After the numbers are displayed, the user will attempt to add the two numbers. The program will then prompt the use to enter the sum of the two numbers. If the user enters in the correct value, they will earn one point. The user will begin the game with 0 points and will win if collects 3 points. The program will continue the play until the user wins. Your program must incorporate a loop, use branching, default statements if possible and implement a random number generator to generate the binary numbers to be guessed. Since potential binary numbers will be able to use up to four bits (i.e. four LEDs), consider the maximum number random number can generate?
Describe what you have tried to solve this problem
I have solved nothing besides what I need is if, generate a random number, loop, branch.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
none
Please specify what version of Turing you are using
4.1.1 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TheGuardian001
|
Posted: Fri Dec 31, 2010 1:31 am Post subject: Re: Random 4 LED Game Help |
|
|
We don't do your work for you. If you have a specific par you're having trouble with, we can walk you through it, but we won't do it for you. |
|
|
|
|
|
|
|