def dealCards(self, sound=False): if not self.cards: RedealTalonStack.redealCards(self, sound=False) if sound and not self.game.demo: self.game.startDealSample() rows = self.game.s.rows rows = rows[:1]+rows[4:8]+rows[2:3]+rows[1:2]+rows[8:]+rows[3:4] num_cards = self.dealRowAvail(rows=rows) if sound and not self.game.demo: self.game.stopSamples() return num_cards
def dealCards(self, sound=False): if not self.cards: RedealTalonStack.redealCards(self, sound=False) if sound and not self.game.demo: self.game.startDealSample() rows = self.game.s.rows rows = rows[:1] + rows[4:8] + rows[2:3] + rows[1:2] + rows[8:] + rows[ 3:4] num_cards = self.dealRowAvail(rows=rows) if sound and not self.game.demo: self.game.stopSamples() return num_cards
def dealCards(self, sound=False): rows = self.game.s.rows reserves = self.game.s.reserves if not self.cards: RedealTalonStack.redealCards(self, rows=rows+reserves, sound=False) if sound and not self.game.demo: self.game.startDealSample() num_cards = 0 if self.round != 4: num_cards += self.dealRowAvail(rows=[reserves[0]], flip=0) num_cards += self.dealRowAvail() if self.round != 4: num_cards += self.dealRowAvail(rows=[reserves[1]], flip=0) if not self.cards: for s in reserves: self.game.flipAllMove(s) if sound and not self.game.demo: self.game.stopSamples() return num_cards
def dealCards(self, sound=False): RedealTalonStack.redealCards(self, shuffle=True, sound=sound)
def dealCards(self, sound=False): if not self.cards: RedealTalonStack.redealCards(self, frames=4, sound=sound) return self.dealRowAvail(sound=sound)