Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/tower-game
DApp game featuring a 1D statics physics solver on-chain
https://github.com/dapplion/tower-game
webapp
Last synced: 8 days ago
JSON representation
DApp game featuring a 1D statics physics solver on-chain
- Host: GitHub
- URL: https://github.com/dapplion/tower-game
- Owner: dapplion
- License: mit
- Created: 2018-02-05T05:12:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T15:25:43.000Z (over 5 years ago)
- Last Synced: 2024-10-13T20:04:06.615Z (24 days ago)
- Topics: webapp
- Language: JavaScript
- Homepage: http://dapplion.github.io/tower-game
- Size: 9.24 MB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ethereum Tower Game
DApp game featuring a 1D statics physics solver on-chain
http://dapplion.github.io/tower-game
Everytime a user plays, a fixed amount is deposited in the contract. If the arrangent of coins triggers them to fall, the contract will transfer the `play price * amount of fallen coins` to the user.
The 1D static physics solver assumes constant mass and null height. In order to save gas, the statibility is checked from top to bottom, so in the case of multiple unstable levels, the least amount of coin will fall. An average play with 1-50 stacked coins requires ~50k-100k gas.