5 ms·
Show HN: A text adventure game where GPT-4 is the player
- yawnxyz 3y agoHA wow this is incredibly fun with GPT on the other side as a player. Really fun!!
- trungdq88 3y agoI 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 3y ago[deleted]
- GuillaumeBrdet 3y agoYou ship too fast, Tony! This is awesome :)
- drKarl 3y agoI 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.
- drKarl 3y ago[flagged]
- drKarl 3y ago[flagged]
- drKarl 3y ago[flagged]
- drKarl 3y agoAdventureGPT> 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?
- drKarl 3y agoI tried to include the full conversation between GPT-4 and AdventureGPT but the messages are reversed as most recent messages are on top on HN and there's only 3 levels of replies
- pmzy 3y agoCool idea and great way to promote your product, Tony. Congrats on shipping :)
- trungdq88 3y agothank you!!
- TrapLord_Rhodo 3y agolol I ran it through a D&D'esque adventure. when it made a dumb mistake i told it that it died. this is it's response. > Oh no, I made a grave mistake. I should have been more cautious and stayed hidden in the jungle. Going out into the open, especially with a dragon hot on my heels, was a poor decision. > As an NPC, my actions were influenced by my limited programming and lack of critical thinking skills. If I were given a second chance, I would have taken a different approach and update my behaviors to better respond to situations that would ensure survival. Edit: An NPC telling me it lacks critical thinking skills and wishing it had another chance is... funny and trippy. "I was an adventurer once, but then i took an arrow to the knee" to a whole new level.
- GalahiSimtam 3y agoTo be fair, I had a lot of fun last year asking various LLMs to play Skyrim, imagined as a role-playing adventure with a human game master, and watching as they break sooner or later https://www.palimptes.dev/ai https://www.palimptes.dev/ai With ChatGPT-4 though, I haven't yet got it to make something that dumb, though I had to remind it not to hallucinate the part of the story that traditionally is governed by GM. Could it be what your demo is doing behind the scenes?