Skip to content

dpinones/panda-panda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Panda Panda - Dojo Edition

A tile-matching game built with Dojo and React on Starknet blockchain.

What is it?

Panda Panda is an addictive puzzle game where you eliminate tiles by matching groups of 3 identical tiles. This version is fully integrated with Dojo, meaning:

  • ๐Ÿ”— Your progress is saved on-chain
  • ๐ŸŽฎ Every game is verifiable
  • ๐Ÿ† Rankings are permanent
  • โšก Uses Cartridge Controller for seamless experience

๐ŸŽฏ How to Play

  1. Connect your wallet using Cartridge Controller
  2. Start a new game from the home screen
  3. Select accessible tiles (glowing ones) to add them to your temporal slot
  4. Match 3 identical tiles to eliminate them and score points
  5. Clear all tiles before filling your slot (max 7 tiles)

๐Ÿš€ Local Development

Prerequisites

# Install Dojo
curl -L https://install.dojoengine.org | bash
dojoup

Setup

  1. Start local blockchain:
make katana
  1. Deploy contracts and setup:
make setup
  1. Frontend setup:
cd client
npm install
# Update .env file with your environment variables
npm run dev

๐Ÿ”ง Frontend Configuration

Environment Variables

Update client/.env with your configuration:

VITE_RPC_URL=http://localhost:5050
VITE_TORII_URL=http://localhost:8080

Slot Configuration

If you want to use slot functionality, update both:

  • Environment variables in .env
  • Vite configuration in vite.config.ts

๐Ÿ—๏ธ Project Structure

sheep-a-sheep/
โ”œโ”€โ”€ contracts/          # Dojo contracts (Cairo)
โ”œโ”€โ”€ client/             # React frontend
โ””โ”€โ”€ Makefile           # Build scripts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published