Ejemplo n.º 1
0
  def isNewContents(n): return not T.searchNode(n, getValue)

  # Criterion for adding a particular configuration into the BFS queue: The set of jug-contents should never 
  # have happened so far.
  def shouldBeAdded(n): return isNewContents(n)
Ejemplo n.º 2
0
 def isNewContents(n):
   return not T.searchNode(n, T.getContents)