<HEAD>
<STYLE>body{font-size:10pt;font-family:arial,sans-serif;background-color:#ffffff;color:black;}p{margin:0px;}</STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.17940"></HEAD>
<BODY>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>in Alice 2</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial></FONT></FONT></FONT> </P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>an easy way is to make a list with 2-3 objects moving at a specific rate.around the most</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial></FONT></FONT></FONT> </P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>then make another list with 2-3 addition objects moving at a different rate and make as many lists as you need.</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>Having them start in different places, and all run at the same time will give the illusion of organized circling of the moat, each list moving at a different speed</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial></FONT></FONT></FONT> </P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>-=marilynn huret=-</P>
<P><BR><BR><BR></FONT></FONT></FONT>-----Original Message----- <BR>>From: alice-teachers-request@lists.andrew.cmu.edu <BR>>Sent: Apr 2, 2014 2:35 PM <BR>>To: alice-teachers@lists.andrew.cmu.edu <BR>>Subject: alice-teachers Digest, Vol 45, Issue 3 <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. Re: Random Movement problem (James Vanderhyde) <BR>> 2. Re: Random Movement problem (Don Slater) <BR>> <BR>> <BR>>---------------------------------------------------------------------- <BR>> <BR>>Message: 1 <BR>>Date: Wed, 2 Apr 2014 17:14:51 0000 <BR>>From: James Vanderhyde <JVANDERHYDE@BENEDICTINE.EDU><BR>>Subject: Re: alice-teacher Random Movement problem <BR>>To: Alice educators <ALICE-TEACHERS@LISTS.ANDREW.CMU.EDU>, Eric <BR>> Hillstrom <EHILLSTROM@DURANGO.K12.CO.US><BR>>Message-ID: <89E55CD5-BA2F-4C38-8EF9-26368AA34A29@benedictine.edu> <BR>>Content-Type: text/plain; charset="windows-1252" <BR>> <BR>>If you?re using Alice 2, I think it will be difficult to achieve exactly what the student wants. Because Alice 2 does not support polymorphism, it will be difficult to get much advantage from putting them in a list. You would only be able to use the built-in movement methods and functions. <BR>> <BR>>I think it might be better to create a few different movement actions that by themselves do not look random, but when used by 10 different objects at the same time looks like chaos. I have had students do this. Your student wants order out of the chaos, which is more difficult, but I think it could be achieved this way. For example, one mouse can move forward 6, wait 1 second, move forward 3. Another mouse can move forward 7, wait 0.8 seconds, move forward 2. Then put all the moves in a do together block. <BR>> <BR>>Alice 3 may have more capability, but I haven?t used it yet. <BR>> <BR>>James <BR>>-- <BR>>Dr. James Vanderhyde <BR>>Math and Computer Science <BR>>Benedictine College <BR>>jvanderhyde@benedictine.edu<?xml:namespace prefix = mailto /><mailto:jvanderhyde@benedictine.edu> <BR>>http://vanderhyde.us/~james/pro/ <BR>> <BR>> <BR>> <BR>>On Apr 1, 2014, at 12:05 PM, Eric Hillstrom <?xml:namespace prefix = ehillstrom@durango.k12.co.us<mailto /><ehillstrom@durango.k12.co.us<mailto:ehillstrom@durango.k12.co.us>> wrote: <BR>> <BR>> <BR>>>From a student <BR>> <BR>>Question: <BR>>I have taken a simple story with a medieval theme and am bringing it to life. <BR>>I want to have 10 mice move around in swarm/scurry fashion the world to make it look like they are protecting a castle. How do I do this? Should I make a list and somehow use a proximity function? How do I make it look random in nature to simulate mice scurrying around? <BR>>-- <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>>Eric Hillstrom <BR>>Teacher, CTE/Technology <BR>>Durango High School <BR>>970-259-1630 x2204 <BR>>_______________________________________________ <BR>>alice-teachers mailing list <BR>>alice-teachers@lists.andrew.cmu.edu<mailto:alice-teachers@lists.andrew.cmu.edu> <BR>>https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <BR>> <BR>>-------------- next part -------------- <BR>>An HTML attachment was scrubbed... <BR>>URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140402/9932b947/attachment-0001.html <BR>> <BR>>------------------------------ <BR>> <BR>>Message: 2 <BR>>Date: Wed, 2 Apr 2014 14:35:46 -0400 <BR>>From: Don Slater <DSLATER@ANDREW.CMU.EDU><BR>>Subject: Re: alice-teacher Random Movement problem <BR>>To: Alice Teachers <ALICE-TEACHERS@LISTS.ANDREW.CMU.EDU><BR>>Message-ID: <5B233908-FE00-4D14-BD0F-2786E121EDCB@andrew.cmu.edu> <BR>>Content-Type: text/plain; charset="windows-1252" <BR>> <BR>>See the attached screen shot and Alice world, ?mouseScurrying"? <BR>> <BR>>I created a list of the 10 mice as a world variable, and used the For All together construct inside of the Loop construct. <BR>> <BR>>I used a mouse turn and a mouse move command, and used the world?s random function to set the amount of the turn and the amount of the distance moved. The random? function has a ?more?option for setting the min and max of the range of random values. <BR>> <BR>>Then replace ?mouse? in the turn and move methods with the ?item from list? tile. <BR>> <BR>>James is correct that if the student has an animation method for moving the legs of the mouse, they will not be able to use that method in this structure? <BR>> <BR>>(Alice 3 does have similar control structures, and an animation procedural method would be usable there.) <BR>> <BR>>The student may want to add appropriate checks to make sure the mice do not get too far away from or too close to the castle, but this example should give them a place to start. <BR>> <BR>>Let me know if you have any questions. <BR>> <BR>>All the best, <BR>>Don Slater <BR>> <BR>> <BR>> <BR>> <BR>> <BR>> <BR>>On Apr 2, 2014, at 1:14 PM, James Vanderhyde <JVANDERHYDE@BENEDICTINE.EDU>wrote: <BR>> <BR>>> If you?re using Alice 2, I think it will be difficult to achieve exactly what the student wants. Because Alice 2 does not support polymorphism, it will be difficult to get much advantage from putting them in a list. You would only be able to use the built-in movement methods and functions. <BR>>> <BR>>> I think it might be better to create a few different movement actions that by themselves do not look random, but when used by 10 different objects at the same time looks like chaos. I have had students do this. Your student wants order out of the chaos, which is more difficult, but I think it could be achieved this way. For example, one mouse can move forward 6, wait 1 second, move forward 3. Another mouse can move forward 7, wait 0.8 seconds, move forward 2. Then put all the moves in a do together block. <BR>>> <BR>>> Alice 3 may have more capability, but I haven?t used it yet. <BR>>> <BR>>> James <BR>>> -- <BR>>> Dr. James Vanderhyde <BR>>> Math and Computer Science <BR>>> Benedictine College <BR>>> jvanderhyde@benedictine.edu <BR>>> http://vanderhyde.us/~james/pro/ <BR>>> <BR>>> <BR>>> <BR>>> On Apr 1, 2014, at 12:05 PM, Eric Hillstrom <EHILLSTROM@DURANGO.K12.CO.US>wrote: <BR>>> <BR>>>> <BR>>>> From a student <BR>>>> <BR>>>> <BR>>>> Question: <BR>>>> <BR>>>> I have taken a simple story with a medieval theme and am bringing it to life. <BR>>>> <BR>>>> I want to have 10 mice move around in swarm/scurry fashion the world to make it look like they are protecting a castle. How do I do this? Should I make a list and somehow use a proximity function? How do I make it look random in nature to simulate mice scurrying around? <BR>>>> <BR>>>> -- <BR>>>> <BR>>>> <BR>>>> <BR>>>> <BR>>>> <BR>>>> <BR>>>> Eric Hillstrom <BR>>>> Teacher, CTE/Technology <BR>>>> Durango High School <BR>>>> 970-259-1630 x2204 <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>>> alice-teachers mailing list <BR>>> alice-teachers@lists.andrew.cmu.edu <BR>>> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <BR>> <BR>>-------------- next part -------------- <BR>>An HTML attachment was scrubbed... <BR>>URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140402/66ab9f3d/attachment.html <BR>>-------------- next part -------------- <BR>>A non-text attachment was scrubbed... <BR>>Name: mouseScurrying.png <BR>>Type: image/png <BR>>Size: 44877 bytes <BR>>Desc: not available <BR>>Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140402/66ab9f3d/attachment.png <BR>>-------------- next part -------------- <BR>>An HTML attachment was scrubbed... <BR>>URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140402/66ab9f3d/attachment-0001.html <BR>>-------------- next part -------------- <BR>>A non-text attachment was scrubbed... <BR>>Name: mouseScurrying.a2w <BR>>Type: application/octet-stream <BR>>Size: 4417933 bytes <BR>>Desc: not available <BR>>Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140402/66ab9f3d/attachment.obj <BR>>-------------- next part -------------- <BR>>An HTML attachment was scrubbed... <BR>>URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140402/66ab9f3d/attachment-0002.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 45, Issue 3 <BR>>********************************************* <BR></P></mailto:alice-teachers@lists.andrew.cmu.edu></ehillstrom@durango.k12.co.us<mailto:ehillstrom@durango.k12.co.us></mailto:jvanderhyde@benedictine.edu></BODY>