LLD - Design — Chess Game
Given this simplified move validation function for a king:
What will
def is_valid_king_move(start, end):
row_diff = abs(start[0] - end[0])
col_diff = abs(start[1] - end[1])
return (row_diff <= 1 and col_diff <= 1) and (row_diff + col_diff != 0)What will
is_valid_king_move((4,4), (5,5)) return?