Lines Matching refs:cards
276 self.cards = []
294 self.cards.append(card)
300 self.cards.remove(card)
304 if self.cards:
305 self.cards[-1].showface()
308 if not self.cards:
310 card = self.cards[-1]
325 def usermovehandler(self, cards): argument
326 for card in cards:
355 for i in range(len(self.cards)):
356 card = self.cards[i]
363 self.moving = self.cards[i:]
381 cards = self.moving
383 if cards:
384 self.usermovehandler(cards)
415 n = len(self.cards)
418 newcards.append(self.cards[i])
419 self.cards = newcards
449 def acceptable(self, cards): argument
452 def usermovehandler(self, cards): argument
453 card = cards[0]
455 if not stack or stack is self or not stack.acceptable(cards):
456 Stack.usermovehandler(self, cards)
458 for card in cards:
464 if not self.cards:
466 card = self.cards[-1]
492 def acceptable(self, cards): argument
493 if len(cards) != 1:
495 card = cards[0]
496 if not self.cards:
498 topcard = self.cards[-1]
504 def acceptable(self, cards): argument
505 card = cards[0]
506 if not self.cards:
508 topcard = self.cards[-1]
515 for c in self.cards:
575 if len(s.cards) != NVALUES:
582 cards = []
584 cards = cards + s.cards
585 while cards:
586 card = random.choice(cards)
587 cards.remove(card)