Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.