Ethereum: How can a wager with SatoshiDICE be proven…
Find the correctness in Ethereum Gaming: Guide to check the cube wave
The growth of autonomous decentralized organizations (DAO) and non -functioning tokens (NDA) has democratized the world of games, allowing users to participate in a wide range of virtual experience. At the same time, an aspect that continues to cover it with uncertainty is the correctness of Ethereum -based games, including those in which the play engines are built as a cube cylinder. In this article, we deepen the concept of fairness and give a staggered guide on how to manually check that the Betoshydic stake (an outstanding example of the decentralized gameplay) is correct.
Understand the correctness
In the context of Ethereum games, correctness refers to the distribution of results. The system is considered correct if the generator of random numbers (RNG) or the algorithm results, which are distributed evenly and unusually. In other words, the correct system must give the same result in each experiment without the obvious advantage of certain actors or strategies.
Satoshidic: Decentralized Game Motor
Satoshidic is an open source gaming engine leading by the community that allows developers to build personalized games and execute the Ethereum blockchain. Its unique architecture allows you to create decentralized games, where tools are stored on a blockchain and trading on a public market.
The problem of correctness with Satoshydic bets
Although the Satoshydic code is publicly available, it is essential to realize that the correctness of the bets is based on a number of factors:
- Generation of random numbers : RNG used in Satoshydic must be safe and unpredictable.
- Blockchain unchanged : Ethereum blockchain must ensure that all transactions and data are resisted and unchanged.
- Consensus Mechanism : A fair consensus mechanism, such as the Sabbath (POS) Certificate (POW), is necessary to validate without prejudices.
Checking the cube roll: one step -Tep guide
Follow the location of betoshydic stake for manual check, follow these steps:
1.
Download and compile the game code
Get the Sattoshidic game code from the github warehouse or set it up as a device such as Cocos2D-X.
2.
Create a test account
Create an Ethereum Blockchain test account to simulate players with Satoshidic.
3.
Further rolling
Repeat more steps 1 and 2 and generate random numbers for each run. This helps to identify any prejudice for the mechanism of RNG or consensus.
4.
Analyze the generation of random numbers (RNG)
Compare the random numbers generated during all runs to make sure they are evenly distributed and not infinite.
5.
Check the blockchain immunity
Make sure the blockchain is adequately unchanged, making sure that all transactions and data continue to resist the treatment.
6.
Evaluate the Consensus Mechanism
It evaluates that the consensus mechanism used in Satoshidic is correct if it analyzes its behavior in different scenarios.
Example of checking the distribution of RNG
Suppose you generated 100 random numbers with a simple Pseudorandom (PRG) generator. To check that they are evenly distributed, create a histogram or band diagram to view their distribution. If the histogram does not show samples, it suggests that the PRNG is correct.
Example of checking blockchain immunity
To check if the blockchain is unchanged, you can use devices such as Ethereum built-in gas station or third party services such as Etherscan or Infura. These tools help ensure that all transactions and data are correctly recorded on the blockchain.
Conclusion
Checking the correctness of the betoshydic stake includes several stages, from RNG tests to evaluation of the consensus mechanism.