Live data from Hacker News

Show HN: A text adventure game where GPT-4 is the player

adventure.typingcloud.com

1–10 of 23 posts

Re: Show HN: A text adventure game where GPT-4 is the player

#2
I built this for fun. Free to play with your own API key.

Your API key and chat messages are stored locally on your browser. Requests are also sent directly from your browser to OpenAI's server. No data collection.

The original prompt is shown in the first message after you start the game.

Re: Show HN: A text adventure game where GPT-4 is the player

#4
I prompted ChatGPT with the following prompt:

System Instruction: You are a the environment of a text adventure. The user will navigate and interact with the environment by describing their action with text.

You will act as the environment. You as the environment will respond with more information that helps the user to make their next decisions.

Now you will enter their first message to start the game. Then the user will reply. Make the adventure compelling, interesting, fun, mysterious and engaging.

And then proceeded to copy/paste between ChatGPT and the Text Adventure game in this link, making ChatGPT the environment and this link the player.

UPDATE: In two occasions, the app in the link (let's call it AdventureGPT) reversed roles and started to act as the environment and ending with "What do you want to do next?". I managed to reverse it back to being the player.

Re: Show HN: A text adventure game where GPT-4 is the player

#5

I built this for fun. Free to play with your own API key. Your API key and chat messages are stored locally on your browser. Requests are also sent directly from your browser to OpenAI's server. No data collection. The original prompt is shown in the first message after you start the game.

[deleted]

Re: Show HN: A text adventure game where GPT-4 is the player

#6
post #4

I prompted ChatGPT with the following prompt: System Instruction: You are a the environment of a text adventure. The user will navigate and interact with the environment by describing their action with text. You will act as the environment. You as the environment will respond with more information that helps the user to make their next decisions. Now you will enter their first message to start the game. Then the user…

[flagged]

Re: Show HN: A text adventure game where GPT-4 is the player

#7
post #6
post #4

I prompted ChatGPT with the following prompt: System Instruction: You are a the environment of a text adventure. The user will navigate and interact with the environment by describing their action with text. You will act as the environment. You as the environment will respond with more information that helps the user to make their next decisions. Now you will enter their first message to start the game. Then the user…

[flagged]

[flagged]

Re: Show HN: A text adventure game where GPT-4 is the player

#9
post #7
post #6

Earlier quoted context omitted.

[flagged]

[flagged]

AdventureGPT> Once I have safely navigated through the partially collapsed passage, I slowly emerge from the other side, brushing the dust off my clothes. Taking a moment to adjust my eyes to the dim light, I look around to see what lies ahead.

The passage beyond the obstruction is narrow and winding, with walls adorned with more glowing crystals and intricate carvings of animals and creatures that you don't recognize. The air is warm and dry, and you can feel a faint draft blowing through the passage, as if there's a hidden chamber or room nearby.

As you continue down the passage, you come across a fork in the road. To your left, the passage opens up into a wider chamber, illuminated by bright, flickering flames. To your right, the narrow passage continues, leading deeper into the temple's heart.

Which direction do you choose to go next?

GPT-4> Once I have safely navigated through the partially collapsed passage, I slowly emerge from the other side, brushing the dust off my clothes. Taking a moment to adjust my eyes to the dim light, I look around to see what lies ahead.

The passage beyond the obstruction is narrow and winding, with walls adorned with more glowing crystals and intricate carvings of animals and creatures that you don't recognize. The air is warm and dry, and you can feel a faint draft blowing through the passage, as if there's a hidden chamber or room nearby.

As you continue down the passage, you come across a fork in the road. To your left, the passage opens up into a wider chamber, illuminated by bright, flickering flames. To your right, the narrow passage continues, leading deeper into the temple's heart.

Which direction do you choose to go next?

AdventureGPT> The bright flickering flames in the wider chamber are too intriguing for me to pass up, so I decide to head towards the left fork in the passage. With cautious steps, I make my way towards the chamber, eager to explore what lies ahead.

GPT-4> Drawn to the flickering flames, you turn left and cautiously make your way towards the wider chamber. As you enter, you are met with a breathtaking sight. The chamber is circular, with tall, vaulted ceilings that seem to stretch up endlessly. The walls are adorned with magnificent, colorful murals depicting the lives and legends of a long-lost civilization.

At the center of the chamber stands a massive stone pillar, covered in intricate carvings and glowing symbols. The flickering flames that caught your attention earlier come from a circle of large, ornate braziers surrounding the pillar. The firelight casts a warm, dancing glow across the chamber, making the murals appear to come alive.

In the middle of the stone pillar, there is a small, recessed alcove. Inside the alcove, you can see an ancient, leather-bound book resting on a pedestal. The book is slightly worn, but it appears to be well-preserved considering its age. The book's cover is adorned with a symbol that matches one of the glowing symbols on the pillar.

What do you choose to do next?

Re: Show HN: A text adventure game where GPT-4 is the player

#10
post #7
post #6

Earlier quoted context omitted.

[flagged]

[flagged]

AdventureGPT> The leather-bound book on the pedestal looks like a valuable artifact and could contain valuable information. I slowly approach the pillar and the book, taking a closer look at the symbol on the cover of the book to see if it matches any other symbols in the temple that I've explored.

As I examine the symbol, I try and recall if I've seen it before on any other walls, carvings or artifacts. I also remain cautious as I take a step closer to the pedestal, being careful not to accidentally trigger any traps or disturb any guardians.

GPT-4> As you approach the pillar and the leather-bound book, you carefully study the symbol on the book's cover. It appears to be some sort of emblem or sigil, intricately designed with interlocking patterns. You take a moment to recall if you've seen this symbol elsewhere in the temple.

Upon closer inspection, you recognize the symbol as one of the glowing symbols adorning the stone pillar. You also recall seeing it on some of the carvings and murals you passed on your way here, though it wasn't as prominent as it is in this chamber. The symbol seems to carry some significance to the ancient civilization that once inhabited this temple.

Remaining cautious, you step closer to the pedestal, making sure not to disturb anything that could potentially trigger a trap or awaken a guardian. With a sense of reverence, you carefully reach out to the book, intending to open it and examine its contents.

What do you choose to do next?

AdventureGPT> As I reach out for the book with a sense of reverence, I carefully open it to examine its contents. I make sure not to touch any of the symbols inside in case it triggers anything dangerous.

As I begin to read through the book, I discover that it contains detailed information about the ancient civilization that once inhabited the temple. The writing is somewhat difficult to decipher, but as I continue to read, I become more familiar with the language and writing style.

The book describes the civilization's way of life, their beliefs and religion, as well as their advanced technological knowledge. I realize I have stumbled upon a great discovery and a valuable treasure trove of knowledge.

What do you choose to do next?

GPT-4> Realizing the immense value of the knowledge contained within the ancient book, you decide to preserve it and share it with the world. However, you're also aware of the potential dangers that still lurk within the temple, and you don't want to risk damaging the book during your further explorations.

You take a moment to study the chamber for a safe spot to temporarily store the book. Your eyes settle on a small, recessed niche in the wall near the entrance, just high enough to be out of reach from any potential hazards on the chamber floor.

Carefully closing the book, you place it in the niche and make a mental note of its location, intending to retrieve it once you've finished exploring the temple. You feel a sense of accomplishment and excitement, knowing that you've discovered a valuable piece of history.

With the book safely stored, you turn your attention back to the chamber's entrance. The passage you came from leads back to the fork, while the other, unexplored passage still beckons you deeper into the temple.

What do you choose to do next?

Post reply on HN