Learning to be peaceful in conflict