Credit:
In case you aren't familiar with choose your own adventure games, it's basically a written work that allows the reader to make choices that affect the storyline, creating a tree-shaped narrative structure. You enter a dark cave: Do you want to a) explore the cave or b) turn away? Depending on which one you choose, you'll be sent to a different page in the book, and the story continues.