Project Folders
Teacher Resources
Student Resources
How Do I?
Site Map
Our Team

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

[Thread Prev] [Thread Next]

Subject: Testing for finish line
From: mwforum@xxxxxxxxxxxxxxxxxx (Daniel Ajoy)
Date: Tue, 18 May 2004 10:42:25 -0500

On 18 May 2004 at 9:36, Bob Irving wrote:

> Hi again,
> Another "should be easy one" -- using microworlds pro, and the student is
> having a turtle go along a straight course to a finish line. We want to test
> for when the turtle has reached or passed the finish line.
> Currently we have something like
> If t1's xcor > 304 [gameover]

The correct syntax is:

if ask "t1 [xcor] > 304 [gameover]

But you could also leave that testing task 
to each turtle (project attached).

OpenWorld Learning

Attachment: Am_I_there.mw2
Description: Binary data

  • Previous by thread: Testing for finish line
  • Next by thread: Testing for finish line

  • 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 - 2008