Giter VIP home page Giter VIP logo

blackjack-reach-dapp's Introduction

Reach Modified Blackjack DApp

This is a modified version of the classic blackjack game implemented using Reach and runs on the Algorand blockchain. Implemented for the Reach Bounty Hack Turkey, where we won the first place. Short demo

What is modified?

  • Players can win from either side of the 21. However, going above 21 results in doubling your distance.
  • Each player hides the first card they draw, others will be published.

Some small points

  • Only 1 ACE can be counted as 11, rest will be interpreted as 1. The smart contract automatically chooses the optimal ACE value.
  • If a players' published cards exceed 21, he/she can no longer hit.
  • There is an infinite amount of copies of each card, there is no way to count the cards.

Instructions

  • Node.js, docker, docker-compose must be installed first.

  • Run the Algorand devnet using $ REACH_CONNECTOR_MODE=ALGO ./reach devnet.

  • Start the web-app with either $ ./reach react or $ npm run start

  • Open the http://localhost:3000 on your browser, ports might differ in your computer. Check the server terminal in case you can't see the server.

Problems you can face

  • If your docker container gets stuck in contract deployment, use $ ./reach docker-reset then restart the web-app and the devnet manually.

  • In case you get a contract length error, $ ./reach update and $ ./reach compile. Then start the servers again.

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.