Posted 13 June 2012 - 05:50 PM
Im trying to code a jeopardy like game and I have hit a wall. I am having 1 console control all of it, 14 different grid slave consoles and 1 monitor and console. What i am thinking is to have 3 or 4 other podiums with buttons and consoles that tell the master console and then i have a manual override… my problem is that my grid slave code isn't working. here it is, got any ideas?
rednet.open("front")
senderId, message, distance = rednet.receive()
if message == "who" then
if rs.getInput("back") == "true" then
sleep(1)
rednet.broadcast("test")
os.shutdown()
else
os.reboot()
end
else
os.reboot()
end
included are some pictures that I took of my rig (srry about the quality this forum wouldn't let me upload anything higher). Also I am using redpower for the wiring, didn't want to have to deal with the wiring.
rednet.open("front")
senderId, message, distance = rednet.receive()
if message == "who" then
if rs.getInput("back") == "true" then
sleep(1)
rednet.broadcast("test")
os.shutdown()
else
os.reboot()
end
else
os.reboot()
end
included are some pictures that I took of my rig (srry about the quality this forum wouldn't let me upload anything higher). Also I am using redpower for the wiring, didn't want to have to deal with the wiring.