shenzhen-solitaire.py
def cleared(self):
        """Calculate if game successfully completed."""
        return (not self.spaces and
                self.colors_cleared == 3 and
                self.rose_cleared and
                not sum(map(len, self.piles))
               )
Calculate if game successfully completed.
Calculate if game successfully completed.
Calculate if game successfully completed .
def cleared(self):
        return (not self.spaces and
                self.colors_cleared == 3 and
                self.rose_cleared and
                not sum(map(len, self.piles))
               )
def cleared ( self ) : return ( not self . spaces and self . colors_cleared == 3 and self . rose_cleared and not sum ( map ( len , self . piles ) ) )
Calculate if game successfully completed.
Calculate if game successfully completed .
"""Calculate if game successfully completed."""
self