Ejemplo n.º 1
0
 def make_decision(self, assignment: Assignment) -> Tuple[Variable, Value]:
   self.decision_count += 1
   unassigned_variables = assignment.get_unassigned()
   return (next(iter(unassigned_variables)), 0)
Ejemplo n.º 2
0
 def make_decision(self, assignment: Assignment) -> Tuple[Variable, Value]:
     self.decision_count += 1
     unassigned_variables = list(assignment.get_unassigned())
     return (random.choice(unassigned_variables), random.choice((0, 1)))