CALCULATOR CODE:
http://pastebin.com/C68PEiec
I want to edit this code (^) so it can recieve information from a modem and enter it as if it was a player and also take the answer and send it back to the computer whose code this is.
(BTW: The code below here is pretty much the extent of my knowledge so i need all the help i can get)
MAIN COMPUTER CODE:
Spoiler
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
This code so far only has one purpose and its to print text onto a 3x2 advanced monitor since im stuck on the send and recieve information process
Here are some things i can say so you wont ask:
1, The "menu1" program is just a peripheral wrap and i dont remember what it was intended to be.
2. I know i can break the code instead of using shell.run to reboot the system but i didn't know it at the time and i dont really care.
(Also i will keep track of this thread so please ask or answer anything you want.)