alice-teacher events without if statements

Vanderhyde, James vanderhyde at sxu.edu
Mon Feb 17 15:08:59 EST 2020


In Alice 3, is there a way to handle different key events before introducing if blocks? In Alice 2, we used to use a separate event for each key, and then call a method. In Alice 3, I have to use “if event isKey(key)” in an if structure in order to call separate procedures for separate keys. (See screenshot.) Is there another way? I wanted to delay teaching if blocks just a little longer.

James
—
James Vanderhyde
Associate Professor and Department Chair
Computer Science
Saint Xavier University
3700 W. 103rd St.
Chicago, IL 60655
773-298-3454
[cid:75BEE40E-4F14-49E1-9F7B-C132AAAE0451 at SXU.local]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20200217/b141e9ee/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot.png
Type: image/png
Size: 126866 bytes
Desc: screenshot.png
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20200217/b141e9ee/attachment-0001.png>


More information about the alice-teachers mailing list