8000 Choose between head/tail · Issue #41 · AndreMiras/etheroll · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Choose between head/tail #41

Open
AndreMiras opened this issue Dec 27, 2018 · 2 comments
Open

Choose between head/tail #41

AndreMiras opened this issue Dec 27, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@AndreMiras
Copy link
Owner
AndreMiras commented Dec 27, 2018

Make it possible for the user to choose between head or tail.
Since the current smart contract, doesn't store this information into the blockchain, we need to store the the user choice somewhere else.
Having a dedicated backend is not currently an option because it would involve more maintenance and more restrictive requirement. For instance it won't be possible to host the backend on GitHub pages.
We could think of a thirdparty DB storage service, like Firebase storage, but that means adding a new middleman.
The other option is to store the info browser side, e.g. session. This is most likely what we would try.
If the user bet choice can be found in its session, we display it, otherwise we default to e.g. Head.
It means the user could see different head/tail results from one browser to the other, but the win/loss would always be the same. So this probably needs to be explained in a note somewhere.

Edit:
Reddit conversation https://www.reddit.com/r/etheroll/comments/aa3hmj/build_any_chances_based_games_on_etheroll/

@AndreMiras AndreMiras added the enhancement New feature or request label Dec 27, 2018
@Npizza
Copy link
Contributor
Npizza commented Dec 31, 2018

You may use IPFS for storing the choice of the user and then tell to the to the smart contract to look inside to IPFS.
If you don't know about IPFS i would suggest to look in here
Also you can see this example this

I really like your project and I look to help how ever I can. Hope it helps

@AndreMiras
Copy link
Owner Author

Thanks for sharing. Yes I like what IPFS can do, but it might be a bit overkill for our use case.
Also someone from Reddit suggested using another smart contract to store meta info https://www.reddit.com/r/etheroll/comments/aa3hmj/we_can_build_any_chances_based_games_on_etheroll/ecqmxqg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
0