Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Lab2-TT
Old
thien
Junior Member
 
Status: Offline
Posts: 8
Join Date: Aug 2014
Default Lab2-TT - 10-14-2014, 11:13 AM

I believe that this exercise is equivalent to using a "do while" loop in which the block of code is executed at least once. Since I did not see a "do while", I just have my character ask for the number, spin accordingly, ask if user wants to continue. Then use the while statement where the condition is "while answer == Yes or answer = YES or answer = yes" do "ask for the number, spin accordingly, ask if user wants to continue (again)". At first I picked a character that could not spin using any of the predefined methods; when I tell her to turn left one revolution, would she dives into the ground then pops back up from the other side- it was creepy. I guess the key for not having to manually make your character spin is to pick somebody like the ballerina or the cheerleader
   
Reply With Quote
Reply

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 ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.