question: true if the specified position can be reached in one step . does not check if the position is in bounds . concode_field_sep int x concode_elem_sep int y concode_field_sep boolean inBounds concode_elem_sep Position move concode_elem_sep List<Position> getAdjacentPositions concode_elem_sep Direction getDirection concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString concode_elem_sep double euclideanDistance concode_elem_sep int chebyshevDistance
target: boolean function ( Position arg0 ) { return Math . abs ( x - arg0 . x ) <= 1 && Math . abs ( y - arg0 . y ) <= 1 ; }