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]

Subject: New user trying to create madlibs game
From: mwforum@xxxxxxxxxxxxxxxxxx (Daniel Ajoy)
Date: Thu, 07 Aug 2003 15:44:48 -0500

On 4 Aug 2003 at 23:33, Wendy Petti wrote:

> Does one of these games already exist or should I
> > start from scratch?

This might help you:

 to startup
 make "marker "#
 make "phrase [In a #SEASON of the year a #PROFESSION set off with #NAME , his 
trusty 
sidekick #PET]
 
 make "new_phrase []
 build_phrase
 
 cc
 show sentence "TEMPLATE: :phrase
 show sentence "INSTANCE: :new_phrase
 end
 
 to build_phrase
 dolist [wrd :phrase] [
  ifelse :marker = first :wrd [
   question sentence [I need a:] butfirst :wrd
   make "new_phrase lput answer :new_phrase
  ] [
   make "new_phrase lput :wrd :new_phrase
  ]
 ]
 end
 

Try: ------------------------------

startup

I need a: SEASON
summer

I need a: PROFESSION
programmer

I need a: NAME
Rand

I need a: PET
Shadowfax

TEMPLATE: In a #SEASON of the year a #PROFESSION set off with #NAME , his trusty sidekick #PET
INSTANCE: In a summer of the year a programmer set off with Rand , his trusty sidekick Shadowfax


Daniel
OpenWorld Learning



  • Previous by thread: New user trying to create madlibs game
  • Next by thread: Duplicating turtles for game levels

  • 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