def run():
    with grpc.insecure_channel('0.0.0.0:50051') as channel:
        stub = helloworld_pb2_grpc.GreeterStub(channel)
        login = createLoginForm(stub)
        print('Suas cartas são: ', login.message)
        while True:
            turnResponse = runTurn(stub, login.auth_token)
            print('Suas cartas são: ', turnResponse.cards)
            if turnResponse.message:
                print(turnResponse.message)
            if (turnResponse.playing == 'False'):
                break
        winner = stub.VerifyTurn(helloworld_pb2.VerifyTurnRequest(auth_token=login.auth_token))
        print(winner.message)
def run():
    with grpc.insecure_channel('0.0.0.0:50051') as channel:
        stub = helloworld_pb2_grpc.GreeterStub(channel)
        login = createLoginForm(stub)
        print('Suas cartas são: ', login.message)
        while True:
            turnResponse = runTurn(stub, login.auth_token)
            print('Suas cartas são: ', turnResponse.cards)
            if turnResponse.message:
                print(turnResponse.message)
            if (turnResponse.playing == 'False'):
                break
        winner = stub.VerifyTurn(helloworld_pb2.VerifyTurnRequest(auth_token=login.auth_token))
        print(winner.message)