1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-12-14 12:10:29 +00:00

Update tron

This commit is contained in:
LDDestroier 2018-11-13 23:02:56 -05:00 committed by GitHub
parent 81b28e6015
commit 9218b030ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
tron
View File

@ -461,6 +461,21 @@ local moveTick = function()
ageTrails()
end
local modem = peripheral.find("modem")
if modem then
modem.open(modemID)
else
error("You need a modem.")
end
local sendInfo = function(gameID)
modem.transmit(modemID, modemID, {
player = player,
gameID = gameID
})
end
local game = function()
local p = player[you]
local outcome
@ -509,19 +524,6 @@ local game = function()
end
local decision
local modem = peripheral.find("modem")
if modem then
modem.open(modemID)
else
error("You need a modem.")
end
local sendInfo = function(gameID)
modem.transmit(modemID, modemID, {
player = player,
gameID = gameID
})
end
local networking = function()
local evt, side, channel, repchannel, msg, distance