Inspiration

We have always been curious about how blockchain and ai especially generative ai could work together no matter how niche the area will be. We see a lot of dapps focusing on bringing AIs with nlp models to blockchain to help with data querying. Most of the cases that we’ve seen using generative ai is code writing or debugging smart contracts.
When we get the invite from oasis team about the privacy for web3 hackthon, we had this idea adding generative ai/blockchain/privacy and gaming all together. Its called werewolves.ai.

What it does

Its a text based werewolves game that you can play with either real persons or Chatgpt4, or both if you’d like to see if you are a better liar that the bot. You can also wager on the game with your friends, and the wager are smart contract protected. All identity are perfectly stored in the privacy layer while can be readable to targeting parties under certain circumstances. The game is now in a telegram bot form which is super easy to access, and later on could be ported to discord bot as well.

How we built it

The ai part is currently powered by chatgpt4 which is in a way centralized, we plan to move to llama2 so that anyone can run it.

Challenges we ran into

Our initial idea was to make it all in human language, but we didnot really get the enough time to deal with the nlp part for the AI, so we stick with some command lines to demo the digest of the game. We will continue with that part after the hackthon.

Accomplishments that we're proud of

The game is live on telegram @werewolves_ai_bot and its super addictive to play, we could easily imagine how interesting it gets when the wager part comes in.

What we learned

We probably cannot beat ai in this game coz we’ve seen some really smart moves of the AI, for instance, we fed the game about the game rule that only the surviving player can share the reward pool, so a werewolf AI decided to vote its teammate off at a 2wolves/1villiager situation instead of voting the villager and share the reward with its team, followed by killing the villager the coming night and enjoy reward solo.

What's next for werewolves.ai

1.To improve the nlp model so that we can play the game in natural language instead of command lines. 2.Add wager and port the smart contract on multiple layer1/2s. 3.Allow creator to take cut from the wager. 4.Discord bot 5.Integrating the new voice model of chatgpt4 so the game can be played in voice as well. 6.Multi-language options. 7.More game settings, like 8 players with the witch

Built With

Share this project:

Updates