I read several Fighting Fantasy books when I was younger and it was always pure excitement because it was possible to direct the story in a certain way. Let me explain the principle if you have never heard about Fighting Fantasy before. The books were about 400 pages in size telling a fantasy story that reminded of Dungeons and Dragons or Tolkien books.
The reader was given choices at the end of each page on how to process. One simple example would be the question if the reader would like to use door one or door two. Depending on the choice a different page would have to be read giving the reader again several choices.
The game character had several attributes like Stamina and Strength as well as items that could be used in certain situations. I liked to play these kind of adventures when no one was around to play D&D.

The Fighting Fantasy Project has 17 gamebooks available that can be played online. The books offer different settings such as fantasy and Gothic horror with several black and white illustrations.
The gamebooks can also be downloaded in MS Word format which means that you can play them offline as well. You have to take care of your characters stats by yourself though.

Weekend Fun A Tale of Two Kingdoms
sounds like something i’ve always heard called a “choose your own adventure” book…