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

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

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: touching command using WHO
From: "Daniel Ajoy" <dajoy@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 12 Feb 2006 12:37:49 -0500

On 12 Feb 2006 at 5:40, zehava wizman wrote:

> hello forum!
> 
> I want to know if there is a way  to check if someone is 
> touching someone without mention all the turtles taking 
> place in the game, Maybe something like that
> 
> if touching? who who [make "score :score + 1].Sometimes the 
> main thing is to identify whether an intersection happened, 
> and not so important who are the turtles.
> 
> Maybe the program can identify by its self who are  the 
> turtles .
> 
> here attached an example, I start mention the touching 
> command with "t1 within go procedure, but not finished with 
> all possibilities of intersection.
> 
> thanks, Zehava Wizman

Hi Zehava,

to any_touching?
let [turtles get "page1 "turtles]

dolist [i :turtles] [
 dolist [j :turtles] [
  if not :i = :j [
   if touching? :i :j [output "true]
  ]
 ]
]

output "false
end




Daniel





*****************************
OpenWorld Learning
http://www.openworldlearning.org





  • Previous by thread: Re: touching command using WHO
  • Next by thread: Re: touching command using WHO

  • 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