alice-teacher Question about move toward

Vanderhyde, James vanderhyde at sxu.edu
Mon Feb 13 11:43:26 EST 2017


Mike, you have given a good example of when to use Move Toward, and it works fine. My only point was that it seems like these two blocks should work the same, but they don’t:

 Do together
          chicken move to bunny
  chicken turn left 1 revolution
  Do together
          chicken move ( chicken distance to bunny ) toward target = bunny
  chicken turn left 1 revolution

This is why I’m calling it a bug. I don’t think move toward is implemented correctly for all use cases, and I have yet to see a reason that it has to be implemented as a relative motion.

James
—
James Vanderhyde
Assistant Professor, Computer Science
Program Director, Master of Applied Computer Science
Saint Xavier University
3700 W. 103rd St.
Chicago, IL 60655
773-298-3454

On Feb 12, 2017, at 5:20 PM, Michael L Owen via alice-teachers <alice-teachers at lists.andrew.cmu.edu<mailto:alice-teachers at lists.andrew.cmu.edu>> wrote:

True- The turn was just for visual correctness, but any number of non-directional objects in the form of a list could follow a dragged object forever.


________________________________
From: alice-teachers <alice-teachers-bounces+mrgrog=outlook.com at lists.andrew.cmu.edu<mailto:alice-teachers-bounces+mrgrog=outlook.com at lists.andrew.cmu.edu>> on behalf of Vanderhyde, James via alice-teachers <alice-teachers at lists.andrew.cmu.edu<mailto:alice-teachers at lists.andrew.cmu.edu>>
Sent: Saturday, February 11, 2017 10:03 PM
To: Alice educators
Subject: Re: alice-teacher Question about move toward

Mike, because you used “turn to face” you can just use “move forward.” No need for “move toward” at all.

James
—
James Vanderhyde
Assistant Professor, Computer Science
Program Director, Master of Applied Computer Science
Saint Xavier University
3700 W. 103rd St.
Chicago, IL 60655
773-298-3454

_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu<mailto: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/20170213/8fd1ab86/attachment.html>


More information about the alice-teachers mailing list