def play(self, d):
        '''
        Removes a domino from the hand.

        :param Domino d: domino to remove from the hand
        :return: the index within the hand of the played domino
        :raises NoSuchDominoException: if the domino is not in the hand
        '''
        try:
            i = self._dominoes.index(d)
        except ValueError:
            raise dominoes.NoSuchDominoException('Cannot make move -'
                                                 ' {} is not in hand!'.format(d))

        self._dominoes.pop(i)
        return i
Removes a domino from the hand.

        :param Domino d: domino to remove from the hand
        :return: the index within the hand of the played domino
        :raises NoSuchDominoException: if the domino is not in the hand