Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Counting steps
Old
Laur07
Junior Member
 
Status: Offline
Posts: 11
Join Date: Jun 2011
Default Counting steps - 06-14-2011, 07:59 PM

I am having difficulty with the "increment" function. So for my project :Your program must also count the number of steps it took for the wolf to catch the bunny. If it took more than 10 steps, the wolf should say "That was tough, but this bunny was worth it!" or something similar, after it eats the bunny, otherwise the wolf should say "That was too easy, give me a challenge next time!"
I created a new variable in the "world properties" called steps because i need to be able to count how many steps the wolf takes but i don't really know the next steps to make it actually count and in order to make the "IF" statement in the end .... Anyone have an idea how this works? I really appreciate all the help i have been getting!
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.