Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Alice Assignment 2
Old
HalBen18
Junior Member
 
Status: Offline
Posts: 12
Join Date: Jan 2014
Location: Cedar Hill, TX
Post Alice Assignment 2 - 01-31-2014, 05:00 PM

I did PP1.2 which was making a combination lock spin and unlatch. This was a little bit more difficult than the first one but it was still fun and easy. The hardest part was adjusting the amounts to get it to go where you needed it to be.
   
Reply With Quote
sounds like fun
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default sounds like fun - 02-01-2014, 03:57 PM

How about a challenge for your class and teacher?

1) Assume that dial starts at zero.
2) Have the Lock ask the user for three numbers.
3) Make the dial do the combination, and then unlock.

Advanced challenge:
1) Make the dial spin past zero twice before stopping at first number.
2) Reverse direction and make the dial spin past first number once before stopping at second number.
3) Reverse direction again, and turn to last number.

All of above worked for me
   
Reply With Quote
Assignment 2- Lock
Old
Ulymedina
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jan 2014
Default Assignment 2- Lock - 02-01-2014, 05:18 PM

Just finished the combination lock project, easiest way to figure out how much to make the dial roll is to think of it in parts. Each number is an 8th, 10= 2/8 or 1/4. Then just count backwards the same way.
   
Reply With Quote
You might want to rethink your Logic
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default You might want to rethink your Logic - 02-02-2014, 11:50 AM

Quote:
Originally Posted by Ulymedina View Post
Just finished the combination lock project, easiest way to figure out how much to make the dial roll is to think of it in parts. Each number is an 8th, 10= 2/8 or 1/4. Then just count backwards the same way.
Including the zero, there are 40 different possibilities.
Click below and select open to view a quicktime video of my solution
Attached Files
File Type: zip Mr Mokes Combo.zip (5.78 MB, 8 views)

Last edited by MrMoke; 02-04-2014 at 09:15 AM.
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.