Bitcoin Forum
May 28, 2024, 06:01:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Idea for a game that may make sense to implement with the bitcoin network  (Read 717 times)
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1117
Merit: 1016


ASMR El Salvador


View Profile WWW
March 21, 2015, 03:31:25 PM
 #1

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?

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
pfifty
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
March 29, 2015, 01:20:59 AM
Last edit: March 29, 2015, 03:56:27 AM by pfifty
 #2

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.
lucasjkr
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
March 29, 2015, 01:27:44 AM
 #3

Sounds like an exciting new idea for my next game night!

/s
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!