Skip to content

Instantly share code, notes, and snippets.

@kanj
Last active July 13, 2024 13:02
Show Gist options
  • Save kanj/3522abe67d95f278db70f3105269dd94 to your computer and use it in GitHub Desktop.
Save kanj/3522abe67d95f278db70f3105269dd94 to your computer and use it in GitHub Desktop.
chatGPT takes a Grand Canyon Odyssey - Part 1

I ran across a classic "Choose Your Own Adventure" book at a local Little Free Library. I was curious if chatGPT could navigate "branched narative fiction. My previous attempt went poorly.

My first prompt was to describe how the book was organized and to set the task:
 Jay Leibold's "Grand Canyon Odyssey" is a `Choose Your Own Adventure Book`. After each section you are give one or more pages you can go to next. I will use the following notation: 1 -> 2. This means you can go from page 1 to page 2. I will give you a list of options and I need you to provide a shorter list that gives a path from "1" to "END". Do you understand the task?
chatGPT responded:
 Yes, I understand the task. Please provide me with the list of options, and I will help you find a shorter list that gives a path from page "1" to "END".

Here is a selection of prompts I used as we navigated thru the sections:
 Here is your list of clues:
1 -> 2
2 -> 4
4 -> 8
8 -> 10
10 -> 24
24 -> 57
57 -> 96
57 -> 29
29 -> 37
37 -> 34
37 -> 26
34 -> 48
34 -> 40
40 -> END

chatGPT responded:
 Here is a path from page "1" to "END" using the given list of options:

1 -> 2 -> 4 -> 8 -> 10 -> 24 -> 57 -> 29 -> 37 -> 34 -> 40 -> END


  In this case chatGPT succeded with this branched fiction task, unlike with the "Citadel of Whispers." In this case I presented chatGPT with all the information needed and very few distractions. I also used a different notation for optional paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment