Game rule changing method, device and medium based on block chain

文档序号:1278933 发布日期:2020-08-28 浏览:21次 中文

阅读说明:本技术 一种基于区块链的游戏规则更改方法、设备及介质 (Game rule changing method, device and medium based on block chain ) 是由 李金辉 肖雪 王伟兵 李照川 罗森 于 2020-04-09 设计创作,主要内容包括:本申请公开了一种基于区块链的游戏规则更改方法、设备及介质,包括:游戏开发节点将游戏运行在所有玩家节点;游戏开发节点在更改游戏规则时,将游戏规则的更改内容广播至所有玩家节点,以便玩家节点根据游戏规则的更改内容进行投票;游戏开发节点若收到预设数量的游戏节点同意投票时,根据游戏规则的更改内容对游戏规则进行更改,并将更改的游戏运行在所有玩家节点。本申请实施例通过将游戏运行在所有玩家节点,使得游戏不容易被游戏开发节点篡改;并且,游戏开发节点在更改游戏规则时,需要玩家节点的同意,使得玩家节点也参与到游戏的开发上,有效避免了游戏开发节点一家独大的局面,尽可能的减少了玩家节点的损失。(The application discloses a method, equipment and medium for changing game rules based on a block chain, which comprises the following steps: the game development node runs the game on all the player nodes; when the game development node changes the game rule, the change content of the game rule is broadcasted to all player nodes, so that the player nodes vote according to the change content of the game rule; and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all the player nodes. According to the method and the device, the game is operated at all player nodes, so that the game is not easily tampered by the game development nodes; moreover, when the game development node changes the game rule, the game development node needs the agreement of the player node, so that the player node also participates in the game development, the unique situation of the game development node is effectively avoided, and the loss of the player node is reduced as much as possible.)

1. A method for changing game rules based on a blockchain, the method comprising:

the game development node runs the game on all the player nodes;

when a game rule is changed, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes can vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

2. The method of claim 1, wherein if the game development node does not receive a predetermined number of game nodes to agree with the vote, the method further comprises:

and the game development node changes the game rule according to the change content of the game rule, runs the changed game on the player node which agrees with the vote, and runs the unchanged game on the player node which does not agree with the vote.

3. The method for changing game rules based on blockchains according to claim 1, wherein the changing the game rules according to the changed content of the game specifically includes:

and the game development node changes the game rules through an intelligent contract according to the change content of the game.

4. The blockchain-based game rule changing method according to claim 1, wherein the game development node runs a game before all player nodes, the method further comprising:

the game development node uploads the core mechanism of the game to a blockchain.

5. The blockchain-based game rule changing method according to claim 1, wherein the game development node runs a game before all player nodes, the method further comprising:

the game development nodes establish a game community in a blockchain so as to enable the nodes of the game community to achieve consensus, wherein the nodes of the game community comprise all player nodes and an opening node.

6. The blockchain-based game rule changing method according to claim 1, wherein the game development node runs a game after all player nodes, the method further comprising:

and when the player node completes the preset task, the game development node sends corresponding rewards to the player node.

7. The blockchain-based game rule changing method according to claim 1, wherein the game development node runs a game after all player nodes, the method further comprising:

the game development node receives the opinions proposed by the player nodes and changes the game according to the opinions proposed by the player nodes.

8. The blockchain based game rule changing method according to claim 1, wherein a game development node runs a game before all player nodes, the method further comprising:

the game development node presets the proportion of the draw when the player node conducts the transaction, and receives the draw of the player node after the player node completes the transaction.

9. A blockchain-based game rule modification apparatus, the apparatus comprising:

at least one processor; and the number of the first and second groups,

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the at least one processor to:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

10. A blockchain-based game rule modification medium having stored thereon computer-executable instructions configured to:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for changing game rules based on a blockchain.

Background

In the prior art, game players and game developers are often standing opposite to each other, the game developers change game rules freely for their own benefits, and the game developers may hurt the benefits of most of the players, further causing dissatisfaction of most of the game players and losing a great number of game players if the activities are serious.

Disclosure of Invention

In view of this, embodiments of the present application provide a method, an apparatus, and a medium for changing game rules based on a block chain, so as to solve the problem in the prior art that a game developer changes game rules at will for his own benefit, thereby hurting the benefits of most players.

The embodiment of the application adopts the following technical scheme:

the embodiment of the application provides a game rule changing method based on a block chain, which comprises the following steps:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

Further, if the game development node does not receive agreement of the voting from the preset number of game nodes, the method further includes:

and the game development node changes the game rule according to the change content of the game rule, runs the changed game on the player node which agrees with the vote, and runs the unchanged game on the player node which does not agree with the vote.

Further, the changing the game rule according to the changed content of the game specifically includes:

and the game development node changes the game rules through an intelligent contract according to the change content of the game.

Further, the game development node runs the game before all the player nodes, and the method further comprises:

the game development node uploads the core mechanism of the game to a blockchain.

Further, the game development node runs the game before all the player nodes, and the method further comprises:

the game development nodes establish a game community in a blockchain so as to enable the nodes of the game community to achieve consensus, wherein the nodes of the game community comprise all player nodes and an opening node.

Further, the game development node runs the game after all the player nodes, and the method further comprises:

and when the player node completes the preset task, the game development node sends corresponding rewards to the player node.

Further, the game development node runs the game after all the player nodes, and the method further comprises:

the game development node receives the opinions proposed by the player nodes and changes the game according to the opinions proposed by the player nodes.

Further, the game development node runs the game before all the player nodes, and the method further comprises:

the game development node presets the proportion of the draw when the player node deals, and receives the draw of the player node after the player node finishes dealing.

The embodiment of the present application further provides a game rule changing device based on a blockchain, where the device includes:

at least one processor; and the number of the first and second groups,

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the at least one processor to:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

The embodiment of the application also provides a game rule changing medium based on the blockchain, which stores computer executable instructions, wherein the computer executable instructions are set as:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: according to the method and the device, the game is operated at all player nodes, so that the game is not easily tampered by the game development nodes; moreover, when the game development node changes the game rule, the game development node needs the agreement of the player node, so that the player node also participates in the game development, the unique situation of the game development node is effectively avoided, and the loss of the player node is reduced as much as possible.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

fig. 1 is a schematic flowchart of a method for changing game rules based on a blockchain according to an embodiment of the present disclosure;

fig. 2 is a flowchart illustrating a method for changing game rules based on a blockchain according to a second embodiment of the present disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

Fig. 1 is a schematic flowchart of a method for changing game rules based on a blockchain according to an embodiment of the present specification, which specifically includes:

step S101, the game development node runs the game on all the player nodes.

In step S101 of the embodiment of the present specification, the game development node may be a game developer, and the player node may be a game player. Both the game development node and the player node are on the blockchain.

Step S102, when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes, so that the player nodes vote according to the change content of the game rule.

In step S102 in this embodiment of the present specification, the game rule may be an activity of the game, and may also be a core mechanism of the game, for example, the core mechanism of the game may be a level of a character in the game, a skill of the character in the game, and the like.

And step S103, if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated on all the player nodes.

In step S103 of this embodiment of the present specification, a preset number may be set according to the online number of the current player node, or may be set according to the number of all player nodes, where the result of the voting includes approval, disapproval, and neutrality, the neutrality includes non-participation in the voting and a neutral ticket, and when how many votes of approval account for the neutral ticket is preset, the game development node may change the game rule according to the change content of the game rule, otherwise, the game development node is not authorized to change the game rule.

According to the method and the device, the game is operated at all player nodes, so that the game is not easily tampered by the game development nodes; moreover, when the game development node changes the game rule, the game development node needs the agreement of the player node, so that the player node also participates in the game development, the unique situation of the game development node is effectively avoided, and the loss of the player node is reduced as much as possible.

Correspondingly to the embodiment, fig. 2 is a schematic flow chart of a game rule changing method based on a blockchain provided in the second embodiment of the present specification, and specifically includes:

step S201, the game development node uploads the core mechanism of the game to the blockchain.

In step S201 of the embodiment of the present specification, for example, the core mechanism of the game may be the level of a character in the game, the skill of the character in the game, and the like.

In step S202, the game development node runs the game on all player nodes.

In step S202 of the embodiment of the present specification, the game development node may be a game developer, and the player node may be a game player. Both the game development node and the player node are on the blockchain.

Step S203, when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes, so that the player nodes vote according to the change content of the game rule.

In step S203 in this embodiment of the present specification, the game rule may be an activity of the game, or may be a core mechanism of the game, for example, the core mechanism of the game may be a level of a character in the game, a skill of the character in the game, and the like.

And step S204, if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated on all the player nodes.

In step S204 of this embodiment of the present specification, a preset number may be set according to the online number of the current player node, or may be set according to the number of all player nodes, where the result of the voting includes approval, disapproval, and neutrality, the neutrality includes non-participation in the voting and a neutral ticket, and when what proportion of the approved tickets is occupied may be preset, the game development node may change the game rule according to the change content of the game rule, otherwise, the game development node is not authorized to change the game rule.

Further, if the game development node does not receive agreement of the voting from the preset number of game nodes, the method further includes:

and the game development node changes the game rule according to the change content of the game rule, runs the changed game on the player node which agrees with the vote, and runs the unchanged game on the player node which does not agree with the vote.

Further, the changing the game rule according to the changed content of the game specifically includes:

and changing the game rules through an intelligent contract according to the changed content of the game.

Further, the game development node runs the game before all the player nodes, and the method further comprises:

the game development nodes establish a game community in the block chain, so that the nodes of the game community can achieve consensus, the benefits of the game development nodes and the player nodes are consistent, and the player nodes are promoted to maintain the balance of the game spontaneously. Wherein the nodes of the game community include all player nodes and start nodes.

Further, the game development node runs the game after all the player nodes, and the method further comprises:

and when the player node completes the preset task, the game development node sends corresponding rewards to the player node. The predetermined task may include a predetermined online duration, passing a particular copy.

Further, the game development node runs the game after all the player nodes, and the method further comprises:

the game development node receives the opinions proposed by the player nodes and changes the game according to the opinions proposed by the player nodes. The game development node may consider the opinions of the player nodes, and if the game development node considers that the opinions can better improve the game environment, step S203 may be performed.

Further, the game development node runs the game before all the player nodes, and the method further comprises:

the proportion of the draw in the player node transaction is preset, and the draw of the player node is received after the player node completes the transaction. It can be understood herein that the game development node is a novel earning mechanism, and in addition to the revenue of the traditional card-opening package, the game development node can draw in the transaction process of the game node in the above manner.

According to the method and the device, the game is operated at all player nodes, so that the game is not easily tampered by the game development nodes; moreover, when the game development node changes the game rule, the game development node needs the agreement of the player node, so that the player node also participates in the game development, the unique situation of the game development node is effectively avoided, and the loss of the player node is reduced as much as possible.

The embodiment of the present application further provides a game rule changing device based on a blockchain, where the device includes:

at least one processor; and the number of the first and second groups,

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the at least one processor to:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

The embodiment of the application also provides a game rule changing medium based on the blockchain, which stores computer executable instructions, wherein the computer executable instructions are set as:

the game development node runs the game on all the player nodes;

when the game development node changes the game rule, the game development node broadcasts the change content of the game rule to all player nodes so that the player nodes vote according to the change content of the game rule;

and if the game development nodes receive the votes agreed by the preset number of game nodes, the game rules are changed according to the change content of the game rules, and the changed games are operated at all player nodes.

In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.

The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.

The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.

It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.

The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种资源规范性检测及优化方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类