<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style="color: rgb(68, 68, 68); font-size: 15.454545021057129px; line-height: 21.81818199157715px;">Sorry about the previous mis-send with incomplete response.</span><div><span style="color: rgb(68, 68, 68); font-size: 15.454545021057129px; line-height: 21.81818199157715px;"><br></span></div><div><span style="color: rgb(68, 68, 68); font-size: 15.454545021057129px; line-height: 21.81818199157715px;">Thanks you for the great example.</span><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">As a software engineer and teacher, try to not code with numbers. Get away from using hard coded numbers interspersed in code as fast as you can. It is not good practice in the real world to have numbers within the code. Documentation is not an excuse for not writing robust code.</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;"><br></div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">For example if the penguin changed size the 1.1 meters would need to be adjusted.</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">If the holes sizes were different then the 1.1 meters would surely be incorrect some of the time.</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">If the snowbank donut object changed size then the 10.5 meters would need adjustment.</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;"><br></div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">Please use the objects size properties of width, height, depth</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;"><div><br></div><div>The penguin cannot fall into a hole smaller than itself</div><div>if (penguin.width > hole.width)</div><div> cannot fall into this hole</div><div><br></div></div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">For example a penguin being on the perimeter of a particular hole would be</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;">if (penguin.distance to hole) <= (hole.width + peguin.width)</div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;"><br></div><div style="line-height: 21.81818199157715px; color: rgb(68, 68, 68); font-size: 15.454545021057129px;"><div>For example a penguin being completely within a particular hole would be</div><div>if (penguin.distance to hole) <= (hole.width - penguin.width)</div><div><br></div><div><br></div><div><br></div></div>The 10.5 meters is probably the snowbank width, so use it. instead of hard coded numbers.</div><div>if (penguin is at least snowbank.width away from snowbank) </div><div><br></div><div>Also using an objects many attributes helps teach better object-oriented coding practices.</div><div>With Alice objects interacting in a 3-D world it also helps think more geometrically.</div><div><br></div><div>Of course the initial few weeks before the students realize that these are objects that have methods, functions, and properties using hard coded numbers are acceptable. </div><div><br><div><hr id="stopSpelling">From: robert.durtschi@gcsu.edu<br>To: alice-teachers@lists.andrew.cmu.edu<br>Date: Sat, 7 Sep 2013 00:51:15 +0000<br>Subject: Re: alice-teacher collsion detection (s Digest, Vol 38, Issue 2)<br><br>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt;">The book "An Introduction to Programming Using Alice 2.2 Second Edition" by Charles W. Herbert has a rather nice collision detection method in Chapter 10: "TUTORIAL 10B—DON'T SPLASH
THE PENGUIN!"<br>
<br> I'll see if I can paste the relevent code here:<br>
<br>
<BR>
<img style="WIDTH:560px;HEIGHT:205px;" title="don't splash the penguin fig 10-11.png" src="cid:7f31b7cb-8e93-4dcc-95e5-14d80edf775e">
<BR>
<br> This is a screenshot of what the playing field looks like. The goal is to manuever the penquin past the holes to the flag. The collison dectection code checks if the penguin is within 1.1 meter of the center of each hole in the list; within 1/2 meter of the flag; or if trying to go through the snowbank surrounding the arena. <BR>
<BR>
It rather cleverly defines the snowBank as a donut with the center in the center of the playing field. so the check is to see if the penguin is 10.5 meters from the
<strong>center</strong> of the snowBank boundry <BR>
<BR>
We found that if one didn't use a "Do together" it was possible for the penguin to beat its way through the snowbank and disappear over the horizon.<BR>
<BR>
the check is invoked by a runtime event:<BR>
<BR>
<table style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;WIDTH:100%;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;" class="ecxMsoNormalTable" border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr style="">
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">While the world is running</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
</span><BR>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;">
<p style="TEXT-ALIGN:right;LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal" align="right">
<b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Begin:</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;" width="100%">
<table style="WIDTH:100%;" class="ecxMsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr style="">
<td style="BORDER-BOTTOM:#ffffff;BORDER-LEFT:#ffffff;PADDING-BOTTOM:1.5pt;BACKGROUND-COLOR:transparent;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BORDER-TOP:#ffffff;BORDER-RIGHT:#ffffff;PADDING-TOP:1.5pt;">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';BACKGROUND:#f0f0ff;FONT-SIZE:12pt;"><None></span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
</span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;">
<p style="TEXT-ALIGN:right;LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal" align="right">
<b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">During:</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;" width="100%">
<table style="WIDTH:100%;" class="ecxMsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#ffe6b4;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">World.checkPenguinLocation</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;">
<p style="TEXT-ALIGN:right;LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal" align="right">
<b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">End:</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
<td style="BORDER-BOTTOM:silver;BORDER-LEFT:silver;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#cbe7ec;BORDER-TOP:silver;BORDER-RIGHT:silver;PADDING-TOP:1.5pt;" width="100%">
<table style="WIDTH:100%;" class="ecxMsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr style="">
<td style="BORDER-BOTTOM:#ffffff;BORDER-LEFT:#ffffff;PADDING-BOTTOM:1.5pt;BACKGROUND-COLOR:transparent;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BORDER-TOP:#ffffff;BORDER-RIGHT:#ffffff;PADDING-TOP:1.5pt;">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';BACKGROUND:#f0f0ff;FONT-SIZE:12pt;"><None></span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</p>
<BR>
The first check below: <b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">For all</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<b><span style="BACKGROUND:#f0f0ff;">hole1.holes</span></b> <b>, every</b> <b>item_from_holes</b>
<b>together</b></span>" runs through the list of holes. If the penguin is less than 1.1 meter from the center of any of the holes it pops up a "splash" billboard that covers the screen.<BR>
<BR>
The second check <span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<strong>If</strong></span><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"> (
<b><span style="BACKGROUND:#f0f0ff;">penguin</span></b> <b>is at least <span style="BACKGROUND:#f0f0ff;">
10.5 </span></b><span style="BACKGROUND:#f0f0ff;">meters</span> <b>away from <span style="BACKGROUND:#f0f0ff;">
snowBank</span></b> ) <font size="2" face="Tahoma">checks if the penguin is too far from the center of the snowbank donut (center of the playing field) and moves it back towards the center.</font></span><BR>
<font face="Tahoma"><font size="2"><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></font></font> <BR>
<font face="Tahoma"><font size="2"><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">The third checks
<span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<strong>If</strong></span><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"> ( (
<b><span style="BACKGROUND:#f0f0ff;">penguin</span></b> <b>distance to <span style="BACKGROUND:#f0f0ff;">
flagpole</span></b> ) <b><</b> <b><span style="BACKGROUND:#f0f0ff;">0.5</span></b> )
<font size="2" face="Tahoma">when the penguin is close enough to the goal. It then invokes another method to indicate "Victory"</font></span></span><br>
</font></font><BR><font face="Tahoma"><font size="2">
</font></font>
<table style="WIDTH:100%;" class="ecxMsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#ffffd2;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="4">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">World.checkPenguinLocation</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
( ) <br>
<i>No variables</i></span><BR>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#eeddff;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="4">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Do together</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#eeddff;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" rowspan="14" width="20">
</td>
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#f8ddff;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="3">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">For all</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<b><span style="BACKGROUND:#f0f0ff;">hole1.holes</span></b> <b>, every</b> <b>item_from_holes</b>
<b>together</b></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#f8ddff;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" rowspan="5" width="20">
</td>
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">If</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
( ( <b><span style="BACKGROUND:#f0f0ff;">penguin</span></b> <b>distance to <span style="BACKGROUND:#f0f0ff;">
item_from_holes</span></b> ) <b><</b> <b><span style="BACKGROUND:#f0f0ff;">1.1</span></b> )
</span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" rowspan="2" width="20">
</td>
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#ffe6b4;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" width="100%">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';BACKGROUND:#f0f0ff;FONT-SIZE:12pt;">penguin</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<b>move <span style="BACKGROUND:#f0f0ff;">down</span></b> <b><span style="BACKGROUND:#f0f0ff;">5
</span></b><span style="BACKGROUND:#f0f0ff;">meters</span> <span style="BACKGROUND:#f0f0ff;">
duration = <b>0.25 </b>seconds</span></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#ffe6b4;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" width="100%">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';BACKGROUND:#f0f0ff;FONT-SIZE:12pt;">splash</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<b>set opacity</b> <b>to <span style="BACKGROUND:#f0f0ff;">1 (100%)</span></b></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Else</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" width="20">
</td>
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:#f0f0f0;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><i><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Do Nothing
</span></i><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="3">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">If</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
( <b><span style="BACKGROUND:#f0f0ff;">penguin</span></b> <b>is at least <span style="BACKGROUND:#f0f0ff;">
10.5 </span></b><span style="BACKGROUND:#f0f0ff;">meters</span> <b>away from <span style="BACKGROUND:#f0f0ff;">
snowBank</span></b> ) </span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" width="20">
</td>
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#ffe6b4;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" width="100%" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';BACKGROUND:#f0f0ff;FONT-SIZE:12pt;">penguin</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
<b>move </b><span style="BACKGROUND:#f0f0ff;">amount = <b>1 </b>meter</span> <b>toward
</b><span style="BACKGROUND:#f0f0ff;">target = <b>snowBank</b></span> <span style="BACKGROUND:#f0f0ff;">
duration = <b>0 </b>seconds</span> <span style="BACKGROUND:#f0f0ff;">style = <b>abruptly</b></span></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="3">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Else</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" width="20">
</td>
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:#f0f0f0;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><i><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Do Nothing
</span></i><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="3">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">If</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">
( ( <b><span style="BACKGROUND:#f0f0ff;">penguin</span></b> <b>distance to <span style="BACKGROUND:#f0f0ff;">
flagpole</span></b> ) <b><</b> <b><span style="BACKGROUND:#f0f0ff;">0.5</span></b> )
</span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" width="20">
</td>
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:100%;PADDING-RIGHT:1.5pt;BACKGROUND:#ffe6b4;BORDER-TOP:silver 1pt solid;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" width="100%" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">World.reachedFlagpole</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:#f0f0f0;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="3">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Else</span></b><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
<tr style="">
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:silver 1pt solid;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;WIDTH:15pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:#f0f0f0;PADDING-TOP:1.5pt;" width="20">
</td>
<td style="BORDER-BOTTOM:silver 1pt solid;BORDER-LEFT:#f0f0f0;PADDING-BOTTOM:1.5pt;PADDING-LEFT:1.5pt;PADDING-RIGHT:1.5pt;BACKGROUND:#cceedd;BORDER-TOP:#f0f0f0;BORDER-RIGHT:silver 1pt solid;PADDING-TOP:1.5pt;" colspan="2">
<p style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class="ecxMsoNormal"><i><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;">Do Nothing
</span></i><span style="FONT-FAMILY:'Times New Roman','serif';FONT-SIZE:12pt;"></span></p>
</td>
</tr>
</tbody>
</table>
<br>
________________________________________<br>
From: alice-teachers-bounces+robert.durtschi=gcsu.edu@lists.andrew.cmu.edu [alice-teachers-bounces+robert.durtschi=gcsu.edu@lists.andrew.cmu.edu] on behalf of alice-teachers-request@lists.andrew.cmu.edu [alice-teachers-request@lists.andrew.cmu.edu]<br>
Sent: Thursday, September 05, 2013 12:00 PM<br>
To: alice-teachers@lists.andrew.cmu.edu<br> Subject: alice-teachers Digest, Vol 38, Issue 2<br>
<br> Send alice-teachers mailing list submissions to<br>
alice-teachers@lists.andrew.cmu.edu<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers<br>
or, via email, send a message with subject or body 'help' to<br>
alice-teachers-request@lists.andrew.cmu.edu<br>
<br>
You can reach the person managing the list at<br>
alice-teachers-owner@lists.andrew.cmu.edu<br>
<br>
When replying, please edit your Subject line so it is more specific<br> than "Re: Contents of alice-teachers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Collision and walking speed questions (Lori Fuller)<br>
<br>
<br> ----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 04 Sep 2013 13:46:25 -0400<br>
From: "Lori Fuller" <lori.fuller@browardschools.com><br> Subject: alice-teacher Collision and walking speed questions<br>
To: alice-teachers@lists.andrew.cmu.edu<br>
Message-ID:<br>
<fc.0119ec0746d675b63b9aca00e8ed6537.46d6890f@browardschools.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I have an advanced student among all of my beginners... and he is working<br>
on a maze game.<br>
2 questions:<br>
1. In Alice 2.3, is it possible to set up a collision indication method?<br>
If so, where do I find information on this?<br>
2. Is there a way to slow down the person object walking while using the<br>
arrow keys as controllers?<br>
<br>
<br>
<br>
thanks,<br>
<br>
Lori Fuller, M.Ed.<br>
Monarch High School<br>
Career Technology Department Head<br>
Technology Coordinator<br> Asst. Athletic Director<br>
<br> "A posse ad esse", from possibility to actuality...<br>
<br>
Big brother is watching so watch what you put in the email!<br>
<br>
Under Florida law, e-mail addresses, and all communications, including<br>
e-mail communications, made or received in connection with the transaction<br>
of School Board business are public records, which must be retained as<br>
required by law and must be disclosed upon receipt of a public records<br>
request, except as may be excluded by federal or state laws. If you do<br>
not want your e-mail address released in response to a public records<br>
request, do not send electronic mail to this entity. Instead, contact this<br>
office by phone or in writing.<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20130904/b630acd1/attachment-0001.html<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br> alice-teachers mailing list<br>
alice-teachers@lists.andrew.cmu.edu<br> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers<br>
<br>
<br> End of alice-teachers Digest, Vol 38, Issue 2<br>
*********************************************</p>
</div>
<br>_______________________________________________ alice-teachers mailing list alice-teachers@lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</div></div>                                            </div></body>
</html>