Lines Matching full:cards
7 - No cute graphical images for the playing cards faces or backs.
10 - No option to turn 3 cards at a time.
41 # Constants determining the size and lay-out of cards and stacks. We
45 # face down cards in the row stacks.
88 # cards. ALLVALUES is a list of all card values.
219 """A generic stack of cards.
235 The default position() method places all cards at the stack's
245 usermovehandler(cards) -- called to complete a subpile move
247 The default user move handler moves all moved cards back to
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)
393 fill() -- create the playing cards
394 shuffle() -- shuffle the playing cards
397 moves it face up; if we're out of cards, it moves the open deck
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)