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

fortune telling bones 1 2
Fortune Telling Bones 1
Try It
38 KB


Goal:   A magic bone answers random questions with cracks of random lengths.


Screenshot


Vocabulary:   freezebg, clean, everyone, ht, setpensize, setc (setcolor), setpos, ask, random, pu, pd

Code
Project Map

to startup
clean
everyone [ht setpensize 2 setc 0]
questions, hidetext
text1, hidetext
opaque "text1
ct
setfont "Arial
setfontsize 14
settc 30
end

to ask_a_question
startup
text1, insert textpick "questions
transparent "text1
showtext
end

to crack_the_bone
clean
ask [t1 t2] [pu setpos [0 60]]
ask [t3 t4] [pu setpos [0 30]]
ask [t1 t3] [seth 75 + random 30]
ask [t2 t4] [seth -75 - random 30]
ask [t1 t2 t3 t4] [pd fd random 200]
end

to show_questions
questions, showtext
end

to hide_questions
questions, hidetext
end



Notes

Background: This project builds on the skills from the Fortune Telling Ball folder, but it uses an "oracle bone" instead of a ball for answering questions.   Oracle bones were used in ancient China to make predictions.   A question was written on the shoulder blade of an animal.   One edge of the bone was the "yes" end, and one was the "no" end.   The bone was heated until it cracked.   The longer cracks pointed to the answer.

  1. For asking questions, you can use the same invisible text box of questions created in Fortune Telling Ball 4, or write new questions in an invisible text box.   As in Fortune Telling Ball 4, the project will choose one question at random to answer.   In this project, four turtles will draw "cracks" on the oracle bone to determine the answer.  

  2. Draw an oracle bone.   Mark one end of it "yes" and the other "no."   (Write the words in text boxes, make them transparent, stamp them, and remove the text boxes.   Or you may write the words with drawing tools.)

  3. We need to be able to erase the cracks in the bone without erasing the bone.

    After you draw your bone, type freezebg in the command center and hit Enter (Return).   Freezebg stands for "freeze background."   When you freeze the background, you can draw on top of it and then erase those lines with the command clean without erasing the whole picture.

    (If you want to change the picture after you have frozen the background, then type unfreezebg in the command center and hit Enter (Return).   Make your changes, then freeze the background again.)

  4. There are four invisible turtles.   Everyone tells all the turtles to follow the commands in the brackets.   Ht stands for "hide turtle" and makes a turtle invisible.   (St stands for "show turtle" and makes a turtle visible again.)   Turtles t1 and t2 will make one crack, and turtles t3 and t4 will make another crack.   Setpensize 2 sets the thickness of the lines the turtles draw.

  5. Ask is a way to talk temporarily to one or more turtles.   Place the turtle names in brackets, and place their instructions in another set of brackets.   Turtles t1 and t2 will make one crack, a little bit higher than the crack made by turtles t3 and t4.

  6. Pu means "pen up."   The turtle puts its pen up so it can't draw as it moves.
    Pd means "pen down," so the turtle can draw.

  7. Setpos stands for "set position."   The first number in the brackets is the x coordinate and tells how far left or right to go.   The second number is the y coordinate and tells how far up or down to go.

  8. Seth stands for "set heading."   Seth 0 points a turtle straight up.
    Seth 75 + random 30 means, "If you start at heading 0, turn 75 degrees to the right, then add a number that is 0 or higher, but less than 30, and turn right that extra amount."
    Seth -75 - random 30 means, "If you start at heading 0, turn 75 degrees to the left and then keep turning left a random number that is 0 or higher, but less than 30."

  9. After the turtles are all in the right positions and have chosen their headings,
    Pd fd random 200 means, "Put your pen down and move forward a random number of tiny turtle steps, 0 or higher, but fewer than 200."




What If?
Try different numbers after seth and random to change the angles of the lines.
Try different numbers after fd random.
Place your own questions in the questions text box.


Challenge
Can you change the procedures so that the "yes" side has a better chance of winning (but not always)?




© copyright 2001 - 2008  OpenWorld Learning.   All rights reserved.