Sure did.. it’s called Ender’s Game (Orson Scott Card).
And before that, The Last Starfighter
And before that: "The book originated as a short story of the same name, published in the August 1977 issue of Analog Science Fiction and Fact."[1]
1: https://en.wikipedia.org/wiki/Ender%27s_Game