project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Enigma

Enigma is an onchain mystery game blending captivating stories with AI-generated art. Decipher clues, guess the hidden objects, and race against time to secure your place on the leaderboard and claim NFTs powered by Starknet, Llama3 and Dojo!

Enigma

Created At

StarkHack

Project Description

Enigma is an immersive mystery-solving game that blends story-driven clues with AI-generated art, challenging players to guess objects or items. Each game session presents players with narrative hints and corresponding AI-generated images that indirectly represent the target object. Players upon solving a mystery are rewarded with NFTs of the unique mystery image.

Enigma's scoring system and leaderboard are managed through Dojo, with Starknet smart contracts ensuring fair play and accurate tracking of player interactions with the AI Game agent. Scores are determined by the speed and the number of guesses made, rewarding players who solve mysteries quickly and with fewer attempts.

How it's Made

Enigma leverages a combination of modern web technologies and blockchain mechanisms to deliver a seamless and fair gaming experience:

Next.js: The frontend of Enigma is built using Next.js, providing a responsive and efficient user interface that enhances player interaction and engagement.

Llama 3: Serving as the game agent, Llama 3 provides story-driven mysteries. It generates unique stories and dynamic responses, ensuring a personalized gaming experience.

Astria API: AI-generated images are created using the Astria Stability Diffusion API. These images act as indirect visual hints, adding depth and challenge to the guessing game.

Dojo Engine: The Dojo Engine in this project facilitates the management of player scores on-chain within a game environment by enabling player spawning, score updating, and leaderboard management. This is achieved through the use of models and systems in the Dojo back-end.

dojo.js: This is the JavaScript package that connects the Next.js app with the Dojo back-end allowing seamless interaction between the JavaScript front-end and Cairo back-end through the use of hooks and generators, keeping everything live and up-to-date.

Starknet: The NFT smart contract used to award players upon solving the Mystery generated by the AI game agent is based on Starknet's infrastructure

Argent Wallet SDK Argent web wallet SDK provides seamless authentication and transaction capabilities for players, enhancing the overall user experience and ensuring secure management of player data and game-related transactions.

background image mobile

Join the mailing list

Get the latest news and updates