Giter Site home page Giter Site logo

ckoopmann / blockpaperscissors Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 8.91 MB

Rock paper scissors p2p game played via etherum smart contract with vue.js client dapp.

License: MIT License

Solidity 11.22% JavaScript 38.19% HTML 1.70% Vue 48.78% Shell 0.12%

blockpaperscissors's Introduction

BlockPaperScissors

Decentralized App + smart contracts implementing the game Rock Paper Scissors on ethereum. A running instance of this dapp should be reachable at block-paper-scissors.com.

Disclaimer

Both dapp and contracts are a work in progress, feel free to open issues if you find areas for improvement. The contracts have not been audited and were started as a learning project to improve / develop web3 development skills. Use at your own risk! The dapp has only been tested with the Metamask smart wallet, so it is recommended to use metamask when interacting with the dapp.

Local Development

Requirments

  • NPM (7.5.3)
  • Truffle (5.3.6)

Dapp

Run

  1. Change directory in to vapp directory
  2. Install dependencies: npm install
  3. Start development version of the dapp on localhost:8080 : npm run serve

Contracts

Setup

  1. Change directory to top level directory
  2. Install dependencies: npm install

Test Contracts

  1. Start a development ethereum instance listening on port 9545: for example using truffle develop
  2. Run tests: npm run test

Compile Deploy Contracts

  1. Start a development ethereum instance listening on port 9545: for example using truffle develop
  2. Recompile / deploy contracts on loacal chain: truffle migrate --rest

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.