LLD - Design — Chess Game
Find the error in this move validation snippet:
def validate_knight_move(start, end):
dx = abs(end[0] - start[0])
dy = abs(end[1] - start[1])
if dx == 2 and dy == 1 or dx == 1 and dy == 2:
return True
else:
return False