Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
NEED HELP Project 3.3
Old
Gproctor44
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2011
Location: Los angeles
Default NEED HELP Project 3.3 - 10-07-2011, 04:47 PM

I need help with Alice Project 3.3 from page 102.

Our teacher (for an intro class) crammed 3 Alice lessons in to one day and I am now lost. We don't get graded on completing them but at the end of the semester I'll need how to know all the ins and outs. Does anyone have a 3.3 file that is correctly finished ?
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 10-07-2011, 05:35 PM

We don't generally post homework assignments to the forums, but if you describe 3.3 in more detail, we can help you out.
   
Reply With Quote
Walk in a square, number provided by user
Old
Gproctor44
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2011
Location: Los angeles
Default Walk in a square, number provided by user - 10-07-2011, 07:22 PM

3.3
Build a person. For your person define an object method name walkInsquare() that has a parameter named edgeLength.
When walkInsquare (dist) is sent to your person, he should walk in a square with edges that are each DIST meters long.

So basically, I need to have a person, ask the user for a number and then apply that given number to all four "edges" of the square he walks.
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 10-07-2011, 07:52 PM

So, I'm assuming you know how to make a person using the people creator

So, make the person, and in your method, make a parameter for a number. Then you need to have the person move forward that number of meters, probably doing together with the walk inborn method, turn left 1/4 revolution, repeat 3 more times.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.