Inspiration
The idea for Guess & Survive came from the classic Hangman game that many of us enjoyed as kids. Combining this nostalgic experience with blockchain technology gave us an exciting challenge to build a decentralized and fair gameplay environment.
What it does
Guess & Survive is an on-chain version of the Hangman game. Players guess letters to complete a hidden word within a limited number of attempts. The game is powered by blockchain, ensuring transparency and immutability. Players can also request hints by spending their score points strategically.
How we built it
The project was developed using:
- Frontend: Next.js (v14) with ShadCN and TailwindCSS for a modern and responsive user interface.
- Backend: AO (handlers in Lua) to manage game logic and interactions.
- Database: SQLite for storing leaderboard and game room data.
- Blockchain Integration: To ensure fair play and decentralization.
- We implemented a room-based system where players can create or join games and interact with opponents in real time.
Challenges we ran into
- Game Logic Design: Translating traditional Hangman rules into blockchain-compatible logic was a complex task.
- Room Management: Ensuring smooth room creation, joining, and player interactions while maintaining game state integrity.
- Hint Feature: Implementing a hint system that deducts points only if the player has sufficient balance.
- Learning Curve: Familiarizing ourselves with Lua and the AO framework for creating efficient handlers.
Accomplishments that we're proud of
- Successfully creating a fully functional on-chain Hangman game.
- Designing a scalable architecture for multiplayer support with real-time interactions.
- Implementing a seamless user experience with TailwindCSS and ShadCN.
What we learned
We gained hands-on experience in:
- Using Lua and AO handlers for backend logic.
- Managing game states and player interactions in a decentralized setup.
- Designing intuitive user interfaces with Next.js, ShadCN, and TailwindCSS.
What's next for Guess & Survive
Our next steps include:
- Expanding the game to support multiplayer mode. Teams of players will take turns giving words and guessing, adding a competitive and collaborative element.
- Introducing advanced features like categories, timed rounds, and rewards for winning teams.
- Enhancing the user interface and experience for seamless gameplay.
With these improvements, Guess & Survive will transform into a full-fledged blockchain-based multiplayer game, bringing together the joy of Hangman and the power of decentralized technology.
Built With
- .luanb
- next.js
- shadcn
- typescript
- vercel


Log in or sign up for Devpost to join the conversation.