def play(self, currentPlayPointLimit):
    print("{0}'s Hand: {1}".format(self.name, str(self.playHand)))
    if ((self.playHand == None) or (len(self.playHand) <= 0)):
        raise RuntimeError('No play hand was created or it is empty')
    playableCardIndexes = []
    for (i, card) in enumerate(self.playHand):
        if (card.valuePoints <= currentPlayPointLimit):
            playableCardIndexes.append(i)
    cardToPlayIndex = playableCardIndexes[random.randrange(len(playableCardIndexes))]
    return self.playHand.pop(cardToPlayIndex)
def play(self, currentPlayPointLimit):
    print("{0}'s Hand: {1}".format(self.name, str(self.playHand)))
    if ((self.playHand == None) or (len(self.playHand) <= 0)):
        raise RuntimeError('No play hand was created or it is empty')
    playableCardIndexes = []
    for (i, card) in enumerate(self.playHand):
        if (card.valuePoints <= currentPlayPointLimit):
            playableCardIndexes.append(i)
    cardToPlayIndex = playableCardIndexes[random.randrange(len(playableCardIndexes))]
    return self.playHand.pop(cardToPlayIndex)