local m = peripheral.wrap("left")
local m2 = peripheral.wrap("right")
local modem = peripheral.wrap("back")
redstone.setOutput("top", false)
redstone.setOutput("bottom", true)
redstone.setOutput("right", false)
sleep(3)
m.setTextColor(colors.white)
m.setBackgroundColor(colors.black)
m.clear()
redstone.setOutput("right", true)
redstone.setOutput("top", true)
redstone.setOutput("bottom", false)
sleep(2)
m.setCursorPos(14,2)
m.write("Hej")
--"Hi"
sleep(2)
m.setCursorPos(2,5)
m.write("Välkommen till Matte-Datorn")
--"Welcome to the Math PC"
sleep(2)
m.setCursorPos(1,9)
m.write("Av ****** ********* (**, ***)")
--("By ****** ********* (**, ***)")
--The stars indicate personal information (Name, (Class, School) and it isnt important.
sleep(7)
m.clear()
m.setCursorPos(12,2)
m.write("Ditt Mål:")
--"Your goal:"
sleep(2)
m.setCursorPos(7,6)
m.write("Svara rätt på så")
--"Try to answer"
m.setCursorPos(3,7)
m.write("många frågor som möjligt!")
--"As many questions right as possible"
sleep(6)
m.clear()
m.setCursorPos(2,2)
m.write("Så...")
--"So..."
m.setCursorPos(7,2)
sleep(3)
m.write(" Vilken klass går du i?")
--"Which class are you in"
sleep(1)
m.setTextColor(colors.gray)
m.setCursorPos(2,2)
m.write("Så...")
--"So..."
m.setCursorPos(7,2)
m.write(" Vilken klass går du i?")
--"Which class are you in"
m.setCursorPos(14,5)
sleep(1)
m.setTextColor(colors.green)
m.write(" 6 ")
sleep(1)
m.setCursorPos(14,7)
m.setTextColor(colors.purple)
m.write(" 7 ")
sleep(1)
m.setCursorPos(14,9)
m.setTextColor(colors.orange)
m.write(" 8 ")
sleep(1)
m.setCursorPos(14,11)
m.setTextColor(colors.pink)
m.write(" 9 ")
m.clear()
m.setBackgroundColor(colors.white)
m.clear()
m.setCursorPos(2,2)
m.setTextColor(colors.gray)
--m.setBackgroundColor(colors.lightGray)
m.write("Så...")
--Same as earlier
m.setCursorPos(7,2)
m.write(" Vilken klass går du i?")
--Once again, same as earlier
--m.setBackgroundColor(colors.yellow)
m.setCursorPos(14,5)
m.setBackgroundColor(colors.black)
m.setTextColor(colors.green)
m.write(" 6 ")
m.setCursorPos(14,7)
m.setTextColor(colors.purple)
m.write(" 7 ")
m.setCursorPos(14,9)
m.setTextColor(colors.orange)
m.write(" 8 ")
m.setCursorPos(14,11)
m.setTextColor(colors.blue)
m.write(" 9 ")
while true do
redstone.getAnalogInput("back")
if redstone.getAnalogInput("back") == 15 then
shell.run("reboot")
else
shell.run("menu1")
end
end