![]() |
|
HomeworkMCB 419 Homework 1 (Spring 2008)
Questions appearing in red are to be answered in the
hw01.txt file.
When you've finished answering all the questions, email a copy of
the file (hw01.txt) with your responses, as a PLAIN TEXT file.
(DO NOT ATTACH A WORD PROCESSING DOCUMENT)
Email to mcb419@gmail.com with 'hw01' in the Subject line.
The homework is due by 11:59PM on Tue, Jan 22.
First-time instructions for using Squeak
Part A: Etoys ChallengeAssignment: complete the Etoys Challenge (start by clicking on the image above). 1. What message is displayed the final page of the EtoysChallenge? Part B: Lunar Lander Gamea) displays a text box saying 'YOU WIN!' in large GREEN letters when the ship lands safely. b) displays a text box saying 'YOU LOSE.' in large RED letters if the ship crashes. c) hides both text messages when the game is reset.HINT: create two 'text (bordered)' objects, with appropriate text and appropriate names; use the 'hide' and 'show' tiles found under 'miscellaneous' in the objects brower to display the proper message. Save your modified project as MyLunarLander in your mcb419 directory. The result of a successful landing might look something like this:
2. Which scripts did you modify to get the 'You Win!' and 'You Lose.' messages working in the LunarLander project? Part C: Movement strategiesAn important component of adaptive behavior is the ability of an organism to control how it moves through its environment. Here you'll simulate some movment patterns for a simple creature in a 2D environment. One important element of movement control is the speed at which an animal moves. In general this scales with the body size of the organism. Speeds are often quoted in "body-lengths per second". It turns out that a speed of 1 body-lenght per second is pretty typical. When you are strolling along casually, you might cover 1 mile in 20 minutes; if you go out for an jog, you might cover 1 mile in 8 minutes; if you're a world-class runner, you might be able to cover 1 mile in 4 minutes." 3. Estimate human 'walking', 'jogging' and 'sprinting' speeds in body-lengths per sec? HINT: the calculator built into the google search box lets you do cool things like: '5280 feet / 8 minutes in m/s' Part D: Your first Squeak project
4. If the ellipse moves forward by 5 units on each tick, and the tick rate is 8 ticks/s, what is the speed of the ellipse in body-lengths per second (recall the Ellipse has length=20)? Is the Ellipse 'walking', 'jogging', or 'sprinting'?
5. For the simulation above
6. For the following script:
7. In squeak, random(N) generates random integers from 1 to N, with equal probability. What do you expect for the mean value of random(5), averaged over multiple calls to the function?
8. For the following script:
9. Implement and briefly describe the behavior arising from each
of the following scripts:
Part E: Weekly reading assignment10. Why does Hawking think that continued evolution of intelligence may shift from biological life forms to self-designing, self-replicating electromechanical "life" forms? What do you think about that idea? 11. According to the article by Crist, what observations prompted Darwin to conclude that earthworms exhibit some degree of intelligence? How does this fit with your own personal ideas about what qualifies as 'intelligence'? |