def result(self, s, a):
        # result: boat on opposite side, and numbers of missioners and
        # cannibals updated according to the move
        if s[2] == 0:
            return (s[0] - a[1][0], s[1] - a[1][1], 1)
        else:
            return (s[0] + a[1][0], s[1] + a[1][1], 0)
Write the package file
dataset/ETHPy150Open simpleai-team/simpleai/samples/search/missioners.py/MissionersProblem.result--crossover with--dataset/ETHPy150Open modflowpy/flopy/flopy/mt3d/mtrct.py/Mt3dRct.write_file