Something
public text v1 · immutabledef heuristic(self,node):
total = 0;
num = 0;
for x in node.state:
if x == num:
total = total + 1
num = num + 1
return total