mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
* fixed game Q.C.
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@60 efabe8c0-fbe8-4139-b769-b5e6d273206e
This commit is contained in:
parent
3b0cc10d30
commit
b39a6c690d
1 changed files with 10 additions and 11 deletions
|
@ -899,21 +899,20 @@ class Q_C_(Klondike):
|
|||
return 0
|
||||
|
||||
def fillAll(self):
|
||||
# rows
|
||||
for r in self.s.rows:
|
||||
if self.fillOne(r):
|
||||
self.fillAll()
|
||||
return
|
||||
# waste
|
||||
# fill
|
||||
if not self.s.waste.cards and self.s.talon.cards:
|
||||
self.s.talon.dealCards()
|
||||
if self.fillOne(self.s.waste):
|
||||
self.fillAll()
|
||||
|
||||
def fillStack(self, stack):
|
||||
if stack in self.s.rows:
|
||||
for stack in self.s.rows:
|
||||
if not stack.cards and self.s.waste.cards:
|
||||
self.s.waste.moveMove(1, stack)
|
||||
# move to foundations
|
||||
if self.fillOne(self.s.waste):
|
||||
self.fillAll()
|
||||
for stack in self.s.rows:
|
||||
if self.fillOne(stack):
|
||||
self.fillAll()
|
||||
|
||||
def fillStack(self, stack):
|
||||
self.fillAll()
|
||||
|
||||
shallHighlightMatch = Game._shallHighlightMatch_SS
|
||||
|
|
Loading…
Add table
Reference in a new issue