Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Help with loops
Old
jaylee72
Member
 
Status: Offline
Posts: 16
Join Date: Dec 2017
Default Help with loops - 12-18-2017, 09:29 PM

Frustrated with the latest assignment. I feel like I'm missing something so simple. The goal is ask the user for a number, use the number to spin the object around that many times - then ask user if they want to run again.

I'm asking them for a yes/no answer. My answer variable is in my loop and this is where the problem is. If they say yes, I'm hopping over to my iceskater.method which asks how many and does the turning action. I kept this as a separate method so I could call it if user answers yes. Works mostly fine whether answer is yes/no but if answer is yes, then no, the loop returns it back to the iceskater.method. What am I missing?
Attached Files
File Type: a2w Lab2-JE.a2w (614.0 KB, 2 views)
   
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.