Duns n Dracs

Duns n Dracs

This project was created by community member Erick Fonseca.

Description

Duns n Dracs is a variation of this popular game mastered by AI.
Cohere AI is your dungeon master ... each story, each entity was generated using Cohere.

Everything is about AI:

  • The images was generated using Stable Diffusion.
  • The name generation service was manually coded to use HMM (Hidden Markov Models) in this sample variables (awareness=3).
  • The game system and the difficulty are manually configurable

Game System

After setting up your character you can enter an instance of an unlocked dungeon. The game have several levels of difficulty through each dungeon. You can move through map defeating enemies and leveling up. In each fight Cohere Dungeon Master will generate a simple short story as introduction, afterwards the player throws the D20 (dice of 20 sides) obtaining random a number between 1 and 20, based on that and the gap of level between your character and the room level a result is obtained and Cohere AI generates an ending for that small story. Your level stands after being defeated so you can try again and eventually become the lord of this
amazing world.

  • The name of the Dungeons are static but was initially generated using Cohere.
  • When entering a dungeon a sample of 20 magical creatures are generated.
  • All the magical creatures are labelled as (HOSTILE, NPC or NEUTRAL).
  • When entering a room and given the name of the entity in the room, the name of the character and the type of room (hostile, boss, neutral or npc) a story is generated using Cohere. That story is used as introduction to the fight.
  • After throwing the dice and obtaining a number, the result is used to generate a story using Cohere. That story is used as ending to the fight.

Tech Stack

TypeScript
React JS
Tailwind CSS
Cohere AI
React Router
Axios
Font Awesome Icons