An American writer and Naval Academy graduate placed the fate of Britain and the United States on the high seas.