Skip to content

Latest commit

Β 

History

History
57 lines (39 loc) Β· 1.17 KB

File metadata and controls

57 lines (39 loc) Β· 1.17 KB

Prime Dice 🎲

Prime Dice is a simple decentralized dice game built on Flow blockchain.
Players can roll two dice and interact with smart contracts written in Cadence to ensure fairness and transparency.

πŸš€ Features

  • Provably fair dice rolls (1–6) on Flow
  • Wallet connection via Flow FCL
  • Smart contracts written in Cadence
  • Frontend powered by Nuxt 3 + TailwindCSS

πŸ“¦ Tech Stack

  • Flow Blockchain
  • Cadence Smart Contracts
  • Nuxt 3 (Vue 3)
  • TailwindCSS
  • FCL (Flow Client Library)

πŸ”— Contracts

Deployed on Flow Testnet:


🎲 Example Transaction (transactions/roll.cdc)

import DiceVRF from 0xf4a03341c4a71870

transaction {
    prepare(acct: &Account) {}

    execute {
        let result = DiceVRF.roll()
        log(result)
    }
}

🧩 Getting Started

Clone the repo and install dependencies:

git clone https://github.com/roma-marshall/primedice.git
cd primedice
npm install
npm run dev

πŸ“„ License

MIT License