<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
James,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
Here's a possible idea if you don't want to teach if statements yet.  You could always give them starter code that has the keys defined and for each key press you call some method. Then they would just have to program the methods that are called but wouldn't
 have to even look at the initializeEventListeners method. I don't know what topics exactly you were going to teach but I sometimes do this to avoid talking about topics that I haven't taught yet and don't want to talk about yet.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
-Eddie Sharick</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> alice-teachers <alice-teachers-bounces+sharicke=tesd.net@lists.andrew.cmu.edu> on behalf of Don Slater <don@alice.org><br>
<b>Sent:</b> Tuesday, February 18, 2020 12:36 PM<br>
<b>To:</b> Alice Teachers <alice-teachers@lists.andrew.cmu.edu><br>
<b>Subject:</b> Re: alice-teacher events without if statements</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div style="text-align:center; border:2px solid #762023; padding:.2em"><span style="font-size:16pt; font-family:Alegreya; color:#762023; font-weight:bold; padding:.2em">This message was sent from outside the Tredyffrin/Easttown School District.</span>
</div>
<br>
<div>James,
<div class="">It seems that I have been nothing but a disappointment to you this week. There really is not a way that I have found to implement the functionality that you are looking for.</div>
<div class=""><br class="">
</div>
<div class="">Perhaps the community has thoughts?</div>
<div class=""><br class="">
</div>
<div class="">All the best,</div>
<div class="">Don Slater</div>
<div class=""><br class="">
</div>
<div class="">Alice Project<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 17, 2020, at 3:08 PM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu" class="">vanderhyde@sxu.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">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.
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<span id="x_cid:75BEE40E-4F14-49E1-9F7B-C132AAAE0451@SXU.local"><screenshot.png></span></div>
</div>
_______________________________________________<br class="">
alice-teachers mailing list<br class="">
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">
To change settings or unsubscribe visit:<br class="">
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>