(old_x, old_y, x, y)
return (old_x + dx, old_y + dy)
Takes the current position, old_x and old_y, and a desired future position, x and y,
    and returns the position (x,y) resulting from a unit move toward the future position.
Takes the current position, old_x and old_y, and a desired future position, x and y,
    and returns the position (x,y) resulting from a unit move toward the future position.
Takes the current position old_x and old_y and a desired future position x and y and returns the position ( x y ) resulting from a unit move toward the future position .
def get_next_move(old_x, old_y, x, y):
    ''' Takes the current position, old_x and old_y, and a desired future position, x and y,
    and returns the position (x,y) resulting from a unit move toward the future position.'''
    dx = numpy.sign(x - old_x)
    dy = numpy.sign(y - old_y)
    return (old_x + dx, old_y + dy)
def get_next_move ( old_x , old_y , x , y ) : dx = numpy . sign ( x - old_x ) dy = numpy . sign ( y - old_y ) return ( old_x + dx , old_y + dy )