Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Assignment 3 Slow Moving Mummy (http://www.alice.org/community/showthread.php?t=11163)

bdoherty 06-16-2015 04:02 PM

Assignment 3 Slow Moving Mummy
 
Overall, it was a pretty good assignment. I was able to get the mummy to start walking by controlling its right leg and then left leg. I originally started creating multiple methods in the Step method, but then realized I could use a loop and only needed to create the move left leg, then move right leg, then move upper body and the loop allowed it to repeat 10 times, until it got to the Pharaoh.

Moving the Pharaohs arm was somewhat difficult, since I kept going through each movement and couldn't find the correct one, until I located the turn, backwards method, which allowed the Pharaoh to point at the mummy.

I did look at the Randomize Frog program and was able to mimic some code to make my program do similar things.


All times are GMT -5. The time now is 07:29 AM.

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