alice-teacher Problems with looping in Alice 3

Terri Logan tlogan at msmacademy.org
Mon Apr 7 21:21:37 EDT 2014


> I have this game, its a mimic of the game Simon, where there are 4 object that randomly blink and play a tone.  
> I've decided I want my user to decide what level they will play of this game, so I ask the user for a level, and store that number in a variable.  I've tried every loop there is, and for the life of me I cannot get it to work right.  
> I thought I had it with while (number>0){play 1 of 4 tones, decrement number} but it just keeps going, I've counted up to 20, but I assume an infinite loop.
> When using the count, it plays each tone as many times as the number I entered and is equal to the count. 
> 
> Any guidance is greatly appreciated.
> 
> -- 
> Terri Logan
> System Administrator
> Mount St. Mary Academy
> tlogan at msmacademy.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140407/701f01ed/attachment.html 


More information about the alice-teachers mailing list