LLD - Design — Chess Game
Which of the following code snippets correctly represents a basic move validation check for a rook in chess?
if start_row == end_row or start_col == end_col: return True else: return False checks if start and end share the same row or column, which matches rook moves.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions