Skip to content

knighttrader-id/base-rps-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

A decentralized Rock Paper Scissors game built on Base blockchain with NFT rewards for winners.

Project Structure

This project consists of two main components:

  1. rps-contract - Solidity smart contracts for the game logic and NFT minting
  2. rps-ui - Next.js frontend application for interacting with the game

Features

  • Play Rock Paper Scissors against another player
  • Winner receives an NFT as a reward
  • Built on Base blockchain
  • Uses Coinbase OnchainKit for transaction handling

Prerequisites

  • Node.js 18+
  • Foundry for smart contract development
  • Wallet extension (MetaMask, Coinbase Wallet, etc.)

Getting Started

  1. Clone the repository
  2. Install dependencies in both rps-contract and rps-ui directories
  3. Deploy the smart contract to Base Sepolia testnet
  4. Configure the contract address in the UI
  5. Run the frontend application

Directories

  • rps-contract/ - Smart contract code and deployment scripts
  • rps-ui/ - Frontend application built with Next.js

License

MIT

About

Base Project: Rock Paper Scissor Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published