mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -04:00
refactoring
This commit is contained in:
parent
648f3d6bb9
commit
b03e877b3b
1 changed files with 2 additions and 4 deletions
|
@ -1979,10 +1979,8 @@ Congratulations, you did it !
|
|||
|
||||
def isGameWon(self):
|
||||
# default: all Foundations must be filled
|
||||
c = 0
|
||||
for s in self.s.foundations:
|
||||
c += len(s.cards)
|
||||
return c == len(self.cards)
|
||||
return sum([len(s.cards) for s in self.s.foundations]) == \
|
||||
len(self.cards)
|
||||
|
||||
def getFoundationDir(self):
|
||||
for s in self.s.foundations:
|
||||
|
|
Loading…
Add table
Reference in a new issue