def can_claim_fifty_moves(self) -> bool:
        """
        Draw by the fifty-move rule can be claimed once the clock of halfmoves
        since the last capture or pawn move becomes equal or greater to 100
        and the side to move still has a legal move they can make.
        """
        # Fifty-move rule.
        if self.halfmove_clock >= 100:
            if any(self.generate_legal_moves()):
                return True

        return False
def can_claim_fifty_moves ( self ) -> bool : if self . halfmove_clock >= 100 : if any ( self . generate_legal_moves ( ) ) : return True return False
Draw by the fifty-move rule can be claimed once the clock of halfmoves
        since the last capture or pawn move becomes equal or greater to 100
        and the side to move still has a legal move they can make.