Richard Impey wrote: > > Help!!!!! > > I gave one of my very bright students a challenge to construct a dice that > can randomly change it's displayed number. > > He did this but he went one big step further...he actually constructed a > dice in perspective (Isometric Cube) so that at any one time three faces > are always shown. Each face of the dice is a turtle. It works quite well > except that occasionally two faces have the same number. > > Any ideas on how to write a procedure in MicroWorlds that would make it > work properly so that no two faces contain the same number? > I'll be darned - we always did two-dimensional! Since the side faces should have certain specific numbers to go with the rolled number, how about making lists of the "right" numbers. I don't have any dice here and I'm not going to take time to fine one, but e.g. if 6 is the real number and 3 is on the left face and 4 is on the right face the list would be [3 6 4] Then you could randomly select a list on each roll and using your inputs put the "correct" number on each face. That way you could use the procedures the kid already has since clearly he has it worked out to put three different numbers on three different sides already. Marian Rosen Instructional Tech Coordinator, Ladue Schools St. Louis, Missouri --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home