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: comparing shapes in slot machine
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Wed, 13 Feb 2008 09:03:48 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

On 13 Feb 2008 at 4:02, zehava wizman wrote:

> Hi Daniel!
>  thanks for your reply/Here attached the project, using the same syntax. It 
> send an error "
> I don't know how to false in ask"/

the code in the project is different from the code that you showed before:

this code is correct:

to win
if (and (t1's "shape) = (t2's "shape)
	(t2's "shape) = (t3's "shape)) 
[announce [you win] stopall]
end

this is wrong:

to win
if (and (t1's "shape) =  t2's "shape)
	(t2's "shape = t3's "shape)) 

[announce [you win] stopall]
end

more specifically this is wrong:

t2's "shape = t3's "shape

because MW parses this as:

t2's ("shape = t3's "shape)


Daniel
OpenWorld Learning




  • Previous by thread: Re: comparing shapes in slot machine
  • Next by thread: pacman and a maze 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 - 2008