def the_local_centroid_is(step, centroid, distance): check_prediction(world.local_centroid['centroid_name'], centroid) check_prediction(world.local_centroid['distance'], distance)
def the_plurality_combined_prediction(step, predictions): predictions = eval(predictions) for i in range(len(world.votes)): combined_prediction = world.votes[i].combine() check_prediction(combined_prediction, predictions[i])