Method and equipment for ensuring fairness of game, as well as storage medium
A game and fair technology, applied in the blockchain field, can solve problems such as undermining the fairness and justice of the game, and achieve the effect of ensuring the balance between winning and losing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] A method for ensuring game fairness, applied to player terminals such as figure 1 shown, including:
[0051] S101. Send at least one first game participation transaction to the first game contract after the start;
[0052] S102. Receive the game result of the first game participation transaction fed back by the first game contract according to the game rules;
[0053] Wherein, the first game contract after the start is used to receive at least one first game participation transaction of at least one player; send at least one first game contract feedback to at least one player according to the game rules of the first game participation transaction result. The deposit for at least one first game participation transaction is deducted and frozen from the initial balance of at least one player address of the first game contract after participation in the opening. This part of the content can be realized when the player creates the first game participation transaction, or c...
Embodiment 2
[0102] A method for ensuring game fairness, applicable to blockchain nodes such as Figure 4 shown, including:
[0103] S401. The first game contract after the start receives at least one first game participation transaction from at least one player;
[0104] S402. Send a game result of at least one first game participation transaction fed back by the first game contract according to game rules to at least one player; the game result is used to distribute game rewards.
[0105] Wherein, the first game participation transaction includes: quiz content, deposit and player address balance;
[0106] At least one deposit for participating in the first game transaction is deducted and frozen from the initial balance of at least one player address of the first game contract after participating in the start.
[0107] The deposit for the at least one first game participation transaction is deducted and frozen from the initial balance of at least one player address of the first game co...
Embodiment 3
[0132] Taking games on the Chain33 public chain as an example, transactions that call the same executor (first game contract) in the same block will share the cache of the same first game contract.
[0133] In the first transaction of each game, the balance of the player address is queried from the local database and cached in the corresponding player cache balance of the first game contract. In the same game, the subsequent transactions of the same player will read the cache balance of the corresponding player every time. Each transaction needs to deduct the corresponding amount of deposit from the cache balance before each participation. If the cache balance is insufficient, an error will be reported directly.
[0134] For example, if the game balance of the user address is 10, and the user participates in three consecutive transactions, each deposit is 10, and the execution steps are as follows:
[0135] 1. Process the first transaction, initialize the executor, read the pl...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


