Creating a ChatGPT Harry Potter Text-based RPG game!
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