• + 0 comments

    Lua

    function catAndMouse(x, y, z)
        return (math.abs(x-z) == math.abs(y-z) and "Mouse C") or (math.abs(x-z) < math.abs(y-z) and "Cat A" or "Cat B")
    end