[MWForum]Selecting a turtle randomly from a list
Harvey Bornfield
mwforum@lists.mathcats.com
Tue, 05 Aug 2003 23:57:01 -0700
--=====================_175221==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
. . . . . . . . . . . . . . . . . . . . .
Dear Lisa,
You are so very close!
. . . . . . . . . . . . . . . . . . . . .
>This doesn't work at all, but here's the idea:
>
>make "thisturtle pick [turtle1 turtle2 turtle3 turtle4 turtle5]
>:thisturtle, clickon
if you wanted to employ this syntax you could "upgrade it" :-) to:
run (word :thisturtle ", char 32 "clickon)
which actually works, but is a mite deliciously warped
try instead the simpler
to roulette
make "thisturtle pick [turtle1 turtle2 turtle3 turtle4 turtle5]
ask :thisturtle [clickon]
end
>I feel quite certain that I'm making this concept much more difficult than
>it really is.
>
>By the way, our earlier glitch with the duplicated turtles across pages
>was solved when we discovered that the WHEN-TOUCHING code stopped
>(entirely on its own) when we went to a new page. And to think that I'd
>spent a week drilling in the fact that asking MicroWorlds WHEN was to be
>done once and only once! When we called this procedure (of WHENs) again
>after arriving at the second page, the game continued okay. Is this
>really the way it works? I'm still quite surprised.
>
>Thanks--
>Lisa Richter
>Lisa@CosmicThinkers.com
>_______________________________________________
>MWForum mailing list
>MWForum@lists.mathcats.com
>http://lists.mathcats.com/mailman/listinfo/mwforum
>attachments archived at:
>http://www.mathcats.com/mwforum/attachments.html
"Music is the one incorporeal entrance into the higher world of knowledge
which comprehends mankind, but mankind cannot comprehend."
Ludwig van Beethoven
--=====================_175221==.ALT
Content-Type: text/html; charset="us-ascii"
<html>
<body>
<br><br>
<b>. . . . . . . . . . . . . . . . . . . . .<br>
Dear Lisa, <br>
You are so very close! <br>
. . . . . . . . . . . . . . . . . . . . .<br>
</b><blockquote type=cite class=cite cite>This doesn't work at all, but
here's the idea:<br>
<br>
make "thisturtle pick [turtle1 turtle2 turtle3 turtle4
turtle5]<br>
:thisturtle, clickon
</blockquote><font face="Arial, Helvetica" color="#0000FF">if you wanted
to employ this syntax you could "upgrade it" :-)
to:<br>
</font><font face="Arial, Helvetica" color="#FF0000"><b>run (word
:thisturtle ", char 32 "clickon)<br>
</b></font>which actually works, but is a mite deliciously
warped<br><br>
<b>try instead the simpler<br><br>
</b><font face="Arial, Helvetica" color="#0000FF">to roulette<br>
make "thisturtle pick [turtle1 turtle2 turtle3 turtle4
turtle5]<br>
</font><font face="Arial, Helvetica" color="#FF0000"><b> ask
:thisturtle [clickon]<br>
</b></font><font face="Arial, Helvetica" color="#0000FF">end<br><br>
<br><br>
<br>
</font><blockquote type=cite class=cite cite>I feel quite certain that
I'm making this concept much more difficult than it really is. <br>
<br>
By the way, our earlier glitch with the duplicated turtles across pages
was solved when we discovered that the WHEN-TOUCHING code stopped
(entirely on its own) when we went to a new page. And to think that
I'd spent a week drilling in the fact that asking MicroWorlds WHEN was to
be done once and only once! When we called this procedure (of
WHENs) again after arriving at the second page, the game continued
okay. Is this really the way it works? I'm still quite
surprised. <br><br>
Thanks--<br>
Lisa Richter <br>
Lisa@CosmicThinkers.com<br>
_______________________________________________<br>
MWForum mailing list<br>
MWForum@lists.mathcats.com<br>
<a href="http://lists.mathcats.com/mailman/listinfo/mwforum" eudora="autourl">http://lists.mathcats.com/mailman/listinfo/mwforum</a><br>
attachments archived at:<br>
<a href="http://www.mathcats.com/mwforum/attachments.html" eudora="autourl">http://www.mathcats.com/mwforum/attachments.html</a>
</blockquote>
<x-sigsep><p></x-sigsep>
<font face="Bell MT">"Music is the one incorporeal entrance into the higher world of knowledge which comprehends mankind, but mankind cannot comprehend." <br>
Ludwig van Beethoven <br><br>
<br>
</font></body>
</html>
--=====================_175221==.ALT--