Made an AI dungeon master with Sonnet

The author has built a dark fantasy RPG called Warden, where the AI language model Claude Sonnet 4.5 acts as the game master. It's a browser-based, serverless application that requires the user's own Anthropic API key.

💡

Why it matters

This project demonstrates the potential of AI language models like Claude to be integrated into interactive experiences, expanding the possibilities of game design and storytelling.

Key Points

  • 1Warden is a dark fantasy RPG with Claude Sonnet 4.5 as the game master
  • 2It has a 32-spell magic system with exhaustion mechanics and a procedural bestiary
  • 3The prompt is a 3000-word system instruction that keeps Claude's responses concise
  • 4State tracking uses structured tags parsed by JavaScript

Details

The author has developed a unique RPG experience by integrating the Anthropic AI language model Claude Sonnet 4.5 as the game master. Warden features a 32-spell magic system with exhaustion mechanics, where casting spells multiple times causes the player's hands to tremble and eventually collapse. The game also has a procedural bestiary with elemental weaknesses, alchemy, and faction reputation systems. The prompt is a detailed 3000-word instruction that keeps Claude's responses tight and concise, with a maximum of 70 words per response. The game uses structured tags that are parsed by JavaScript to track the game state, such as the start of combat or updates to the player's wealth. This approach allows for a narrative-driven experience without feeling rigid or scripted.

Like
Save
Read original
Cached
Comments
?

No comments yet

Be the first to comment

AI Curator - Daily AI News Curation

AI Curator

Your AI news assistant

Ask me anything about AI

I can help you understand AI news, trends, and technologies