DEV Community

Cover image for Twilio challenge entry: Mystery at Darkwood Manor
dpppr
dpppr

Posted on • Edited on

3 2 3 3 2

Twilio challenge entry: Mystery at Darkwood Manor

This is a submission for the Twilio Challenge

What I Built

I built a small web based Murder Mystery game; ask the suspects questions to try and figure out the culprit.

I had a great time making it and hope you enjoy playing!

This is built in Vanilla JS and jQuery. The character images are by Freepik and the background and banner image is by upklyak on Freepik.

Demo

Play it here!

https://chimerical-marshmallow-8dac22.netlify.app/

Screenshot of game 'Mystery at Darkwood Manor'

(A slightly messy) Source can be found at:
https://github.com/dpppr/mystery_wp

Twilio and AI

I used Twilio's functions to take the users chat input and character they are talking to, from there it generates the appropriate character prompt to send onto google Gemini. Once Gemini has a response, the Twilio function returns the generated text back to the user.

Gemini was used for both the character responses and for judging whether or not the user's guess at solving the mystery was correct or not.

Additional Prize Categories

Entertaining Endeavours A game where people can solve a mystery by asking their own questions instead of preset ones and getting unique responses, and judging those responses to work out inconsistencies. They can also write their theory as they see it.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay