code: def add(self, d, left):
          '''
          Adds the provided domino to the specifed end of the board.
  
          :param Domino d: domino to add
          :param bool left: end of the board to which to add the
                            domino (True for left, False for right)
          :return: None
          :raises EndsMismatchException: if the values do not match
          '''
          if left:
              self._add_left(d)
          else:
              self._add_right(df add(self, d, left):
          '''
          Adds the provided domino to the specifed end of the board.
  
          :param Domino d: domino to add
          :param bool left: end of the board to which to add the
                            domino (True for left, False for right)
          :return: None
          :raises EndsMismatchException: if the values do not match
          '''
          if left:
              self._add_left(d)
          else:
              self._add_right(d)
docs: Adds the provided domino to the specifed end of the board.
  
          :param Domino d: domino to add
          :param bool left: end of the board to which to add the
                            domino (True for left, False for right)
          :return: None
          :raises EndsMismatchException: if the values do not match