Author

Topic: Idea for a game that may make sense to implement with the bitcoin network (Read 750 times)

hero member
Activity: 644
Merit: 500
Sounds like an exciting new idea for my next game night!

/s
newbie
Activity: 34
Merit: 0
Look at https://p50pot.com, it is somewhat similar to what you suggested, but with a simpler game protocol and a much deeper strategic potential.
legendary
Activity: 1122
Merit: 1017
ASMR El Salvador
A seed of 10 digits is given by the game house.
Each player picks his own random seed of 10 digits and hashes a concatenation of the house seed with his own seed.
All players publish their resulting hash and keep their seed secret.
All combinations of the house seed concatenated with 10 digits are hashed to find which players did submit a valid hash.
Once the players seeds are found or proved to be invalid they are ordered from MIN to MAX and concatenated. If they were invalid they are simply omitted.

Here is an example,

Game #n

The house says that the house seed is 3864736283 and that SHA256 will be used.

There are 4 players.

Two players decide to submit an invalid hash. That is no hash of "3864736283xxxxxxxxxx", for any x's produces the outcome they publish.
Another player chooses as seed 7776665554 so calculates the SHA256 of "38647362837776665554", which is:
90bc10e69f3242e1bdcc128524b3763d1be3b5d917daadb0eb43d00348f7399a

and publishes that.

Another player chooses as his own 10 digits seed 9999966665, so calculates SHA256 of "38647362839999966665"
which is:
a7c44f73bf76cb00fca176e5aa9a531a082ecc5f477b9b55a3465bc4870e3d57

and publishes it.

The house will then find by exhaustion the seeds of the players. Two did not provide a valid hash, that is, no possible seed found, so they would not participate in the randomness source.

In the meantime the house founds that 7776665554 and 9999966665 were the seeds of the players.

As 7776665554 < 9999966665 it will be on the left, so we concatenate them and calculate
SHA256("77766655549999966665") , which is:
7e987f1a81778c36040b818ee21ddbb7df4592d8e30df5f843f8cf5ce820e98e

During a given time after all players publish their hashes, all players can bet saying 256 bits. The bet with 256 bits that gets closer to the resulting hash of the game wins.


The number of digits of the seeds is chosen so that it is fairly improbable the house can find the seeds during the time when bets can be placed. For 10 seeds of digits maybe is fair bets can be placed during the minute after all players' hashes are published. This is the tricky part because we don't know the computation power of the house.

Maybe this logic could be implemented where house is an altcoin. Or maybe this could be even implemented with bitcoin.

What do you think?
Jump to: