alice-teacher Alice 2 issue: adding item to array or list takes 1 second

Michael L Owen MrGrog at outlook.com
Fri Apr 7 09:33:35 EDT 2017


James-

I wrote a simple version, and tried multi-clicking rapidly. All items were added at the default 1 second rate while the program moved on. Perhaps it would be better for you to spend a little more time explaining to your students the "Importance" of clicking on the "more" option when dragging in a new command. Many of these features are essential in creating clean visual animations, and students need to know how to use them correctly.

Mike Owen
________________________________
From: alice-teachers <alice-teachers-bounces+mrgrog=outlook.com at lists.andrew.cmu.edu> on behalf of Vanderhyde, James <vanderhyde at sxu.edu>
Sent: Thursday, April 6, 2017 4:38 PM
To: Alice educators
Subject: Re: alice-teacher Alice 2 issue: adding item to array or list takes 1 second

Sorry, I didn’t attach the example world. Here it is.

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 Apr 6, 2017, at 4:17 PM, Vanderhyde, James <vanderhyde at sxu.edu<mailto:vanderhyde at sxu.edu>> wrote:

My students today hit an unexpected problem working with a list. They were doing Exercise 4 in Chapter 9 of Dann, Cooper, Pausch 3rd edition (p. 281): Casting a Beach Scene. The exercise instructs the students to create an interactive animation where the user clicks on actors to add them to a list.

The problem came in when the students tested their programs. The program was written correctly, but sometimes not all the actors that were clicked got added to the list. It turned out the students were clicking too fast. I discovered that the “insert object at end of list” instruction (and the “set item i to object in array” instruction) has a 1-second duration by default. This is inconsistent with the “variable set value” instruction and “increment variable by 1” instruction, which are both 0 seconds by default.

I am attaching an Alice world that shows the problem. Clicking on the bunny adds it to a list and an array. If you look at the World properties when you play, then click rapidly on the bunny, you see the list update immediately but the array wait 1 second between updates. This is because I specified “duration = 0” in the list insert, but I left the array set item at the default duration.

Thanks for looking at this. It would be nice to have consistent behavior.

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20170407/cb857982/attachment.html>


More information about the alice-teachers mailing list