When I was a pre-teen, I used to read a lot those Choose Your Own Adventure books.
Each story was written from a second person point of view, with the reader assuming the role of the main character. After an introduction to the story, the reader was given choices about how the story should progress. For instance:
If you decide to sweep the leg, turn to page 47.
If you decide to use some stupid crane kick that you learned from Pat Morita that would NEVER work in a real fight, turn to page 49.
Depending on the reader's choice, the plot would unfold in different ways and eventually lead to many different possible endings. Unfortunately, I never came across a book where the ending resulted in me either becoming an honorary member of the A-Team or getting to ride shotgun in Airwolf.