CN109395393A - Game dispositions method and method for gaming, equipment and storage medium based on parallel chain - Google Patents

Game dispositions method and method for gaming, equipment and storage medium based on parallel chain Download PDF

Info

Publication number
CN109395393A
CN109395393A CN201811152693.0A CN201811152693A CN109395393A CN 109395393 A CN109395393 A CN 109395393A CN 201811152693 A CN201811152693 A CN 201811152693A CN 109395393 A CN109395393 A CN 109395393A
Authority
CN
China
Prior art keywords
game
node
rule
contract
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811152693.0A
Other languages
Chinese (zh)
Other versions
CN109395393B (en
Inventor
柳宇航
吴思进
王志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201811152693.0A priority Critical patent/CN109395393B/en
Publication of CN109395393A publication Critical patent/CN109395393A/en
Application granted granted Critical
Publication of CN109395393B publication Critical patent/CN109395393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/75Enforcing rules, e.g. detecting foul play or generating lists of cheating players
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5526Game data structure
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5586Details of game data or player data management for enforcing rights or rules, e.g. to prevent foul play
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of game dispositions method and method for gaming, equipment and storage medium based on parallel chain, belongs to block chain technical field.The first game contract of the first game is disposed, on the first parallel chain so that several first game terminals obtain and call game beginning interface of the first game contract so that the first game is respectively created on first parallel chain;So that several second game terminals obtain and the game of the first game contract is called to participate in interface to participate in first game respectively on first parallel chain;The first game contract of the first game is sent to corresponding main chain node, to record and know together;It further include corresponding method for gaming, equipment and storage medium.It can ensure that the fair and just property of game, improves the scalability of game, more people's progress game can be carried by, which not limited by block chain performance, further can also realize the scheme of the block chain game of lightweight, freedom degree with higher.

Description

Game dispositions method and method for gaming, equipment and storage medium based on parallel chain
Technical field
The present invention relates to block chain technical field more particularly to a kind of game dispositions methods and game side based on parallel chain Method, equipment and storage medium.
Background technique
The prediction etc. of victory or defeat or the match of the current game of block chain such as football, basketball, there are two types of type, Yi Leiyu Traditional game on line is more similar, is still configured with the game server of centralization, and block chain is only used in such game scheme In key messages such as the right of attribution for recording and proving game item;The another kind of then no longer game server of configuration center, and It is using the block chain network of decentralization as game server.
The defect of the game scheme of preceding one kind centralization is, is substantially still traditional game on line scheme, can not keep away The controlling party exempted from and get rid of centralized server is poorly controlled to game progress, such as can not extract bonus after prediction win, this The platform of a little centralizations can not also provide the fair and just of game.
Currently also more immature for the game scheme of latter class decentralization, only fewer companies are carrying out It attempts, fair play fairness can be improved using intelligent contract in the existing game scheme using block chain technology, but this kind of Scheme is poor in terms of scalability, is primarily due to current block chain and is limited by the factors such as performance, can not carry more people into Capable game, and then development speed of the game on block chain is restricted, currently lacking one kind can be by simple and convenient portion The scheme of the block chain game of lightweight can be realized in administration and application, leads to not that more users is attracted to participate in decentralization In block chain game;
Further, the block chain game of existing decentralization also has the lower defect of freedom degree, in rule itself In the case where relatively simple, lower freedom degree causes the interest of game poor, still relies on the operation of development of games side Stationary game, it is difficult to attract and keep here user.
Summary of the invention
1. technical problems to be solved by the inivention
In order to overcome the above technical problems, the present invention provides based on parallel chain game dispositions method and method for gaming, Equipment and storage medium.It can ensure that the fair and just property of game, improves the scalability of game, do not limited by block chain performance More people's progress game, which can be carried, further can also realize the scheme of the block chain game of lightweight, with higher Freedom degree.
2. technical solution
To solve the above problems, technical solution provided by the invention are as follows:
First, the present invention provides a kind of game dispositions method based on parallel chain, this method is suitable for the first parallel chain Node, which comprises
The first game contract of the first game is disposed, on the first parallel chain so that several first game terminals obtain and adjust With game beginning interface of the first game contract the first game is respectively created on first parallel chain;For several Second game terminal obtains and the game of the first game contract is called to participate in interface to distinguish on first parallel chain Participate in first game;
The first game contract of the first game is sent to corresponding main chain node, so that each node of the first parallel chain is distinguished Each verifying node point of the first game contract of the first game, first parallel chain is obtained and executed from corresponding main chain node It is not packaged the first block information of the first block and is sent to corresponding main chain node for recording first block information To know together to first block on to the main chain;Wherein, first block information includes first game The implementing result of first game contract.
Preferably, the first game contract is also configured with game over interface, and the game over interface is used for for institute It states the first game terminal to obtain and call to generate game over transaction, the game over transaction is configured with following at least one : rule is provided in game over triggering rule, game result decision rule, reward.
Preferably, the first game contract is also configured with several rule templates, and the rule template is used for for described the One game terminal obtains and calls at least one of below rapid configuration: the game over triggering rule, the game result Rule is provided in decision rule, the reward.
Preferably, the method also includes: the rule configuration for disposing on first parallel chain first game is examined Look into contract;
Wherein, the rule configuration examines that contract is at least one of following for examining: the game over triggering rule, institute Game result decision rule is stated, rule is provided in the reward, and it generates examination result information and is sent to corresponding main chain node, with Examination result information, first parallel chain are obtained and executed from corresponding main chain node respectively for each node of the first parallel chain Each verifying node be packaged the first block information of the first block respectively and be sent to corresponding main chain node for by described One block information record on the main chain to know together to first block, for second game terminal obtain with For reference;Wherein, first block information includes the examination result information.
Preferably, the method also includes:
Send the first game creation transaction, the first game is participated in business, game over transaction and rule configuration examine contract To corresponding main chain node, so that each node of the first parallel chain is obtained from corresponding main chain node respectively and executes the first game Creation transaction, the first game are participated in business, game over transaction and rule configuration examine that contract, first parallel chain are respectively tested Card node is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by first block Information record on the main chain to know together to first block;Wherein, first block information includes described One game creation transaction, the first game are participated in business, game over is traded and examine contract;Wherein, the first game creation transaction Generation when being obtained by several first game terminals and calling game beginning interface that the first game is respectively created;First game participates in handing over It is easily obtained by several second game terminals and the game is called to participate in interface and participate in generation when first game respectively.
Corresponding main chain node receives and records the first trip that verifying or the non-authentication node from the first parallel chain are sent First game contract of play, so that each node of parallel chain obtains and execute the first game contract of the first game, described the Each verifying node of one parallel chain be packaged the first block information of the first block respectively and be sent to corresponding main chain node for First block information is recorded to know together to first block, common recognition process is held by main chain on the main chain Load, reduces the workload of the first parallel chain itself, while the fair and just property for ensuring game, improves the extension of game Property, more people can be carried by, which not limited by the storage performance of block chain, carries out game.
Second, the present invention provides a kind of game dispositions method based on parallel chain, this method is suitable for the first parallel chain Node corresponding to main chain node, which comprises
Receive the first game contract of the first game, wherein the first game contract of the first game is by the first parallel chain Node is disposed on the first parallel chain, so that each node of the first parallel chain is obtained from corresponding main chain node respectively and executes First game contract of one game, each verifying node of first parallel chain are packaged the first block information of the first block respectively And be sent to corresponding main chain node for by first block information record on the main chain to first block It knows together;Wherein, first block information includes the implementing result of the first game contract of first game;
Wherein, the first game contract of the first game is configured with game beginning interface, so that several first game terminals obtain It takes and calls game beginning interface that the first game is respectively created;
First game contract of the first game is also configured with game and participates in interface, so that several second game terminals obtain simultaneously It calls the game to participate in interface and participates in first game respectively.
Preferably, the first game contract is configured with several rule templates, and the rule template is used to supply described first Game terminal obtains and call at least one of below rapid configuration: the game over triggering rule, the game result are sentenced Then, rule is provided in the reward to set pattern.
Preferably, the first game contract is configured with game over interface, and the game over interface is for described in confession First game terminal is obtained and is called to generate game over transaction, and the game over transaction is configured at least one of following: Rule is provided in game over triggering rule, game result decision rule, reward.
Preferably, the method also includes:
Examination result information is received, so that each node of the first parallel chain obtains the first trip from corresponding main chain node respectively The examination result information of play, first parallel chain each verifying node be packaged respectively the first block the first block information it is concurrent Send to corresponding main chain node for by first block information record on the main chain to be carried out to first block Common recognition, so that second game terminal is obtained to refer to;Wherein, first block information includes first game Examination result information;
Wherein, the examination result information is configured by rule examines that contract is at least one of following for examining: the game End trigger rule, the game result decision rule, the reward is provided rule and is generated, and is sent to master link point;Institute It states rule configuration and examines that contract is disposed on the first parallel chain by the node of the first parallel chain.
Preferably, the method also includes:
Receive the first game creation transaction, the first game is participated in business, game over transaction and rule configuration examine contract To corresponding main chain node, so that each node of the first parallel chain is obtained from corresponding main chain node respectively and executes the first game Creation transaction, the first game are participated in business, game over transaction and rule configuration examine that contract, first parallel chain are respectively tested Card node is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by first block Information record on the main chain to know together to first block;Wherein, first block information includes described One game creation transaction, the first game participate in business, game over transaction and criteria review contract;Wherein, the first game creates Transaction generation when being obtained by several first game terminals and calling game beginning interface that the first game is respectively created, and it is sent to the The node of one parallel chain;First game, which is participated in business, to be obtained by several second game terminals and the game is called to participate in interface point Generation when first game is not participated in, and is sent to the node of the first parallel chain.
The verifying node or non-authentication node of first parallel chain dispose the first game of the first game on the first parallel chain Contract, the first game contract according to the first game create the first game, and mapping out the work for game is undertaken by parallel chain completely, is dropped The low workload of main chain, realizes the deployment scheme of the block chain game of lightweight, improves the freedom degree of game, extension, game warp Battalion's mode.
Third, the present invention provides a kind of method for gaming based on parallel chain, which comprises
Game beginning transaction is received to create the first game on the first parallel chain, wherein described game beginning transaction by First game terminal obtains and the game beginning interface for the first game contract being deployed on the first parallel chain is called to generate concurrently It send to the node of first parallel chain;
Several game are received to participate in business with the participant of determination first game;Wherein, the game is participated in business It is obtained after obtaining the information of first game by first parallel chain by the second game terminal and calls first trip The game of play contract participates in interface and generates and sends to the node of first parallel chain;
Game result is generated according to several rules of pre-configuration, sends game beginning transaction, several game of the first game Participate in business and game result to corresponding main chain node, for the first parallel chain each node respectively from corresponding main chain node Obtain and execute the first game game beginning transaction, several game are participated in business and game result, first parallel chain Each verifying node is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by described first Block information record on the main chain to know together to first block;Wherein, first block information includes institute State the first game game beginning transaction, several game are participated in business and game result.
Preferably, it is described according to pre-configuration it is several rule generate game results, send the first game game result to Corresponding main chain node includes:
Virtual machine by running first game monitors block height or the time of first parallel chain, and judges Whether the block height or the time trigger the game over triggering rule of pre-configuration:
It is game result then to be generated according to the game result decision rule of pre-configuration, and send the game knot of the first game Fruit is to corresponding main chain node.
Preferably, reception game beginning transaction on the first parallel chain to create the first game further include:
Receive game over transaction;Wherein, the game over transaction is configured with following at least the one of first game : rule is provided in game over triggering rule, game result decision rule, reward;The game over transaction is by described first Game terminal obtains and the game over interface of the first game contract is called to generate;
It is described to generate game results according to several rules of pre-configuration, the game result of the first game is sent to corresponding master Include: on chain node
The virtual machine for passing through operation first game executes the game over transaction and generates game result and send the The game result of one game is to corresponding main chain node.
Preferably, the first game contract is also configured with several rule templates, and the game over transaction passes through described At least one of below rule template rapid configuration: the game over triggering rule, the game result decision rule, the prize Encourage granting rule.
Preferably, the method also includes:
The rule configuration of first game is called to examine that contract is examined at least one of following: the game over Rule is provided in triggering rule, the game result decision rule, the reward, is generated examination result information and is sent to corresponding Main chain nodes records and common recognition, so that each node of the first parallel chain obtains examining for the first game from corresponding main chain node respectively Result information is looked into so that second game terminal is obtained to refer to.
Game beginning transaction, game are participated in business, rule configuration examines that contract and game result carry out on parallel chain, And it is recorded on main chain for main chain common recognition, so that it is guaranteed that the decentralization of game, fair and just.
4th, the present invention provides a kind of equipment, including one or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of places It manages device and executes first to the method described in any one of third.
5th, the present invention provides a kind of storage mediums for being stored with computer program, when which is executed by processor Realize the method as described in any one of first to third.
3. beneficial effect
Using technical solution provided by the invention, compared with prior art, have the following beneficial effects:
(1) it present invention can assure that the fair and just property of game, improves the scalability of game, is not limited by block chain performance More people's progress game, which can be carried, further can also realize the scheme of the block chain game of lightweight, with higher Freedom degree;
(2) the corresponding main chain node of the present invention, which receives and records verifying or the non-authentication node from the first parallel chain, sends The first game the first game contract, for each node of parallel chain obtain and execute the first game the first game close About, each verifying node of first parallel chain is packaged the first block information of the first block respectively and is sent to corresponding main chain Node for by first block information record on the main chain to know together to first block, common recognition process by Main chain undertakes, and reduces the workload of the first parallel chain itself, while the fair and just property for ensuring game, improves game Scalability, more people can be carried by, which not limited by the storage performance of block chain, carries out game;
(3) the verifying node of the first parallel chain of the invention or non-authentication node dispose the first game on the first parallel chain First game contract, the first game contract according to the first game create the first game, and game maps out the work completely by parallel Chain undertakes, and reduces the workload of main chain, realizes the deployment scheme of the block chain game of lightweight, improves the freedom degree of game, Extension, game management mode;
(4) game beginning transaction of the present invention, game are participated in business, rule configuration examines contract with game result parallel It carries out, and is recorded on main chain for main chain common recognition, so that it is guaranteed that the decentralization of game, fair and just on chain;
(5) the characteristics of the advantages of present invention utilizes parallel chains, parallel chain is that scalability is high, high-efficient, high safety, is put down Row chain can get on develop the function of oneself in the framework of main chain, without oneself go maintenance safety, it and main chain are kept both The relationship of independent connection again, has good scalability, it can different parallel chains is built according to different scene of game;And Parallel chain only needs to handle can not need to synchronize all transaction with the relevant transaction of oneself game, and the data of parallel chain exist Main chain saves, and facilitates anyone to verify, had not only improved safety in this way but also improved efficiency.
Detailed description of the invention
Fig. 1 is parallel chain schematic diagram of a scenario of the invention;
Fig. 2 is one of the flow chart for the game dispositions method suitable for parallel chain node that one embodiment of the invention provides;
Fig. 3 is the game dispositions method suitable for the corresponding main chain node of parallel chain node that one embodiment of the invention provides One of flow chart;
Fig. 4 is one of the flow chart of method for gaming that one embodiment of the invention provides;
Fig. 5 is the two of the flow chart for the game dispositions method suitable for parallel chain node that one embodiment of the invention provides;
Fig. 6 is the game dispositions method suitable for the corresponding main chain node of parallel chain node that one embodiment of the invention provides Flow chart two;
Fig. 7 is the two of the flow chart for the method for gaming that one embodiment of the invention provides;
Fig. 8 is the schematic diagram of the first game contract of the invention;
Fig. 9 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
Specific embodiment
To further appreciate that the contents of the present invention, in conjunction with accompanying drawings and embodiments, the present invention is described in detail.
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to invention is illustrated only in attached drawing.
Heretofore described first, second equal words are convenient and be arranged in order to describe technical solution of the present invention, and There is no specific restriction effect, be to refer to, restriction effect is not constituted to technical solution of the present invention.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In the present invention, a main chain can configure one or more parallel chain.Node on one parallel chain includes two Kind, verifying and non-authentication node correspond respectively to different main chain nodes, and can be communicated with corresponding master link point, Communication is not can be carried out between each node of parallel chain mutually;It is in communication with each other between each node on main chain.
Verifying node on one parallel chain can be used for receiving transaction, contract that several game terminals are sent, and execute Corresponding transaction, contract can be also used for creation transaction, deployment contract and be packaged block information, and can be to corresponding main chain Node sends, obtains and executes corresponding transaction, contract and block information.
Non-authentication node on one parallel chain can be used for receiving transaction, contract that several game terminals are sent, and hold The corresponding transaction of row, contract can be also used for creation transaction and deployment contract, and can send, obtain to corresponding main chain node Corresponding transaction, contract and packet block information are taken and executed, but block information cannot be packaged.
Verifying or non-authentication node on one parallel chain, respectively correspond multiple game terminals, and each game player is corresponding One game terminal.
The common recognition mechanism of parallel chain by means of main chain common recognition: common recognition mechanism can use existing POW: match in parallel chain It is equipped with several verifying nodes (usually 3f+1, f is positive integer), each block verified node and be packaged block to be known together respectively Information is simultaneously sent to corresponding main chain node, and main chain node records each block information to main chain, and verifies each block information In whether have the block information of no less than first threshold quantity identical, be, then the parallel chain block by main chain by POW, POS or The modes such as DPOS are known together, and the commit mark for the parallel chain block arrangement for certification.
Following common recognition mechanism can also be used: configured with several verifying nodes, (usually 3f+1, f is in parallel chain Positive integer), each node of verifying is packaged the block information of block to be known together respectively and is sent to corresponding main chain node, main chain node Each block information is recorded to main chain, and the block information for whether having no less than first threshold quantity in each block information verified It is identical: to be that then the parallel chain block is by common recognition, and the commit mark for the parallel chain block arrangement for certification.
Scheme provided by the invention is specifically described below with reference to attached drawing.
Fig. 1 is parallel chain schematic diagram of a scenario in one embodiment of the invention.As shown in Figure 1, for main chain configure several nodes (A, B, C ..., T ...), the first parallel chain configures 10 nodes (a1, b1, c1 ..., t1), interior joint a1, b1, c1, d1 configuration For the verifying node of the first parallel chain, node e1, f1 ..., t1 are configured to the non-authentication node of the first parallel chain;Node a2, C2, e2, h2c1, d1 are configured to the verifying node of the second parallel chain, and game deployment scheme of the invention is described in detail.
As shown in Fig. 2, in the present embodiment, the present invention provides a kind of game dispositions method, it is suitable on the first parallel chain Node, comprising:
S101, the first game contract (as shown in Figure 8) that the first game is disposed on the first parallel chain, for several first Game terminal obtains and calls game beginning interface of the first game contract to be respectively created on first parallel chain First game;So that several second game terminals obtain and the game of the first game contract is called to participate in interface described First game is participated on first parallel chain respectively;
S102, send the first game the first game contract to corresponding main chain node, for each section of the first parallel chain Point obtains from corresponding main chain node respectively and executes each verifying of the first game contract, first parallel chain of the first game Node is packaged the first block information of the first block respectively and is sent to corresponding main chain node for believing first block To know together to first block on breath record to the main chain;Wherein, first block information includes described first The implementing result of first game contract of game.
As shown in figure 3, in the present embodiment, the present invention also provides a kind of game dispositions methods, it is suitable for the first parallel chain On node corresponding to main chain node, comprising:
S201 and S202, the first game contract for receiving the first game, wherein the first game contract of the first game is by the The node of one parallel chain is disposed on the first parallel chain, so that each node of the first parallel chain is obtained from corresponding main chain node respectively It takes and executes the first game contract of the first game, each verifying node of first parallel chain is packaged the of the first block respectively One block information and be sent to corresponding main chain node for by first block information record on the main chain to institute The first block is stated to know together;Wherein, first block information includes the execution of the first game contract of first game As a result;
Receive, record and know together first block and its information.
Wherein, the first game contract of the first game is configured with game beginning interface, so that several first game terminals obtain It takes and calls game beginning interface that the first game is respectively created;
First game contract of the first game is also configured with game and participates in interface, so that several second game terminals obtain simultaneously It calls the game to participate in interface and participates in first game respectively.
Fig. 4 is a kind of flow chart for method for gaming that one embodiment of the invention provides.Method for gaming shown in Fig. 4 can pass through The game contract of the deployment of method shown in Fig. 2 and Fig. 3 carries out game.As shown in figure 4, in the present embodiment, the present invention provides one kind Method for gaming, comprising:
S301, game beginning transaction is received to create the first game on the first parallel chain, wherein described game beginning is handed over It is easily obtained by the first game terminal and the game beginning interface for the first game contract being deployed on the first parallel chain is called to generate And it is sent to the node of first parallel chain;
S302, several game of reception are participated in business with the participant of determination first game;Wherein, the game participates in Transaction obtains after obtaining the information of first game by first parallel chain by the second game terminal and calls described the The game of one game contract participates in interface and generates and sends to the node of first parallel chain;
S303, game result is generated according to several rules of pre-configuration, the game beginning for sending the first game trades, is several Game is participated in business and game result to corresponding main chain node, for the first parallel chain each node respectively from corresponding main chain Node obtains and executes that game beginning transaction of the first game, several game are participated in business and game result, and described first is parallel Each verifying node of chain is packaged the first block information of the first block and is sent to corresponding main chain node respectively for will be described First block information record on the main chain to know together to first block;Wherein, the first block information packet Include first game game beginning transaction, several game are participated in business and game result.
Specifically, a game for guessing numerical value, several players are disposed on parallel chain I with game developer below in the chain Upper creation or for participating in this game, is illustrated Fig. 2, Fig. 3 and method shown in Fig. 4.
Game developer can develop one and guess that the game of numerical value is closed by the development language of the intelligent contract of parallel chain I About SCnum1, and the interface externally provided: game beginning interface I is provided in the game contract1, game participation interface I2
In step s101, by initiating transaction for above-mentioned game and about SCnum1It is deployed on parallel chain I, to generate The game and about SCnum1Address TAddGame.
After completing deployment, the game terminal of player A can know address above mentioned TAddGame by the data of parallel chain I, And game beginning interface I is got by accessing address TAddGame1, thus by calling game beginning interface I1If configuration The dry relevant parameter of beginning, for example, specified local exchange game guess the range of number between 108-129, the full people of local exchange game Number is 20 people, etc., generates game beginning and trades and be sent to the node of parallel chain I;
In step S301, after game beginning transaction that the game terminal that the node of parallel chain I receives player A is sent, By virtual machine execute the game beginning transaction contract code, such as execute it is errorless, then this game beginning transaction be sent to On the corresponding main chain node of the node of parallel chain I, so that each node of parallel chain I is obtained and is held from corresponding main chain node respectively The game and about SC that row guesses numerical valuenum1Game beginning transaction, each verifying node of the parallel chain I is packaged the first block respectively The first block information and be sent to corresponding main chain node for by first block information record on the main chain with It knows together to first block;Wherein, first block information includes the game for guessing numerical value and about SCnum1Trip Beginning of playing is traded, and game beginning transaction can guess that numbers game creates successfully by common recognition, the office, the game terminal of all players The information of numbers game can be guessed to this innings by the data acquisition of synchronous parallel chain I;
When the information of numbers game, and player B decision are guessed in this innings that the game terminal of player B gets player A creation When this innings of game is added, the game terminal of player B equally passes through address TAddGame and gets game participation interface I2, thus logical It crosses calling game and participates in interface I2, the number that the range configuration player B specified according to player A guesses in local exchange game, such as 120 are configured by the number that player's B local exchange game is guessed, game is generated and participates in business and be sent to the node of parallel chain I;
In step s 302, after the game that the game terminal that the node of parallel chain I receives player B is sent is participated in business, This game is executed to participate in business, if running succeeded, this game participate in business be sent to parallel chain I node it is corresponding On main chain node, the game contract of numerical value is guessed so that each node of parallel chain I is obtained respectively and executed from corresponding main chain node SCnum1Game participate in business, the first block information that each verifying node of the parallel chain I is packaged the first block respectively is concurrent Send to corresponding main chain node for by first block information record on the main chain to be carried out to first block Common recognition;Wherein, first block information includes the game for guessing numerical value and about SCnum1Game participate in business, game ginseng Can be by common recognition with transaction, then player B participates in game success;
Other players such as player C, D can be participated in such a way that above-mentioned player B participates in game in local exchange game come, It can participate in the game of other players creation, can also voluntarily be created one innings in such a way that above-mentioned player A creates game New game;
In step S303, when the game triggering game over triggering rule of above-mentioned virtual machine operation, such as player A wound 50 blocks have been already expired after guessing numbers game creation in the local exchange built, or, having arrived some preassigned time point, etc., in parallel Virtual machine in chain inode executes the game result clearing code of pre-configuration automatically, generates game result, and by the game result It is recorded on parallel chain I.For example, seed (such as the block Hash of certain history block, certain history for being determined when according to creation game The transaction Hash of transaction, or, the public key of player A or address, etc.) and be pre-configured pseudo-random algorithm generate local exchange game institute it is competing Whether the number guessed, the digital judgement guessed further according to each participation local exchange game player have player to guess successfully: if any one Or multidigit player guesses successfully, then the one or more players win in local exchange game;It such as guesses successfully, then creates without player The player A for building local exchange game wins in local exchange game.
In a preferred embodiment, step S303 includes: to monitor the first block chain by running the virtual machine of the first game Block height or the time, and judge block height or time whether trigger pre-configuration game over triggering rule:
It is that game result is then generated according to the game result decision rule of pre-configuration, game result is sent to parallel chain I The corresponding main chain node of node on, guess number so that each node of parallel chain I is obtained and executed from corresponding main chain node respectively The game of value and about SCnum1Game result, each verifying node of the parallel chain I is packaged the first block of the first block respectively Information and be sent to corresponding main chain node for by first block information record on the main chain to described first Block is known together;Wherein, first block information includes the game for guessing numerical value and about SCnum1Game result.
Specifically, in the preferred embodiment, game over triggering rule is initiated to hand over by the player of creation game in game Configuration in easily;In another preferred embodiment, game over triggering rule can also by game developer (it should be noted that Game developer can be player, can also be selected with the operator etc. of node operator or game terminal on the first parallel chain Select freedom) directly configure in game contract, it can be achieved that identical technical effect.
Preferably, beginning player and participation players can also be respectively when sending game beginning transaction and game is participated in business Mortgage a certain number of game credits, game money or encryption currency.The game credits mortgaged, game money or encryption currency can be with It is completely used for rewarding the player of triumph after generating game result;It partially can also be used to reward the player of triumph, partially be used for Bonus game developer;Etc..
Above-described embodiment configures the game contract for guessing numerical value with game developer on parallel chain I, and each player obtains And the interface of the game contract is called to create or participate on parallel chain I for guessing numerical game, to Fig. 2 and side shown in Fig. 3 Method has carried out illustrative elaboration, in more embodiments, can also configure on different parallel chains according to actual needs different The game contract of game, and, different game is created or participates in, as long as the parallel chain allows user's self-developing and configures conjunction About, which can be realized by exploitation contract, and identical technical effect can be realized.
Above-described embodiment is closed by disposing the game for participating in interface configured with game beginning interface and game on parallel chain About, allow player by calling game beginning interface to create game on parallel chain, it can also be by calling game to participate in Light weight can be realized by simple and convenient deployment and application to participate in the game that other players are created, to realize in interface The parallel chain game of the decentralization of grade, is not take up the excessive resource of main chain, not high to main chain performance requirement, can alleviate main chain Pressure, improve the scalability of game.
Above-described embodiment encapsulates several rules of game in game contract, and the freedom degree of game is relatively low, The interest that will lead to game is not strong enough.For this problem, the present invention is further mentioned by configuring in game contract to player The interface of confession is regular to allow the player for creating game voluntarily to configure these:
In a preferred embodiment, the first game contract is also configured with game over interface, which is used for Obtain and call for the first game terminal to generate game over transaction, game over generated transaction configured with it is following at least One: rule is provided in game over triggering rule, game result decision rule, reward.
Correspondingly, in a preferred embodiment, step S202, S303 further include: receive game over transaction.Wherein, Game over transaction is configured at least one of following of the first game: game over triggering rule, game result decision rule, prize Encourage granting rule.Game over transaction is obtained by the first game terminal and calls the game over interface of the first game contract raw At.
Step S102 includes: to execute game over transaction generation game result by running the virtual machine of the first game, Game result is sent to corresponding main chain node, so that each node of the first parallel chain obtains simultaneously from corresponding main chain node respectively Each verifying node for executing game result, first parallel chain that game over transaction generates is packaged the of the first block respectively One block information and be sent to corresponding main chain node for by first block information record on the main chain to institute The first block is stated to know together;Wherein, first block information includes the game result that the game over transaction generates.
Specifically, a game for guessing numerical value, several players are equally disposed on parallel chain I with game developer parallel For creating or participating in this game on chain I:
In the present embodiment, what game developer developed guesses numerical game and about SCnum2Compared to above-mentioned game contract SCnum1, the game over interface I externally provided is provided3
In step s101, player A is in addition to calling game and about SCnum2Game beginning interface create one innings of game it Outside, it also obtains and calls game over interface I3To configure game over triggering rule, the game result judgement rule of local exchange game Rule then is provided with reward, generates game over transaction, and be sent to the node of parallel chain I.
For example, game over interface I can be passed through3Player A, which is configured, by game over triggering rule sends a transaction Game over is triggered, or, do not receive the transaction then automatic trigger game over of the triggering game over before the deadline; It configures game result decision rule to take the block creation time of a upper block as random seed, be made with linear congruential method The number that local exchange game is guessed is generated by pseudo-random algorithm;Rule is provided in reward to be configured to when there are multiple victors, The more early player to hit it can obtain more rewards;Etc..
Above-mentioned rule is merely illustrative, and in more embodiments, the player for creating game can be in game over interface I3Permit Perhaps voluntarily configuration is arbitrary regular, it can be achieved that identical technical effect in the range of;The above method can be applied equally to not With the game contract for configuring different game on parallel chain, and, create or participate in different game.
In the present embodiment, the player of configuration rule carries out rule by writing the contract code of every rule manually Configuration;
In a preferred embodiment, game contract is also configured with several rule templates, and player can be obtained by game terminal These rule templates are taken and called, the rapid configuration of above-mentioned any one or more rule are realized, without writing contract generation Regular configuration can be completed in code.
The node of parallel chain I executes game over transaction after receiving game over transaction, through virtual machine, When the parameters such as the block height of current block or current time do not trigger game over triggering rule, it is received by step S302 His player participates in local exchange game;
After the parameters such as the block height of current block or current time triggering game over triggering rule, terminate local exchange trip Play, the number guessed according to each player for participating in local exchange game, the game result decision rule of pre-configuration generate game result, Rule is provided according to the reward of game result and pre-configuration and carries out reward granting, and game result and reward are provided into result record On parallel chain I.
Above preferred embodiment, which further passes through, configures game over interface for the game contract disposed, and makes to create game Player can first pass through in advance game over interface is called to configure the relevant rule of several game over, to greatly improved The freedom degree of decentralization block chain game, and then improve the interest of game;And it is further several by being provided for player Rule template, to assist player to carry out the rapid configuration of rule, to improve the user experience of player.
However allow the game mode for freely configuring game over rule while promoting game freedom degree, also bring The problem of fairness, if such as the player A of creation game may maliciously write to one's own side and its advantageous, and to other participations The very unfavorable game rule of the player of game, other players need by reading this innings of game disclosed contract on parallel chain Whether code is fair come the rule for judging player A configuration, will lead to time cost and threshold promotion that player participates in game, unfavorable In the popularization of game.
For this problem, the present invention further by parallel chain configuration rule configuration examine that contract optimizes the present invention Provided scheme:
Fig. 5 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.As shown in figure 5, in a preferred embodiment In, the above-mentioned game dispositions method for being suitable for the first parallel chain node further include:
The rule configuration that the first game is disposed on the first parallel chain examines contract.The examination contract can be by player, Node network operator or the network operator of game terminal of one parallel chain etc. dispose in many ways.
Wherein, rule configuration examines that contract is at least one of following for examining: game over triggering rule, game result are sentenced Then, rule is provided in reward to set pattern, is generated examination result information and is recorded on the first block chain for the acquisition of the second game terminal It is for reference.
Correspondingly, as shown in fig. 6, being suitable for the game dispositions method of the corresponding main chain node of node of the first parallel chain also Include:
Examination result information is received, so that each node of the first parallel chain obtains the first trip from corresponding main chain node respectively The examination result information of play is so that second game terminal is obtained to refer to, each verifying node of first parallel chain divides It is not packaged the first block information of the first block and is sent to corresponding main chain node for recording first block information To know together to first block on to the main chain;Wherein, first block information includes first game Examination result information;
Wherein, the examination result information is configured by rule examines that contract is at least one of following for examining: the game End trigger rule, the game result decision rule, the reward is provided rule and is generated, and is sent to master link point;Institute It states rule configuration and examines that contract is disposed on the first parallel chain by the node of the first parallel chain.
As shown in fig. 7, in a preferred embodiment, above-mentioned method for gaming further include:
The rule configuration of the first game is called to examine that contract is examined at least one of following: game over trigger gauge Then, rule is provided in game result decision rule, reward, generates examination result information, and by main chain record and after knowing together, so as to The node of first parallel chain obtains, so that the acquisition of the second game terminal is for reference.
It is further preferred that it is above-mentioned rule configuration examine contract can also can not judgment rule fairness when examining As a result indicating risk is carried out in;
It is further preferred that above-mentioned rule configuration examines that contract can also be mentioned other players by the risk that transaction is sent Show that information is added in examination result information.
Above-described embodiment further examines that the rule configuration of player institute configuration rule is examined by configuring on the first parallel chain Look into contract, the player for participating in game allow quickly to understand the rule that is configured of creation player, without by see code come Confirm the fairness of rule.
Shown in Fig. 1, it is also configured with the second parallel chain, the method and first of each node deployment game on the second parallel chain Parallel chain is identical, does not do repeated description herein.
Fig. 9 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
As shown in figure 9, present invention also provides a kind of equipment 500, including one or more centres as on the other hand Unit (CPU) 501 is managed, can be added according to the program being stored in read-only memory (ROM) 502 or from storage section 508 The program that is downloaded in random access storage device (RAM) 503 and execute various movements appropriate and processing.In RAM503, also deposit It contains equipment 500 and operates required various programs and data.CPU501, ROM502 and RAM503 pass through the phase each other of bus 504 Even.Input/output (I/O) interface 505 is also connected to bus 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, it is all Such as disk, CD, magneto-optic disk, semiconductor memory are mounted on as needed on driver 510, in order to read from thereon Computer program out is mounted into storage section 508 as needed.
Particularly, in accordance with an embodiment of the present disclosure, the method for any of the above-described embodiment description may be implemented as computer Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be tangibly embodied in machine readable Computer program on medium, the computer program include the program generation for executing the method for any of the above-described embodiment description Code.In such embodiments, which can be downloaded and installed from network by communications portion 509, and/or It is mounted from detachable media 511.
As another aspect, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums Matter can be computer readable storage medium included in the device of above-described embodiment;It is also possible to individualism, it is unassembled Enter the computer readable storage medium in equipment.Computer-readable recording medium storage has one or more than one program, should Program is used to execute by one or more than one processor is described in the present processes.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depending on related function.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yitong The dedicated hardware based system of functions or operations as defined in executing is crossed to realize, or by specialized hardware and can be calculated The combination of machine instruction is realized.
Being described in the embodiment of the present application involved unit or module can be realized by way of software, can also be with It is realized by way of hardware.Described unit or module also can be set in the processor, for example, each unit can To be the software program being arranged in computer or intelligent movable equipment, it is also possible to the hardware device being separately configured.Wherein, this The title of a little units or module does not constitute the restriction to the unit or module itself under certain conditions.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the application design, appointed by above-mentioned technical characteristic or its equivalent feature Other technical solutions of meaning combination and formation.Such as features described above and (but being not limited to) disclosed herein have similar functions Technical characteristic replaced mutually and the technical solution that is formed.

Claims (17)

1. a kind of game dispositions method based on parallel chain, which is characterized in that the described method includes:
The first game contract of the first game is disposed, on the first parallel chain so that several first game terminals obtain and call institute Game beginning interface of the first game contract is stated so that the first game is respectively created on first parallel chain;For several second Game terminal obtains and the game of the first game contract is called to participate in interface to participate in respectively on first parallel chain First game;
The first game contract of the first game is sent to corresponding main chain node, for the first parallel chain each node respectively from right The main chain node answered obtains and executes the first game contract of the first game, each verifying node of first parallel chain is beaten respectively It wraps the first block information of the first block and is sent to corresponding main chain node for recording first block information to institute It states on main chain to know together to first block;Wherein, first block information includes the first of first game The implementing result of game contract.
2. the method according to claim 1, wherein the first game contract is also configured with game over and connects Mouthful, the game over interface is used to obtain and call for first game terminal to generate game over transaction, the trip Play is closed the trade configured at least one of following: rule is provided in game over triggering rule, game result decision rule, reward.
3. according to the method described in claim 2, it is characterized in that, the first game contract is also configured with several regular moulds Plate, the rule template are used to obtain and call for first game terminal at least one of below rapid configuration: the trip Rule is provided in end trigger of playing rule, the game result decision rule, the reward.
4. according to the method in claim 2 or 3, which is characterized in that further include:
The rule configuration that first game is disposed on first parallel chain examines contract;
Wherein, the rule configuration examines that contract is at least one of following for examining: the game over triggering rule, the trip Rule is provided in result judgement of playing rule, the reward, and generation examination result information is simultaneously sent to corresponding main chain node, for the Each node of one parallel chain obtain and execute from corresponding main chain node respectively examination result information, first parallel chain it is each Verifying node is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by firstth area Block message record on the main chain to know together to first block, so that second game terminal obtains for ginseng It examines;Wherein, first block information includes the examination result information.
5. method according to claim 1-4, which is characterized in that further include:
Send the first game creation transaction, the first game participate in business, game over transaction and rule configuration examine contract to pair The main chain node answered, so that each node of the first parallel chain is obtained from corresponding main chain node respectively and executes the first game creation Transaction, the first game are participated in business, game over transaction and rule configuration examine contract, each verifying section of first parallel chain Point is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by first block information To know together to first block on record to the main chain;Wherein, first block information includes first trip Play creation transaction, the first game are participated in business, game over transaction and rule configuration examine contract;Wherein, the first game creates Generation when transaction is obtained by several first game terminals and calls game beginning interface that the first game is respectively created;First game ginseng It is obtained with transaction by several second game terminals and the game is called to participate in interface and participate in generation when first game respectively.
6. a kind of game dispositions method based on parallel chain, which is characterized in that the described method includes:
Receive the first game contract of the first game, wherein the first game contract of the first game by the first parallel chain node It is disposed on the first parallel chain, so that each node of the first parallel chain is obtained from corresponding main chain node respectively and executes the first trip The first block information that first game contract of play, each verifying node of first parallel chain are packaged the first block respectively is concurrent Send to corresponding main chain node for by first block information record on the main chain to be carried out to first block Common recognition;Wherein, first block information includes the implementing result of the first game contract of first game;
Receive, record and know together first block and its information;
Wherein, the first game contract of the first game is configured with game beginning interface, so that several first game terminals obtain simultaneously Call game beginning interface that the first game is respectively created;
First game contract of the first game is also configured with game and participates in interface, so that several second game terminals obtain and call The game participates in interface and participates in first game respectively.
7. according to the method described in claim 6, it is characterized in that, the first game contract be configured with several rule templates, The rule template is used to obtain and call for first game terminal at least one of below rapid configuration: the game knot Rule is provided in beam triggering rule, the game result decision rule, the reward.
8. according to the method described in claim 6, it is characterized in that, the first game contract be configured with game over interface, The game over interface is used to obtain and call for first game terminal to generate game over transaction, the game knot Beam transaction is configured at least one of following: rule is provided in game over triggering rule, game result decision rule, reward.
9. method according to claim 7 or 8, which is characterized in that further include:
Examination result information is received, so that each node of the first parallel chain obtains the first game from corresponding main chain node respectively Examination result information, first parallel chain each verifying node be packaged the first block information of the first block respectively and be sent to Corresponding main chain node for by first block information record on the main chain to know together to first block, So that second game terminal is obtained to refer to;Wherein, first block information includes the examination of first game Result information;
Wherein, the examination result information is configured by rule examines that contract is at least one of following for examining: the game over Triggering rule, the game result decision rule, the reward is provided rule and is generated, and is sent to master link point;The rule It then configures and examines that contract is disposed on the first parallel chain by the node of the first parallel chain.
10. according to the method described in claim 9, it is characterized by further comprising:
Receive the first game creation transaction, the first game participate in business, game over transaction and rule configuration examine contract to pair The main chain node answered, so that each node of the first parallel chain is obtained from corresponding main chain node respectively and executes the first game creation Transaction, the first game are participated in business, game over transaction and rule configuration examine contract, each verifying section of first parallel chain Point is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by first block information To know together to first block on record to the main chain;Wherein, first block information includes first trip Play creation transaction, the first game participate in business, game over transaction and criteria review contract;Wherein, the first game creation transaction Generation when being obtained by several first game terminals and calling game beginning interface that the first game is respectively created, and it is flat to be sent to first The node of row chain;First game participates in business to be obtained by several second game terminals and the game is called to participate in interface to be joined respectively It is generated when with first game, and is sent to the node of the first parallel chain.
11. a kind of method for gaming based on parallel chain characterized by comprising
Game beginning transaction is received to create the first game on the first parallel chain, wherein game beginning transaction is by first Game terminal obtain and call the game beginning interface for the first game contract being deployed on the first parallel chain generate and send to The node of first parallel chain;
Several game are received to participate in business with the participant of determination first game;Wherein, the game is participated in business by Two game terminals obtain after obtaining the information of first game by first parallel chain and first game are called to close Game about participates in interface and generates and sends to the node of first parallel chain;
Game result is generated according to several rules of pre-configuration, game beginning transaction, several game for sending the first game participate in Transaction and game result are to corresponding main chain node, so that each node of the first parallel chain is obtained from corresponding main chain node respectively And the game beginning for executing the first game is traded, several game are participated in business and game result, first parallel chain is respectively tested Card node is packaged the first block information of the first block respectively and is sent to corresponding main chain node for by first block Information record on the main chain to know together to first block;Wherein, first block information includes described Game beginning transaction of one game, several game are participated in business and game result.
12. according to the method for claim 11, which is characterized in that described to generate game knot according to several rules of pre-configuration Fruit, the game result for sending the first game include: to corresponding main chain node
Virtual machine by running first game monitors block height or the time of first parallel chain, and described in judgement Whether block height or the time trigger the game over triggering rule of pre-configuration:
Be, then according to the game result decision rule of pre-configuration generate game result, and send the first game game result to Corresponding main chain node.
13. according to the method for claim 11, which is characterized in that reception game beginning transaction is in the first parallel chain The first game of upper creation further include:
Receive game over transaction;Wherein, game over transaction is configured at least one of following of first game: trip Rule is provided in end trigger of playing rule, game result decision rule, reward;The game over transaction is whole by first game End obtains and the game over interface of the first game contract is called to generate;
It is described to generate game results according to several rules of pre-configuration, the game result of the first game is sent to corresponding master link Include: on point
Virtual machine by running first game executes the game over transaction and generates game result and send the first trip The game result of play is to corresponding main chain node.
14. according to the method for claim 13, which is characterized in that the first game contract is also configured with several regular moulds Plate, the game over transaction pass through at least one of below the rule template rapid configuration: the game over triggers rule, Rule is provided in the game result decision rule, the reward.
15. method described in 3 or 14 according to claim 1, which is characterized in that further include:
Call the rule configuration of first game to examine that contract is examined at least one of following: the game over triggers Rule is provided in rule, the game result decision rule, the reward, is generated examination result information and is sent to corresponding main chain Nodes records and common recognition, so that each node of the first parallel chain obtains the examination knot of the first game from corresponding main chain node respectively Fruit information obtains for second game terminal to refer to.
16. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors Execute the method as described in any one of claim 1-15.
17. a kind of storage medium for being stored with computer program, which is characterized in that realize when the program is executed by processor as weighed Benefit requires method described in any one of 1-15.
CN201811152693.0A 2018-09-29 2018-09-29 Game deployment method based on parallel chain, game method, game device and storage medium Active CN109395393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811152693.0A CN109395393B (en) 2018-09-29 2018-09-29 Game deployment method based on parallel chain, game method, game device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811152693.0A CN109395393B (en) 2018-09-29 2018-09-29 Game deployment method based on parallel chain, game method, game device and storage medium

Publications (2)

Publication Number Publication Date
CN109395393A true CN109395393A (en) 2019-03-01
CN109395393B CN109395393B (en) 2022-03-04

Family

ID=65465755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811152693.0A Active CN109395393B (en) 2018-09-29 2018-09-29 Game deployment method based on parallel chain, game method, game device and storage medium

Country Status (1)

Country Link
CN (1) CN109395393B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443708A (en) * 2019-07-29 2019-11-12 杭州复杂美科技有限公司 Parallel chain method of commerce, equipment and storage medium
CN110570576A (en) * 2019-09-06 2019-12-13 杭州复杂美科技有限公司 Lottery system, construction method, operation method, equipment and storage medium thereof
CN111478906A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium for parallel chain private transaction
CN111815858A (en) * 2019-04-12 2020-10-23 百度在线网络技术(北京)有限公司 Charging network control method, device, equipment and storage medium based on block chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4728107A (en) * 1986-05-30 1988-03-01 Dvorak Robert E Board game apparatus and method
CN106651303A (en) * 2016-12-02 2017-05-10 北京轻信科技有限公司 Intelligent contract processing method and system based on templates
CN107066893A (en) * 2017-02-28 2017-08-18 腾讯科技(深圳)有限公司 The treating method and apparatus of accounts information in block chain
CN107563761A (en) * 2017-08-26 2018-01-09 复旦大学 Game account management method based on block chain
US20180114403A1 (en) * 2016-10-26 2018-04-26 International Business Machines Corporation Blockchain gaming
CN108241926A (en) * 2017-08-25 2018-07-03 杭州复杂美科技有限公司 Authorize the block chain scheme of common recognition algorithm
CN108305056A (en) * 2018-03-27 2018-07-20 搜游网络科技(北京)有限公司 Data processing method, device based on block chain and block chain meshed network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4728107A (en) * 1986-05-30 1988-03-01 Dvorak Robert E Board game apparatus and method
US20180114403A1 (en) * 2016-10-26 2018-04-26 International Business Machines Corporation Blockchain gaming
CN106651303A (en) * 2016-12-02 2017-05-10 北京轻信科技有限公司 Intelligent contract processing method and system based on templates
CN107066893A (en) * 2017-02-28 2017-08-18 腾讯科技(深圳)有限公司 The treating method and apparatus of accounts information in block chain
CN108241926A (en) * 2017-08-25 2018-07-03 杭州复杂美科技有限公司 Authorize the block chain scheme of common recognition algorithm
CN107563761A (en) * 2017-08-26 2018-01-09 复旦大学 Game account management method based on block chain
CN108305056A (en) * 2018-03-27 2018-07-20 搜游网络科技(北京)有限公司 Data processing method, device based on block chain and block chain meshed network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815858A (en) * 2019-04-12 2020-10-23 百度在线网络技术(北京)有限公司 Charging network control method, device, equipment and storage medium based on block chain
CN110443708A (en) * 2019-07-29 2019-11-12 杭州复杂美科技有限公司 Parallel chain method of commerce, equipment and storage medium
CN110443708B (en) * 2019-07-29 2022-03-04 杭州复杂美科技有限公司 Parallel chain transaction method, device and storage medium
CN110570576A (en) * 2019-09-06 2019-12-13 杭州复杂美科技有限公司 Lottery system, construction method, operation method, equipment and storage medium thereof
CN110570576B (en) * 2019-09-06 2021-05-11 杭州复杂美科技有限公司 Lottery system, construction method, operation method, equipment and storage medium thereof
CN111478906A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium for parallel chain private transaction
CN111478906B (en) * 2020-04-08 2022-03-04 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium for parallel chain private transaction

Also Published As

Publication number Publication date
CN109395393B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN109395393A (en) Game dispositions method and method for gaming, equipment and storage medium based on parallel chain
CN109395394A (en) Predict guessing game dispositions method and method for gaming, equipment and storage medium
US20140051506A1 (en) Gamification for Enterprise Architectures
CN109481936A (en) Block chain accounting node selection method and device and computer readable storage medium
CN109510831A (en) Real-time game method, equipment and storage medium
McCorry et al. You sank my battleship! a case study to evaluate state channels as a scaling solution for cryptocurrencies
KR20010025356A (en) According to the result of a game(victory or defeat), Game Server Management System costing differently gamers
KR20170113548A (en) A method and system for gaming revenue
WO2013161741A1 (en) Game system, control method to be used therein, and computer program
CN109345238A (en) A kind of card game method and system, equipment and storage medium
CN109646934A (en) Ten thirty method for gaming of one kind, equipment and storage medium
CN106570388A (en) Method and device for processing interactive application
CN106373014A (en) Method and apparatus for assessing health degree of application
CN110175178A (en) A kind of method of data processing, node device and system
Chakraborty et al. Trading on a Rigged Game: Outcome Manipulation in Prediction Markets.
JP2021115455A (en) Game system, computer program used therefor and control method
CN109432780A (en) Game dispositions method and method for gaming, equipment and storage medium based on parallel chain
CN109395392A (en) Predict guessing game dispositions method and method for gaming, equipment and storage medium
JP2024009289A (en) Game server, game program, and information processing method
Clark et al. Research perspectives and challenges for bitcoin and cryptocurrencies
CN109316752A (en) Game dispositions method, method for gaming, equipment and storage medium
CN109316754A (en) Flight chess method for gaming, equipment and storage medium
Simon et al. How coopetition influences the development of a dominant design: evidence from the pinball industry
Bruschi et al. A Decentralized Approach to Award Game Achievements
JP6744675B1 (en) Game system, computer program used therefor, and control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant