Posted 18 September 2012 - 10:52 PM
Hello there!
Well we all know a door lock is basically the Hello World of CC, and there are hundreds of variations on it kicking around these forums, so I thought, why not create the lock to end all locks as a group? I'll write up the simplest one I can, and you guys throw your code at it to make it awesome!
Want it to turn a light on above? Go for it.
Want it to say hello? Go for it. Want it to shoot a laser because not even you can go in your house? Go for it!
Hopefully we can just have a play about with some crazy ideas! :D/>/>
As suggestions come in, I'll try and update this code regularly.
That's my part, now what can you guys do? :)/>/>
(Wrote that on my phone, pretty sure it works, but not certain… :)/>/>)
Well we all know a door lock is basically the Hello World of CC, and there are hundreds of variations on it kicking around these forums, so I thought, why not create the lock to end all locks as a group? I'll write up the simplest one I can, and you guys throw your code at it to make it awesome!
Want it to turn a light on above? Go for it.
Want it to say hello? Go for it. Want it to shoot a laser because not even you can go in your house? Go for it!
Hopefully we can just have a play about with some crazy ideas! :D/>/>
As suggestions come in, I'll try and update this code regularly.
term.clear()
term.setCursorPos(1,1)
password = "1234"
print("Enter the password please.")
input = read()
if input == password then
rs.setOutput("back",true)
sleep(3)
rs.setOutput("back",false)
end
os.reboot()
That's my part, now what can you guys do? :)/>/>
(Wrote that on my phone, pretty sure it works, but not certain… :)/>/>)