Skip to content

Sahid-m/HackTheWallet

Repository files navigation

image

Hack the Wallet

Hack the Wallet is an immersive blockchain-based game built on Starknet, blending conversational AI with retro pixel-art aesthetics. Challenge Joe, a cunning AI, to reclaim borrowed crypto through witty dialogue. With a Star Wars-inspired crawl, voice interaction, and a free 100-token airdrop, this game makes DeFi fun and accessible. Ready to outsmart the wallet? 🚀


📜 Table of Contents


🌟 Project Summary

Hack the Wallet is a Next.js-powered game where players connect their Starknet wallet to engage in a conversational challenge. The goal? Convince Joe, an AI opponent, to return borrowed cryptocurrency by building trust through clever arguments. The game features a retro pixelated UI, a cinematic Star Wars crawl intro, and blockchain integration for betting and rewards.

Key objectives:

  • Create an engaging DeFi experience with gamified blockchain interactions.
  • Combine conversational AI with voice input/output for accessibility.
  • Offer a free airdrop to onboard new players seamlessly.

Built for the Sepolia testnet, the game supports wallet connections, on-chain transactions, and a trust-based scoring system. Whether you’re a blockchain enthusiast or a casual gamer, Hack the Wallet delivers a unique blend of strategy and style.


✨ Features

  • Starknet Wallet Integration: Connect wallets like Argent X or Braavos to bet and win tokens.
  • Conversational Gameplay: Outwit Joe using text or voice; win by raising his trust score.
  • Pixel-Art Aesthetic: Retro design with Press Start 2P font and animated backgrounds.
  • Star Wars Crawl: A cinematic intro that sets the sci-fi tone.
  • Airdrop System: Mint 100 free tokens to try the game without spending.
  • Voice Interaction: Speech recognition and text-to-speech for immersive gameplay.
  • Non-Responsive UI: Fixed layout with pixel-perfect design (e.g., h-[700px], w-72).
  • On-Chain Rewards: Successful players view transactions on Sepolia Voyager.

📷 Demo Screenshots

Explore the game’s retro-futuristic vibe through these screenshots!

Landing Page Airdrop Page
LandingPage airdroppage
Star Wars Crawl Game Interface
narrationpage gamepage
Game Win Transaction Confirmation
winpage lastpagewheretokenaresendafterwinning

🛠 Tech Stack

  • Frontend:
    • Next.js (React framework)
    • Tailwind CSS (styling)
    • Framer Motion (animations)
    • tw-animate-css (additional effects)
  • Blockchain:
    • Starknet (Layer 2 scaling)
    • starknet-react/core (wallet and contract hooks)
  • Fonts:
    • Geist, Geist Mono
    • Press Start 2P (pixel font)
  • APIs:
    • Gemini 1.5 Flash (conversational AI)
    • Axios (backend communication)
    • SpeechRecognition & SpeechSynthesis (voice features)
  • Contract:
    • Starknet contract for minting and transactions
    • ABI for reading contract data

🚀 Getting Started

Run Hack the Wallet locally to join the fun.

Prerequisites

  • Node.js (v18 or higher)
  • pnpm (recommended package manager)
  • Starknet Wallet (e.g., Argent X or Braavos, set to Sepolia testnet)
  • Git

⚙️ Setup Instructions

To set up and run Hack the Wallet locally from the provided repository, follow these steps:

1. Clone the Repository

git clone https://github.com/Sahid-m/HackTheWallet.git
cd HackTheWallet
git pull origin main

2. Install Dependencies

We recommend using npm with the --legacy-peer-deps flag to avoid dependency conflicts:

npm install --legacy-peer-deps

3. Run the Development Server

Start the Next.js app locally:

npm run dev

4. Open in Browser

Visit http://localhost:3000 to play the game.

Make sure your Starknet wallet (e.g., Argent X or Braavos) is installed and set to the Sepolia testnet.

System architecture

WhatsApp Image 2025-04-13 at 14 11 19_aae02883

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •