code: def min_conflicts_value(csp, var, current):
      
      return argmin_random_tie(csp.domains[var],
                               lambda val: csp.nconflicts(var, val, current))
docs: Return the value that will give var the least number of conflicts.
      If there is a tie, choose at random.