Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args={ ... }
- i=1
- input={}
- while args[i]~=nil do
- input[i]=tonumber(args[i])
- i=i+1
- end
- function Place(key)
- if key=="q" then color=1
- else if key=="w" then color=2
- else if key=="e" then color=3
- else if key=="r" then color=4
- else if key=="t" then color=5
- else if key=="y" then color=6
- else if key=="u" then color=7
- else if key=="i" then color=8
- else if key=="a" then color=9
- else if key=="s" then color=10
- else if key=="d" then color=11
- else if key=="f" then color=12
- else if key=="g" then color=13
- else if key=="h" then color=14
- else if key=="j" then color=15
- else if key=="k" then color=16
- else print("ERROR!") end end end end end end end end end end end end end end end end
- color=2^(color-1)
- rs.setBundledOutput("bottom",color)
- sleep(.05)
- rs.setBundledOutput("bottom",0)
- sleep(.05)
- end
- function Up()
- rs.setBundledOutput("back", 1)
- sleep(.4)
- rs.setBundledOutput("back", 0)
- sleep(.4)
- end
- function Down()
- rs.setBundledOutput("back", 2)
- sleep(.4)
- rs.setBundledOutput("back", 0)
- sleep(.4)
- end
- function Right()
- rs.setBundledOutput("back", 4)
- sleep(.4)
- rs.setBundledOutput("back", 0)
- sleep(.4)
- end
- function Left()
- rs.setBundledOutput("back", 8)
- sleep(.4)
- rs.setBundledOutput("back", 0)
- sleep(.4)
- end
- testinput={}
- testinput[1]={"q","w","e","r","t","y","u","i"}
- testinput[2]={"a","s","d","f","g","h","j","k"}
- testinput[3]={"q","w","e","r","t","y","u","i"}
- testinput[4]={"a","s","d","f","g","h","j","k"}
- testinput[5]={"q","w","e","r","t","y","u","i"}
- testinput[6]={"a","s","d","f","g","h","j","k"}
- testinput[7]={"q","w","e","r","t","y","u","i"}
- testinput[8]={"a","s","d","f","g","h","j","k"}
- for i=1,8 do
- Up()
- end
- Right()
- Right()
- line=0
- for i=1,4 do
- line=line+1
- if line~=1 then
- Down()
- Right()
- end
- for i=1,8 do
- Place(testinput[line][i])
- Right()
- end
- Down()
- counter=8
- line=line+1
- for i=1,8 do
- Place(testinput[line][counter])
- counter=counter-1
- Left()
- end
- end
- Left()
- Down()
Advertisement
Add Comment
Please, Sign In to add comment