alice-teacher Conditional Loops
Frank Hulsman
frankhulsman at yahoo.com
Mon Jan 27 09:09:44 EST 2014
Alice 2.x? That condition is looking for a Boolean (true / false) value. What you are trying to drag in returns a number (distance). The solution would be to first drag in a condition (World, Functions, Math, A > B). Place numbers initially into A and B (1, 2), then replace one with the function you want use ("goldfish distance in front of shark") and then how far in front....
Frank Hulsman
St. Xavier High School
Louisville, Ky
From: Ron Guillemette <rgilmet123 at gmail.com>
To: Alice List <alice-teachers at lists.andrew.cmu.edu>
Sent: Monday, January 27, 2014 9:00 AM
Subject: alice-teacher Conditional Loops
I'm not sure what I am doing wrong, but I am trying to do the Chase scene in Chapter 7 of the Programming with Alice book using While in the chase method. I am unable to drag the "goldfish distance in front of shark" function into the "true" condition of the while. I keep getting a red outline around the command.
Thanks for any help.
Ron. Guillemette
Computer Technology and Game Design
The Regional Career & Tech Center @ Coventry High
40 Reservoir Road, Coventry, RI 02816
401-822-9499 ext 287
_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140127/9aca4391/attachment.html
More information about the alice-teachers
mailing list