Talk:Making a Password Protected Door
From ComputerCraft Wiki
Revision as of 00:41, 22 July 2012 by 50.39.186.71 (Talk)
While true loop instead of functions
We need a new picture tutorial, the current one should be using this code:
while true do term.clear() term.setCursorPos(1,1) write("Password: ") local t = read("*") if t == "password" then rs.setOutput("back", true) sleep(2) rs.setOutput("back", false) else end end
(a few improvements, plus using a while true loop instead of calling a function over and over again (that crashes the computer after some time)
Done with slightly different code. Updated writeup to match. Did not add new screenshots. --50.39.186.71 00:41, 22 July 2012 (UTC)