Yes it's a true story and the book is Ender's Game.
I wish I have read it earlier, like when I was a child. It could be the book of my life. I can't describe how much I love all the characters and the story and everything. Gahhhh!
Now you know my pain.