jonassvensson4

Password computer

May 18th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent = os.pullEventRaw
  2. password = "password"
  3.  
  4. while true do
  5.     term.clear()
  6.     term.setCursorPos(12,5)
  7.         print("Enter password")
  8.         term.setCursorPos(12,6)
  9.             input = read("*")
  10.             if input == password then
  11.                 rs.setOutput("left",true)
  12.             sleep(2)
  13.                 rs.setOutput("left",false)
  14.             else
  15.                 term.setCursorPos(12,7)
  16.                 print("WRONG PASSWORD")
  17.             sleep(2)
  18.         end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment