Computer Science Canada Number choosing program |
Author: | TheSecretWaterBender [ Thu Jan 06, 2011 11:41 pm ] | ||
Post subject: | Number choosing program | ||
What is it you are trying to achieve? Im trying to create a program where the user can click on six numbers and each number is displayed and stored (they can't choose the same number twice) What is the problem you are having? I cannot click more than once before the program ends Describe what you have tried to solve this problem I tried adding another for statement and have no idea as to storing (preferably in an array) or stopping a number (or range from being clicked twice) efficiently Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using version 4.1.1 |
Author: | Tony [ Thu Jan 06, 2011 11:44 pm ] |
Post subject: | RE:Number choosing program |
Can you briefly explain what's going on inside your loop? |
Author: | TheSecretWaterBender [ Thu Jan 06, 2011 11:51 pm ] |
Post subject: | RE:Number choosing program |
the loop posts the number clicked based on the parameters given (it's a 7x7 grid with numbers from 1-49) |
Author: | TheSecretWaterBender [ Sun Jan 09, 2011 12:40 am ] |
Post subject: | Re: Number choosing program |
I actually found a temporary fix but i am having problems now with being able to click again after they click on the same number twice |
Author: | Tony [ Sun Jan 09, 2011 12:42 am ] |
Post subject: | RE:Number choosing program |
Post the new code that goes along with that question. |
Author: | TheSecretWaterBender [ Sun Jan 09, 2011 12:48 am ] | ||
Post subject: | Re: Number choosing program | ||
woops http://compsci.ca/v3/images/smiles/icon_redface.gif
|