Example #1
0
    def canDraw(self):
        """Checks if the required precondition has been satisfied."""
#        print "Checking if can draw"
#        print self.preconditions
#        print "len " + str(len(self.preconditions))
        for precon in self.preconditions:
            if not fixer_lib.evaluateCondition(precon):
#                print "uhoh"
                return 0
#        print "okay"
        return 1
 def canDraw(self):
     """Checks if the required precondition has been satisfied."""
     for precon in self.preconditions:
         if not fixer_lib.evaluateCondition(precon):
             return 0
     return 1
Example #3
0
 def canDraw(self):
     """Checks if the required precondition has been satisfied."""
     for precon in self.preconditions:
         if not fixer_lib.evaluateCondition(precon):
             return 0
     return 1