Coder Social home page Coder Social logo

katyaryazantseva / guessing-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 753 KB

The Guessing Game is a challenge where players guess a randomly chosen number within a specified range by staking ether.

Home Page: https://guessing-game-ruby.vercel.app

CSS 0.57% TypeScript 95.28% JavaScript 0.64% Solidity 3.52%

guessing-game's Introduction

Guessing game on zkSync Era Testnet

Welcome to the Guessing Game, a thrilling smart contract-based game built on the zkSync Era Testnet. This game allows players to guess a secret number and win a prize if their guess is correct. The game is powered by a smart contract that utilizes the ERC20 token standard for transactions. A winner gets 80% of the contract ether and 100 GUESS tokens.

Game Rules

  • Bet Amount: Each game bet requires 0.001 Ether.
  • Secret Number Selection: Only the owner of the smart contract can select the secret number.

How to Play

To participate in the Guessing Game, you need to have some testnet ETH. You can learn how obtain testnet ETH from the zkSync docs: Network Faucets.

Playing the Game

You can play the Guessing Game directly on this website Guessing game. Alternatively, you can clone the repository and run the game locally as described above.

Running the Game Locally

To run the game locally clone the repository, install dependencies and lunch the game:

    git clone https://github.com/KatyaRyazantseva/Guessing-game.git
    cd next-app
    yarn install
    yarn run dev

zkSync Era Testnet

The Guessing Game is built on the zkSync Era Testnet, a layer 2 scaling solution for Ethereum that uses zero-knowledge proofs to enhance scalability and security. For more information on zkSync Era, visit zkSync Era Docs.

Technical Stack

  • Frontend: The game's web application is built using Next.js + Wagmi.
  • Smart Contracts: The game's smart contracts are developed using Hardhat.

Smart Contract Addresses

To test and deploy the smart contracts, follow the instuctions in the hardhat README.md

License

This project is licensed under the MIT License.

guessing-game's People

Contributors

katyaryazantseva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.