doubleornothing's People
Forkers
dappcenter hector12free johnbamm245 mmsmith6519 blackcrypto8 anastasiami lxtrvn morkeltry boyanyao virtuous-2711 msriaz iamnbc alinaghdinasab ihihiki tomi1883 biahoi kwb123 bourndazed yuti198126 thunderdice wrramerson dedecarlos rveljacic anditsmd3 ithebeef hpiotrwwa annesgoods micpittser8 bocoi5011 leonptuck kazaksaeed moneylego blockxotp kfazil ubcool2ic 1insidious shawn1126 ormeno 0xmarch nullsmt shawn90830thundercore 1megatech phog45 nguyenlyminhman rougenugget anb389303 promise-csharp moneythunder robertrongen ahshaikh paulfangbayarea immersoft na-thundercore 0xgoerlimainnet tk29780930 justin-a-nobodydoubleornothing's Issues
new game
Getting Started
Fork this repo
Rename the forked repo as {{Your-github-username}}.github.io
ssh git clone [email protected]:{{Your-github-username}}/{{Your-github-username}}.github.io.git
or
https git clone https://github.com/{{Your-github-username}}/{{Your-github-username}}.github.io.git
cd {{Your-github-username}}.git.hub.io.git
git commit --allow-empty -m "bump"
git push
*Note: If you see the error “push declined due to email privacy restrictions”, you will need to allow command line pushes that expose your email address. This under “Settings”, “Emails”
It will take ~10 mins for Github to create your page. It can be accessed at
https://{{Your-github-username}}.github.io
While you wait, make sure to have Metamask installed
Set it up to a new Custom RPC url: https://mainnet-rpc.thundercore.com
When your page is built, you should be able to play the game
Understanding the Repo for development
Setup
We will be using node v8 or node v10
cd smart-contracts
yarn install or npm install
cd ../frontend
yarn install or npm install
yarn start or npm run start
Smart Contracts
This project uses Truffle to handle all of the smart contract related work.
In the /smart-contracts/contracts folder, you will find DoubleOrNothing.sol which contains the game logic.
After you make any updates to it, you will have to redeploy the contract.
yarn migrate --network development/thunder --reset or npm run migrate -- --network development/thunder --reset
** Development points to localhost:8545 Ganache
** To deploy on thunder, you must add a mnemonic to /smart-contracts/truffle-config.js
Frontend
The frontend is built using the create-react-app project with Typescript. To interact with the chain, we use Ethers.js.
D
Tundergame yelrld
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.