Home Project Folders Resources How Do I? MWForum
Site Map Search Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Matching Game
From: "Alain Tougas" <alain@xxxxxxx>
Date: Tue, 22 Apr 2008 15:40:42 -0400

Hello,

There are several ways to do that, here's one you can "study". If you
understand this procedure, you will be able to find other ways to do that,
better suited for your context.

to compare :t1 :t2
if (ask :t1 [shape])    (ask :t2 [shape])
      [print "good]
end

Use the procedures in the following manner:
Create two turtles
Give them the same shape
Create a text box
In the command center, type COMPARE "T1 "T2
You shoudl see "GOOD" in the text box.
Give a different shape to one of the turtles
In the command center, type COMPARE "T1 "T2
No good.

I'm using variables and print and a procedure, and a "print" consequence,
but you don't have to. The important point here is the IF and the ASK and
the ( ).

To better understand the syntax, type this in the command center
show ask "t1 [pos]
show ask "t1 [shape]

Alain


-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Dawn
Young
Sent: Tuesday, April 22, 2008 3:04 PM
To: MicroWorlds Listserv
Subject: Matching Game


I have some 6th grade students who would like to create a matching game
in Microworlds. We have figured out how to put two different shapes in
the backpack and how to change the shape when selected. Is there a way
to have MW tell if the two shapes match for two different turtles and
then accrue points if it does? We are using MW Robotics EX on iBooks.

Thanks for any help,




Dawn Young
Challenge Enrichment Specialist
West Middle School





  • Previous by thread: Matching Game
  • Next by thread: Re: Matching Game

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2006