rendered paste bodyimport GameLogicimport socketcon = GameLogic.getCurrentController()levo = con.getSensor('left')desno = con.getSensor('right')gor = con.getSensor('up')dol = con.getSensor('down')host = 'localhost'port = 50000size = 1024s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.connect((host,port))if levo.isPositive(): s.send('Left')if desno.isPositive(): s.send('Right')if dol.isPositive(): s.send('Down') if gor.isPositive(): s.send('Up') data = s.recv(size)s.close()print 'Received:', data