To continue-- this is a great project: both the idea and the execution! Having been tutored by the book I mentioned, I managed to open the lock. There are two books of anecdotes about Feynman and they're both terrific!
Richard Feynman was famous for opening locks like this at Los Alamos. Among other things, he noticed that when a lock was left open you could read the last number; that left only two to guess. And the locks weren't super-precise so you could use a small range around each number. Which reduced the total range of the lock. Great book: "Surely You're Joking, Dr. Feynman!" See the Safecracker chapter.
They are pretty simple...I'm pretty sure there is a reverse sequence of numbers that can also be used to open them, although I haven't experimented with a real lock.
They show up in the sensing block because they are variables defined only for the one sprite Knob1. Even though they are sprite-specific variables, you can read them (but not change them) from other sprites using the sensing block with the two drop-down menus. It's a cool feature of Scratch.
I had hoped originally to have it use a random code each time it started...but found that I had to tweak the graphics a bit to make it work right for just one combo. It should be doable...but I'm not sure how.
It's a good idea...quite a bit harder to do, however. I considered it when I was first building this project but rejected it as more trouble than it was worth. It would be fun though! Maybe it's worth a second look...
This is great! Any chance you can save to 1.2 format so I can run it in a computer lab. Of course, I could update 28 computers....
But thanks for making this!
Hmmm...interesting suggestion! I can't think of a way to save back in 1.2 format. It doesn't use any 1.3 features but it was developed in 1.3 and 1.2 can't read a 1.3 file. I suppose one could export all the graphics to files and just rebuild the scripts by hand. Maybe you could even export and reimport the sprites...
Well, if you can't give specific ideas of how a project can be improved, please don't make negative comments at all. It's just rude. And it's a violation of the Terms of Use and can get you banned from the site.
Isnt usually these locks are like, turn right two full turns then stop at (number), turn left one fill turn and stop at (number), and turn right 1 full turn and stop at (number), I did that and it didn't work, I have a lock at school too and it works exactly like that, most people need to take up to ten minutes to figure the lock out haha.
As far as I know (and I've had a lot of these), this is an accurate model of how these locks work. Of course, you may have a different design that works differently.
Well, the easiest way to do it is to use the arrow keys and watch the rings. Start with the green ring and use the right arrow to move it so that it's gap is at the very top (lined up with the black line). Then, use the left arrow to move the red ring so it's gap is at the top - without moving the green ring. Finally, use the right arrow to move the blue ring so it's gap is at the top - without moving the two inner rings.
It's your first week of school...can you open your locker?
Use your mouse to drag the dial in the desired direction. The dial will turn as long as the mouse is down. Longer drag gives you faster turn rate.
You can also use the arrow keys, if you prefer.
The combination is on the ratty piece of paper (unfold by clicking on it) - or you can try and do it from memory!
Alternatively, you can use your X-ray vision (you are a super-hero, right?) to see what the wheels are doing and just turn them until the gaps line up at the top.
Opening Instructions
===============
1. Spin the lock Clockwise a couple of full rotations to pick up the wheels, then turn to the first number.
2. Turn Counter-clockwise, past the second number once, then landing on it.
3. Turn Clockwise to the third number.
Credits
=====
Thanks to everybody who looked at my Knob Calculator and said "You should make a combination lock simulation".
More Information
=============
To learn more about how combination locks work, I recommend this site
Comments
You need to be logged in to post comments
Add a Comment
Amazing great idea
Nice!
Great! Interesting to see why the work!
Very, very good! I've always wondered how these work...
Me too!
To continue-- this is a great project: both the idea and the execution! Having been tutored by the book I mentioned, I managed to open the lock. There are two books of anecdotes about Feynman and they're both terrific!
Sounds good...I'll see if my library has them :)
Richard Feynman was famous for opening locks like this at Los Alamos. Among other things, he noticed that when a lock was left open you could read the last number; that left only two to guess. And the locks weren't super-precise so you could use a small range around each number. Which reduced the total range of the lock. Great book: "Surely You're Joking, Dr. Feynman!" See the Safecracker chapter.
Oh! I read that book! It was such a funny chapter!
(view all replies)They are pretty simple...I'm pretty sure there is a reverse sequence of numbers that can also be used to open them, although I haven't experimented with a real lock.
its okay....
This is cool! I like how you can use X Ray vision to see what's inside the lock.
How do you get: "Knob Angle,Knob Velocity,Max Velocity,Start Angle" of "Knob1" block in sensing?!?!
They show up in the sensing block because they are variables defined only for the one sprite Knob1. Even though they are sprite-specific variables, you can read them (but not change them) from other sprites using the sensing block with the two drop-down menus. It's a cool feature of Scratch.
i have to remember like 10 codes at my school with those types of locks. this helped! :)
that was very hard but when i knew what to do it was easy.
?????
????? <= ????
(view all replies)Nice!!!
AWSOME
it won't work.
it is cool and i am not very good at finding the code
Really clever. It's cool to see how a lock works inside.
Thanks! I appreciate you taking a look at it. It was a harder problem to solve than I expected.
I'm not used to these kinds of locks
They can be kind of tricky...that's one reason I made the simulation, so people could understand them better.
(view all replies)wow wow wow... this is really kool..
Yay! I got it open!
oh i forgot to add and each time you start it it's a differnt code
I had hoped originally to have it use a random code each time it started...but found that I had to tweak the graphics a bit to make it work right for just one combo. It should be doable...but I'm not sure how.
it is cool! I think that you should make a second version where there is multiple codes not just 32 6 30
That was great!
awesome
haha, that's awesome!
Very nice.
it takes me 20 sec to open it.
i really dont look at the number. i just do something and bam it works.
i know a trick.
awesome! i think u should make the combo random every time u play it.
It's a good idea...quite a bit harder to do, however. I considered it when I was first building this project but rejected it as more trouble than it was worth. It would be fun though! Maybe it's worth a second look...
(view all replies)make another with a diffrent combo
Interesting locker interior.
I can open my locker at school but this is hard.
Hey you have alot of comments but do you think you have any ideas for my new one, i did your suggestions. you should try it out.
I did it Left-Right-Left!
That's pretty cool! I wonder if you could do a real lock with that same technique, if you could figure out what the numbers were? I bet you could!
This is great! Any chance you can save to 1.2 format so I can run it in a computer lab. Of course, I could update 28 computers.... But thanks for making this!
Hmmm...interesting suggestion! I can't think of a way to save back in 1.2 format. It doesn't use any 1.3 features but it was developed in 1.3 and 1.2 can't read a 1.3 file. I suppose one could export all the graphics to files and just rebuild the scripts by hand. Maybe you could even export and reimport the sprites...
it's so hard!!!!!!
Excellent. I've always wondered how they work, and why they don't for me, now I know.
boooooooorrrrrrrriiiiiiiinnnnnnnngggggggggg
If your reuben nevins I know why your so negative. :( And this project is great, You probably said that because you couldn't open a locker.
Well, if you can't give specific ideas of how a project can be improved, please don't make negative comments at all. It's just rude. And it's a violation of the Terms of Use and can get you banned from the site.
(view all replies)Sorry my project dissappointed you. Do you have any suggestions for how it might be improved?
(view all replies)wow thats really fun u should make more than one
there's a window
All the best lockers have windows!
Wow what a great game!
yay! finally got it open. But those vials could be dangerous... what chemicals are in them again?
Hmmm...I guess I hadn't thought of that! Let's just say it's water until proven otherwise.
awsome!i managed to do it with out the codes!
me too
without the paper or project notes!
Great :) !! Sounds like you have it all figured out.
(view all replies)yay i opened it!
Isnt usually these locks are like, turn right two full turns then stop at (number), turn left one fill turn and stop at (number), and turn right 1 full turn and stop at (number), I did that and it didn't work, I have a lock at school too and it works exactly like that, most people need to take up to ten minutes to figure the lock out haha.
As far as I know (and I've had a lot of these), this is an accurate model of how these locks work. Of course, you may have a different design that works differently.
that is really cool!
pretty clever...its a little hard to spin the dial tough..it goes in direction you dont want it to :)
Or you could use the arrow keys, I find them easier! :D
Just drag it a little way in the direction you want it to go...it will continue to spin.
(view all replies)cool I did it!
That is awsome!!!
just awesome^^ you're back^^
nice game
man, i was gonna make something like this! I only thought of it yesterday though...Great sim!
A Maze Ing.
Hey Paddle. I see your still working your magic in Scratch :p
More or less! Still having fun with it. The new features of 1.3 are fun to work with. Particularly the lists and the remote sensing.
OMG!!!!!!!!!!!!!!!!!! MY FAVORITE GAME EVER!!!!!!!!!
one thing bad about it: its so awesome!! I got it open!
HORRAY
i'm desprite tell me how i can't understand the directions i gues i studieed it forever and can't win.
Well, the easiest way to do it is to use the arrow keys and watch the rings. Start with the green ring and use the right arrow to move it so that it's gap is at the very top (lined up with the black line). Then, use the left arrow to move the red ring so it's gap is at the top - without moving the green ring. Finally, use the right arrow to move the blue ring so it's gap is at the top - without moving the two inner rings.
I can't download it.