Mdking8638
10-30-2009, 01:01 AM
Hi i'm currently using Alice is a program design and development class for my degree. I am completely stumped on this exercise. Verbatim from the book.......
"Write a new world level method for the snow people world. The new method name fliphats , will be called when the snowwoman turns to the snowman. In the fliphats method the snowman uses his right arm to grab his hat and graciously tip his hat to the snow woman and then return his hat to his head. After the snowman flips his hat, the snowman flips her hat"
The problem i'm having is how do I get the snowman to "grab" his hat and take it off then return it. I am utterly stumped at this moment and any help would be greatly appreciated.
For those with the Programming with Alice book it is Exercise 4-1.
"Write a new world level method for the snow people world. The new method name fliphats , will be called when the snowwoman turns to the snowman. In the fliphats method the snowman uses his right arm to grab his hat and graciously tip his hat to the snow woman and then return his hat to his head. After the snowman flips his hat, the snowman flips her hat"
The problem i'm having is how do I get the snowman to "grab" his hat and take it off then return it. I am utterly stumped at this moment and any help would be greatly appreciated.
For those with the Programming with Alice book it is Exercise 4-1.