The Homeward Bounders is a fantasy novel by Diana Wynne Jones in which a vast series of parallel universes serve as the game-boards for a race of demons that delight in war-games and fantasy-games.
Twelve-year-old Jamie discovers a strange place in his hometown in which mysterious and demonic entities, known only as Them, are playing a board game with the entire world.
No-one is allowed to interfere directly with the Homeward Bounders; for example, if someone were to attempt to hurt or steal from Jamie, that person would die mysteriously.
Although she has no experience with anything much, having been shut in a temple for most of her life, she proves to be a resourceful and intelligent person; her knowledge of Them, which mainly comes from the teachings of Uquar, her god, turns out to be very useful.
So, in the end, Jamie stops Them from returning for at least a few centuries, by giving up any hope of a normal life and having to endure watching his friends die while he stays young.
[2] James Nicoll lauded Jones for being able to "introduce all of her characters, outline the rules of her setting, and make her way through a complete plot in 267 pages".
[3] Dave Langford reviewed The Homeward Bounders for White Dwarf #53, and stated that "few writers can bring off this sort of thing, but Jones does.