Skip to content

FuseSyntax/rock-paper-scissors

Repository files navigation

Decentralized RPS

A decentralized rock-paper-scissors game built on Solana and Supabase. Enjoy provably fair, trustless on-chain battles with instant settlements [Devnet].

Overview

This project implements a decentralized rock-paper-scissors game where players can:

  • Compete in fast, on-chain matches using Solana.
  • Enjoy trustless gameplay with verifiable randomness.
  • Track global rankings and statistics on the dashboard.
  • Leverage Supabase for authentication, user management, and real-time data.

The frontend is built with Next.js and styled with Tailwind CSS. The project also integrates utility functions to handle game logic and Solana connections.

Features

  • Provably Fair Gameplay: On-chain logic ensures that game results are transparent and tamper-proof.
  • Instant Settlements: Enjoy near-instant match resolutions powered by Solana.
  • Interactive UI: Engaging user interface with smooth animations powered by Framer Motion.
  • Supabase Integration: Manage users and game data using Supabase's backend-as-a-service.
  • Responsive Design: Fully responsive layout for desktop and mobile devices.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/nitindahiya-dev/rock-paper-scissors
    cd rock-paper-scissors