Creating a ChatGPT Harry Potter Text-based RPG game!

Subscribers:
5,330
Published on ● Video Link: https://www.youtube.com/watch?v=yF-bXyImLio



Duration: 17:14
331 views
10


After reading the Generative Agents paper, I was thinking if it was possible to create an RPG text game solely through prompting. It turns out it is possible, and I present you the Harry Potter Text-based RPG game!

It works like a retro turn-based fighting game, where you choose to attack, use spells, or diplomacy. You gain stats after every victory, and can choose a new spell to learn. It also features exciting dialogue with your companions Hermione and Ron. You can even talk to bosses like Voldermort and your companions at any time!

Future Improvements: The long-term memory is not great as the context length drops some of the gameplay mechanics after a while. This can be improved with reference to external memory. Also, how I would see it is that there will be different GPTs for different parts of the game. A main GPT for the overall gameflow and memory of player's attributes, spells and items, and a sub GPT for the combat mode that takes references from the main GPT. Even better if we can interface it to video and music! Makes for a complete gameplay experience!

~~~~~~~~~

Get the prompt here: https://github.com/tanchongmin/TensorFlow-Implementations/blob/main/RPG/main.txt

Video on Generative Agents: https://www.youtube.com/watch?v=_pkktFIcZRo&list=PLcORGO1bTgjUrFJJr1nOnUV7zp0esSHp_

~~~~~~~~~~

0:00 Describing the Prompt
2:45 Start of Game
10:10 Voldermort Final Battle

~~~~~~~~~~

AI and ML enthusiast. Likes to think about the essences behind breakthroughs of AI and explain it in a simple and relatable way. Also, I am an avid game creator.

Discord: https://discord.gg/fXCZCPYs
LinkedIn: https://www.linkedin.com/in/chong-min-tan-94652288/
Online AI blog: https://delvingintotech.wordpress.com/
Twitter: https://twitter.com/johntanchongmin
Try out my games here: https://simmer.io/@chongmin




Other Videos By John Tan Chong Min


2023-06-16Tutorial #3: Symbolic AI - Symbols, Operations, Expressions, LLM-based functions!
2023-06-13No more RL needed! LLMs for high-level planning: Voyager + Ghost In the Minecraft
2023-06-06Voyager - An LLM-based curriculum generator, actor and critic, with skill reuse in Minecraft!
2023-06-01Evolution ChatGPT Prompt Game - From Bacteria to.... Jellyfish???
2023-05-30Prompt Engineering and LLMOps: Tips and Tricks
2023-05-25Hierarchy! The future of AI: How it helps representations and why it is important.
2023-05-18Prediction builds representations! Fixed Bias speeds up learning!
2023-05-09Memory: How is it encoded, retrieved and how it can be used for learning systems
2023-05-02I created a Law Court Simulator with GPT4!
2023-05-02I created a Law Court Simulator with ChatGPT!
2023-04-25Creating a ChatGPT Harry Potter Text-based RPG game!
2023-04-25Learn from just Memory Storage and Retrieval: Generative Agents Interacting in Simulation!
2023-04-18The future is neuro-symbolic: Expressiveness of ChatGPT and generalizability of symbols (SymbolicAI)
2023-04-17Can GPT4 solve the Abstraction and Reasoning Corpus (ARC) Challenge Zero-Shot?
2023-04-12GPT4: Zero-shot Classification without any examples + Fine-tune with reflection
2023-04-11OpenAI Vector Embeddings - Talk to any book or document; Retrieval-Augmented Generation!
2023-04-11Tutorial #2: OpenAI Vector Embeddings and Pinecone for Retrieval-Augmented Generation
2023-04-04Creating JARVIS: ChatGPT + APIs - HuggingGPT, Memory-Augmented Context, Meta GPT structures
2023-04-02Is GPT4 capable of self-improving? Are we heading for AGI or AI doom?
2023-03-28How Visual ChatGPT works + Toolformer/Wolfram Alpha. LLMs with Tools/APIs/Plugins is the way ahead!
2023-03-21Tokenize any input, even continuous vectors! - Residual Vector Quantization - VALL-E (Part 2)