Inspiration

We choose AI dungeon master as our project because we believe it exemplifies the true creativity of AI. With the dungeon master, you can get stories that amaze and also mystify due to the limitless news of AI. Our game allows us to use AI’s creativity to its full potential.

What it does

It provides a platform for playing Dungeons and Dragons with an AI chatbot. You’re given access to a simplified version with 6 races and 6 classes to choose from. However, the stats are mostly still the same as the base game for D&D. Your character’s stats, as well as encounters between NPCs, enemies, and possible companions, are all generated by the AI. The AI also uses dice rolling mechanisms for combat and actions, as per the original game’s rules.

How we built it

We built the program using React for the JavaScript frontend framework and Flask as the Python backend framework on VisualStudioCode IDE. We used Meta’s llama3 as our API as it was free and easily accessible, and could get creative for the generated stories to be interesting. We used Postman to test the backend Flask when required. We also made sure to somewhat follow the official Dungeons and Dragons guidelines to maintain a level of accuracy and authenticity. Online tools and ChatGPT proved very useful for resolving many of the challenges we faced.

Challenges we ran into

The first challenge was even deciding on a topic that was within the realm of possibility, but also creative. Ultimately, we decided on this D&D type game because we thought it would be fun for most users. Initially, we ran into version compatibility issues but those were quickly resolved. Bigger issues arose during the choosing of an API and its implementation. We wanted to use Gemini or OpenAI, but both of the free tiers had very limited capabilities that did not work for us. However, while llama3 is free, it could not access the internet and be easily used on a web server, but still stuck with it. Furthermore, implementation of decisions like adding a stats page also became difficult as we had to add them on top of what was already AI generated.

Accomplishments that we're proud of

We are proud of how conversational the AI actually is with the user. It truly seems like a real story and is actually engaging, especially when the player encounters other characters/entities. The variety of choices make it actually anticipating and tense at times. As a base dungeon AI game, we are very proud of how it turned out, although there is still always room for improvement.

What we learned

We learned about how hard the decision-making process is when coding. Beyond just the code itself, the whole process of choosing an idea, what languages to use, what programs, tools and resources could be helpful, and what AI API would be the most effective for the program we were creating is quite difficult. We also learned a lot about the importance of planning ahead, as we made many last minute changes that could have been avoided if we had planned a little bit better.

What's next for AI Dungeon Master

The goal for AI dungeon master is to make it more user friendly. That is to make the whole program look more aesthetically pleasing and simple for anyone to quickly be able to understand the game at a quick glance. We also want the user to feel more connected to the story. We can do that by adding AI generated images that fit the story the AI is telling or by creating a text reader system that can read the story with a tone that fits the story as well. These are ways that can make AI dungeon master more appealing and enjoyable for the everyday person and allow everyone to be able to experience the creativity of AI.

Built With

Share this project:

Updates