This is reminiscent of Herman Wouk's brief novel, The "Lomokome" Papers (1968), in which an American astronaut is captured on the Moon and learns about their society, particularly how they avoid nuclear war. In the nation of Lomokome, the wise rule in a committee of 59 men, who elect one of their members as the head, and select a replacement when one dies. In the rival nation of Lomadine, representatives are chosen by lot from the adult population, and the president is chosen by lot from the representatives. The two lunar nations avoid a nuclear disaster by staging virtual wars, submitting strategies to a neutral War College, which assigns them tasks such as competing to produce niobium or material goods. The martial spirit benefits society and many young men volunteer, yet no weapons are fired. At the end of the conflict, the War College
informs the nations which one has lost, and requires the leaders to personally slit the throats of some thousands of young men.
This keeps war from being declared too often despite its stimulating nature.
But so far as I know this was never published in Analog.