Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CHANNEL_BROADCAST = 69
- t_id = 0
- function AddTurtle()
- id, message = rednet.receive()
- if message == "Connect" then
- rednet.broadcast(t_id)
- t_id = t_id + 1
- rednet.receive()
- end
- end
- rednet.open("back")
- print("How many Bots?")
- num_of_bots = tonumber(read())
- for i = 1, num_of_bots, 1 do
- AddTurtle()
- print("Bot ", t_id, " connected")
- end
- print("Press Enter to Begin")
- read()
- for i = 1, num_of_bots, 1 do
- rednet.broadcast(i + 10)
- rednet.receive()
- print("Siggy Wiggy from Bot ", i, " UwU")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement