1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-15 02:54:09 -04:00

refactoring

This commit is contained in:
Shlomi Fish 2019-06-04 15:36:45 +03:00
parent 648f3d6bb9
commit b03e877b3b

View file

@ -1979,10 +1979,8 @@ Congratulations, you did it !
def isGameWon(self): def isGameWon(self):
# default: all Foundations must be filled # default: all Foundations must be filled
c = 0 return sum([len(s.cards) for s in self.s.foundations]) == \
for s in self.s.foundations: len(self.cards)
c += len(s.cards)
return c == len(self.cards)
def getFoundationDir(self): def getFoundationDir(self):
for s in self.s.foundations: for s in self.s.foundations: