LLD - Design — Chess Game
Given this simplified code snippet for check detection, what will be the output if the king is under threat?
def is_in_check(board, king_pos):
threats = find_threats(board, king_pos)
return len(threats) > 0
print(is_in_check(board_state, (4, 0)))