Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Lab 2 -- Get Loopy
Old
rlpenn
Junior Member
 
Status: Offline
Posts: 7
Join Date: Aug 2013
Default Lab 2 -- Get Loopy - 11-02-2013, 08:26 PM

My ghost spins as many times as the user asks it to.

I solved the "yes", "Yes", "YES" issue by using the "While" condition as my loop. I set the initial "continue" variable to "yes" and then at the end had the user enter if they'd like it to run again. The "While" condition ran again if the user entered "yes", "Yes" or "YES".

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