Learning in war