import Pyro4



if __name__ == '__main__':
    nameserver = ['server1','server2']
    for x in nameserver:
        uri = "PYRONAME:{}@localhost:7777".format(x)
        server = Pyro4.Proxy(uri)
        # server.resetLocalJson()
        print server.getServerJson()
    # server.add_player("P1")
    # server.add_player("P2")
    # server.add_player("P3")
    # server.add_player("P4")
    # print server.getServerJson()
    # server.writeLocalJson()
    # server.readLocalJson()
    # print server.getServerJson()
    # server.resetLocalJson()
    # server.readLocalJson()
    # print server.getServerJson()







585c226e93d5232189366ad8b3c4dcf720373cf5
import Pyro4



if __name__ == '__main__':
    nameserver = ['server1','server2']
    for x in nameserver:
        uri = "PYRONAME:{}@localhost:7777".format(x)
        server = Pyro4.Proxy(uri)
        # server.resetLocalJson()
        print server.getServerJson()
    # server.add_player("P1")
    # server.add_player("P2")
    # server.add_player("P3")
    # server.add_player("P4")
    # print server.getServerJson()
    # server.writeLocalJson()
    # server.readLocalJson()
    # print server.getServerJson()
    # server.resetLocalJson()
    # server.readLocalJson()
    # print server.getServerJson()






