hackquest logo
  • Aprender
  • Explorar curso
  • Construir
  • Explorar hackatón
  • Archivo de proyectos
  • Comunidad
  • Foro
  • Evento global
  • Mi comunidad
  • Aprendizaje conjunto
  • Centro de organización
  • Más
    • Glosario
    • Blog
    • Grifos
    • Estación de trabajo
    • Kit de prensa
    • Fundador
hackquest logo

FlipIt

Coin Toss Game is a decentralized application (DApp) where players bet EDU tokens to predict the outcome of a coin toss. Built on blockchain, the game ensures transparency and fairness, providing a se

Pila tecnológica

Solidity
Web3

Descripción

# Coin Toss Game - Decentralized Blockchain-Based Game

Coin Toss Game is a decentralized application (DApp) where players bet EDU tokens to predict the outcome of a coin toss. Built on blockchain, the game ensures transparency and fairness, providing a seamless and secure gaming experience. Players stake tokens to play, win rewards for correct guesses, and experience decentralized gaming at its best.

## Features

- Bet 1 token to predict "heads" or "tails."

- Win 2 tokens for correct predictions; no reward for incorrect guesses.

- No entry fees; tokens are deducted only during gameplay.

- Randomized outcomes ensure fairness through blockchain technology.

- Token-based system with all transactions recorded securely on-chain.

## Contract Details

- Contract Address: 0x1b30bCD1a5cd4aa14f2F79845270350fA25a95c0

- Network: Edu Chain

- Coin Used: EDU

- Contract Explorer: [View on Explorer](https://edu-chain-testnet.blockscout.com/address/0x04Bc11f60bac534Aa6B70432A6c4DB7a26418368)

## How to Use

1. Connect Wallet: Use MetaMask or any EDU-compatible wallet to connect.

2. Start Game: Enter the game without any entry fee.

3. Play Game: Bet 1 EDU token by choosing "heads" or "tails."

4. Win Rewards: Earn 2 EDU tokens if your guess is correct; otherwise, lose 1 token.

## Frontend

The frontend is built using HTML, CSS, and JavaScript, allowing users to interact with the smart contract via a simple and intuitive web interface. Web3.js or ethers.js is used for blockchain integration.

## Getting Started

1. Clone the repository and install necessary dependencies.

2. Deploy the smart contract on Edu Chain.

3. Configure the frontend to connect to the deployed contract.

4. Connect your wallet via MetaMask and start playing the game.

## Future Enhancements

- Implement leaderboards to track top players.

- Introduce NFT rewards for consecutive wins.

- Enable multiplayer features for competitive gameplay.

- Expand the platform to support more games with similar mechanics.

Estado de recaudación de fondos

NONE
Líder del equipo
AArindam Rawat
Enlace del proyecto
Sector
Gaming