A target task control method, device, electronic device and storage medium
By dynamically calculating the electronic resource allocation ratio in the probability game, combining the probability of events, and using a server-side control method, the poor interaction and uneven resource allocation problems caused by manual experience configuration in the existing technology are solved, and the automated control of multiple rounds of target tasks and the improvement of player interaction is achieved.
Patent Information
- Application Number
- CN201910978541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-15
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2040-02-23
AI Technical Summary
In the prior art, the numerical design of probability games relies on manual experience, resulting in poor interactivity, the proportion of electronic resource allocation is greatly disturbed by human factors, cannot be controlled as a whole, and cannot be applied to multiple rounds of target tasks.
By dynamically calculating the electronic resource allocation ratio at each participation stage, combining the probability of events occurring, the probability and resource allocation ratio of all events in the target task are automatically determined, and a server-side control method is adopted to reduce manual pre-configuration.
It realizes automatic control of multiple rounds of target tasks, improves the playability of the game and player interactivity, dynamically calculates the allocation ratio of electronic resources, and reduces human interference.
Smart Images

Figure CN112657172B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a target task control method, apparatus, electronic device, and storage medium. Background Art
[0002] In practice, there are some target tasks based on random events, and it is necessary to design the allocation ratio of electronic resources for each random event during the process. For example, the target task is a probability game, which represents a game based on random events, and the occurrence of each event has a certain probability.
[0003] In the prior art, the numerical design of probability games is predefined by business personnel based on experience. Based on a single round of pre-configured fixed events, the probability and the allocation ratio of electronic resources for each event are configured, and then the manually set values are encapsulated into the probability game. However, in this way, based on the single fixed-configured events, the interactivity with players is poor, and the setting of the probability and the allocation ratio of electronic resources for a single event are both set according to experience, which is greatly interfered by human factors, and the overall control of the allocation ratio of electronic resources cannot be achieved. Summary of the Invention
[0004] Embodiments of this application provide a target task control method, apparatus, electronic device, and storage medium to achieve automatic control of target tasks.
[0005] The specific technical solutions provided by the embodiments of this application are as follows:
[0006] An embodiment of this application provides a target task control method, including:
[0007] In each participation stage of the target task, for each set event in the target task, obtain the allocation ratio of electronic resources when each set event occurs in this participation stage, and send it to the client for display, and receive the electronic resources input for the selected event forwarded by the client, where the target task includes multiple participation stages and an end stage, the probability of each set event occurring in each subsequent participation stage is associated with the occurrence of each event in the adjacent previous participation stage, and the allocation ratio of electronic resources when each event occurs is related to the probability of each event occurring;
[0008] At the end stage of the target task, determine the judgment result of whether each set event occurs. If it is determined that the judgment result of the selected event is that it occurs, then according to the electronic resource allocation ratio when the selected event occurs in the participation stage corresponding to the input of the electronic resource for the selected event, and the input electronic resource, perform allocation control on the input electronic resource, where the judgment result of whether each set event occurs is determined by the values of the random variables associated in the participation stage and the end stage.
[0009] Another embodiment of the present application provides a target task control device, including:
[0010] A first processing module, configured to, in each participation stage of the target task, for each set event in the target task, obtain the electronic resource allocation ratio when each set event occurs in this participation stage, and send it to the client for display, and receive the electronic resource input for the selected event forwarded by the client, where the target task includes multiple participation stages and an end stage, the probability of each set event occurring in each subsequent participation stage is associated with the occurrence of each event in the previous adjacent participation stage, and the electronic resource allocation ratio when each event occurs is related to the probability of each event occurring;
[0011] A second processing module, configured to, at the end stage of the target task, determine the judgment result of whether each set event occurs. If it is determined that the judgment result of the selected event is that it occurs, then according to the electronic resource allocation ratio when the selected event occurs in the participation stage corresponding to the input of the electronic resource for the selected event, and the input electronic resource, perform allocation control on the input electronic resource, where the judgment result of whether each set event occurs is determined by the values of the random variables associated in the participation stage and the end stage.
[0012] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of any of the above target task control methods are implemented.
[0013] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above target task control methods are implemented.
[0014] In the embodiments of the present application, for a target task including multiple participation stages and an end stage, in each participation stage, for each set event in the target task, the electronic resource allocation ratio when each set event occurs can be obtained and sent to the client for display. In each participation stage, the electronic resources input for the selected event forwarded by the client can be received. In the end stage, the judgment result of whether each set event occurs can be determined, and according to the judgment result, combined with the electronic resource allocation ratio of the corresponding stage, the allocation control of the input electronic resources can be performed. In this way, in each participation stage, the electronic resource allocation ratio can be dynamically calculated according to the occurrence of events, which can be applied to multi-stage target tasks, does not require manual experience configuration, realizes the automatic control of the target task, and also improves the playability of the target task and the interactivity of participating players. Description of the Drawings
[0015] Figure 1 It is a schematic diagram of the configuration principle of a probability game in the prior art;
[0016] Figure 2 It is a schematic diagram of the application architecture of the target task control method in the embodiments of the present application;
[0017] Figure 3 It is a flowchart of the target task control method in the embodiments of the present application;
[0018] Figure 4 It is a flowchart of another target task control method in the embodiments of the present application;
[0019] Figure 5 It is a schematic diagram of the interface effect of the probability game on the client in the embodiments of the present application;
[0020] Figure 6 It is a structural diagram of the target task control device in the embodiments of the present application;
[0021] Figure 7 It is a structural diagram of the terminal device in the embodiments of the present application. Detailed Embodiments
[0022] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0023] For the convenience of understanding the embodiments of the present application, several concepts will be briefly introduced below:
[0024] Event: A subset of the sample space of a random experiment. In the embodiments of the present application, an event can represent an object winning event and an object losing event.
[0025] Probability: A real number defined on the sample space that satisfies the probability conditions, which can be represented by P(A), P(B), P(C), …… The larger the probability value, the greater the likelihood of the event occurring.
[0026] Conditional probability: It refers to the probability of event A occurring under the condition that another event B has already occurred. Conditional probability is expressed as: P(A|B), that is, "the probability of A under the condition of B", and the conditional probability can also be calculated using a decision tree.
[0027] Joint probability distribution: The probability distribution of a random event composed of two or more random variables.
[0028] Electronic resource allocation ratio: It represents the revenue value of a participating player's 1-unit investment when an event occurs, which can be represented by O(A), O(B), O(C), …… The larger the electronic resource allocation ratio, the greater the revenue obtained by the participating player's investment when the event occurs.
[0029] Control parameter: It represents the ratio of revenue to investment in a risk-free situation, controlled within [0, 1]. The control parameter in the embodiments of the present application is represented by F.
[0030] In practice, there are many target tasks based on random events. For example, the target task is a probability game, and a probability game represents a game based on random events.
[0031] In the prior art, the numerical design of probability games is predefined by business personnel based on experience. For example, referring to Figure 1 As shown, it is the schematic diagram of the configuration of a probability game in the prior art. Manually configure fixed events based on a single round in advance, and configure the probability and electronic resource allocation ratio of each event, and then encapsulate the manually set values into the probability game. However, in this way, the setting of the values is set by relevant personnel based on experience, lacking theoretical support, being greatly interfered by human factors, and only being based on the events configured fixedly for a single time. It cannot be realized for multi-round probability games, and only the probability and electronic resource allocation ratio of a single event are set, and the overall electronic resource allocation ratio cannot be controlled, so the overall revenue situation of the platform cannot be guaranteed.
[0032] Therefore, in view of the above problems, an object task control method is provided in an embodiment of the present application, which can control multi-round object tasks, that is, the object task includes multiple participation stages and an end stage. In each participation stage of the object task, for each set event in the object task, the electronic resource allocation ratio when each set event occurs in this participation stage can be obtained and sent to the client for display. It can also receive the electronic resources input for the selected event forwarded by the client, so as to determine the judgment result of whether each set event occurs in the end stage of the object task. According to the judgment result and combined with the electronic resource allocation ratio when each set event occurs in each participation stage, the input electronic resources can be allocated and controlled. In this way, the electronic resource allocation ratio can be dynamically calculated in each participation stage. The electronic resource allocation ratio is related to the probability of event occurrence, and the probabilities of event occurrence in each participation stage are correlated. The probabilities of all events occurring in the object task and the corresponding electronic resource allocation ratios can be automatically determined without manual pre-configuration, and it can be applied to multi-round object tasks, such as multi-round probability games, realizing the automatic control of the object task.
[0033] Refer to Figure 2 As shown, it is a schematic diagram of the application architecture of the object task control method in an embodiment of the present application, including a client 100 and a server 200.
[0034] The client 100 can be installed on any intelligent device terminal such as a smart phone, a tablet computer, a portable personal computer, etc. The client 100 is an object task client, and the user can run the object task on this client 100 and participate in the object task. For example, if the object task is a probability game, then the client 100 can be a probability game client. Of course, in the embodiment of the present application, it is not limited to the object task being a probability game, and it can also be other tasks based on random events.
[0035] The server 200 can provide various network services for the client 100. Specifically, the server 200 may include a processor 210 (Central Processing Unit, CPU), a memory 220, an input device 230, and an output device 240, etc. The input device 230 may include a keyboard, a mouse, a touch screen, etc., and the output device 240 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.
[0036] The memory 220 may include a read-only memory (ROM) and a random access memory (RAM), and provide program instructions and data stored in the memory 220 to the processor 210. In an embodiment of the present application, the memory 220 may be used to store programs of any one of the target task control methods in the embodiments of the present application.
[0037] By invoking the program instructions stored in the memory 220, the processor 210 is configured to execute the steps of any one of the target task control methods in the embodiments of the present application according to the obtained program instructions.
[0038] It should be noted that the target task control method in the embodiments of the present application is mainly executed by the server 200. For example, in an embodiment of the present application, a task interface of the target task may be displayed on the client 100. During the target task process, at each participating stage, the server 200 may determine the electronic resource allocation ratio when each set event occurs and send it to the client 100. The client 100 displays the electronic resource allocation ratio on the task interface. Furthermore, the participating players can refer to the electronic resource allocation ratios of the set events, select an event and input electronic resources at any participating stage. The client 100 forwards the input electronic resources to the server 200. At the end stage, the server 200 may determine the judgment results of whether each set event has occurred, and perform allocation control on the electronic resources input by the participating players. The judgment results may be displayed on the task interface of the client 100.
[0039] Among them, the server 200 may be a single server, a server cluster composed of several servers, or a cloud computing center.
[0040] Client 100 is connected to server 200 via the Internet to enable communication between them. Optionally, the above Internet uses standard communication technologies and / or protocols. The Internet is usually the Internet, but can also be any network, including but not limited to any combination of local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, wired or wireless network, private network or virtual private network. In some embodiments, technologies and / or formats including HyperText Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can be used to encrypt all or some of the links. In other embodiments, customized and / or proprietary data communication technologies can also be used to replace or supplement the above data communication technologies.
[0041] It should be noted that the application architecture diagram in the embodiments of this application is for more clearly illustrating the technical solutions in the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application, nor is it limited to probability games. For other application architectures and business applications, the technical solutions provided in the embodiments of this application are equally applicable to similar problems. In the following embodiments of this application, the target task control method is schematically described by taking the application architecture shown in Figure 2 as an example.
[0042] Based on the above embodiments, the target task control method in the embodiments of this application is described below. Refer to Figure 3 shown, which is the flowchart of the target task control method in the embodiments of this application. The method includes:
[0043] Step 300: In each participation stage of the target task, for each set event in the target task, obtain the electronic resource allocation ratio when each set event occurs in this participation stage, and send it to the client for display, and receive the electronic resources input for the selected event forwarded by the client.
[0044] Among them, the target task includes multiple participation stages and an end stage. The probability of occurrence of each set event in each subsequent participation stage is associated with the occurrence of each event in the previous adjacent participation stage. The electronic resource allocation ratio when each event occurs is related to the probability of occurrence of each event.
[0045] Among them, for each set event in the target task, obtaining the electronic resource allocation ratio when each set event occurs in this participation stage specifically includes:
[0046] S1, 1) In the initial first participation stage of the target task, according to the value sets of each random variable, respectively determine the combinations of the values of each random variable in each participation stage and the end stage except the initial first participation stage when each set event occurs, and according to the probability distributions of the values of each random variable, respectively calculate the probabilities of the combinations of the values of each random variable, and determine the joint probability of the calculated probabilities as the probability of occurrence of the corresponding set event.
[0047] 2) In each participation stage of the target task except the initial first participation stage, respectively determine the conditional probability of occurrence of each set event based on the determined values of each random variable in this participation stage and the previous participation stage as the probability of occurrence of the corresponding set event.
[0048] S2. According to the probabilities of occurrence of each set event and the preset association relationship between probability and electronic resource allocation ratio, respectively determine the electronic resource allocation ratio when each set event occurs.
[0049] In the embodiment of the present application, the target task is a task based on random events. In each participation stage of the target task, the client can be allowed to select an event, input electronic resources, and can dynamically and real-time calculate the electronic resource allocation ratio when each set event occurs in each participation stage without pre-manual design, which is more accurate and reliable.
[0050] Step 310: In the end stage of the target task, determine the judgment result of whether each set event occurs. If it is determined that the judgment result of the selected event is occurrence, then according to the electronic resource allocation ratio when the selected event occurs in the participation stage corresponding to the input electronic resources for the selected event, and the input electronic resources, perform allocation control on the input electronic resources.
[0051] Among them, the judgment result of whether each set event occurs is determined by the values of each random variable associated in the participation stage and the end stage.
[0052] Furthermore, if it is determined that the judgment result of the selected event is non-occurrence, then deduct the input electronic resources.
[0053] In this way, in the embodiments of the present application, during each participation stage of the target task, the electronic resource allocation ratio when each preset event occurs can be determined, and the input electronic resources can also be received. Thus, at the end stage of the target task, the judgment result of whether each preset event occurs can be determined. According to the judgment result and in combination with the electronic resource allocation ratio when each preset event occurs in each participation stage, the allocation control of the input electronic resources can be performed. The electronic resource allocation ratio can be dynamically calculated in each participation stage by combining the events occurring in each participation stage, without manual pre-configuration, which is more objective and can be applied to target tasks including multiple rounds, improving the interactivity and playability and realizing the automatic control of the target task.
[0054] Based on the above embodiments, the following uses a specific application scenario for illustration. Taking the target task as a probability game as an example, refer to Figure 4 As shown, it is a flowchart of another target task control method in the embodiments of the present application. The method includes:
[0055] Step 400: In each participation stage of the probability game, for each preset event in the probability game, obtain the electronic resource allocation ratio when each preset event occurs in this participation stage, and send it to the client for display.
[0056] Among them, the probability game includes multiple participation stages and an end stage. The probability of each preset event occurring in each subsequent participation stage is associated with the occurrence of each event in the adjacent previous participation stage. The electronic resource allocation ratio when each event occurs is related to the probability of each event occurring.
[0057] When executing step 400, it specifically includes:
[0058] S1. In each participation stage of the probability game, for each preset event in the probability game, obtain the electronic resource allocation ratio when each preset event occurs in this participation stage.
[0059] Among them, when obtaining the electronic resource allocation ratio, it specifically includes:
[0060] S1.1. Calculate the probability.
[0061] There may be different calculation methods in different stages. Specifically:
[0062] The first method: (1) In the initial first participation stage of the probability game, according to the value sets of each random variable, respectively determine the combinations of the values of each random variable in each participation stage and the end stage except the initial first participation stage when each preset event occurs.
[0063] (2) According to the probability distributions of the values of each random variable, calculate the probabilities of the combinations of the values of each random variable respectively, and determine the joint probability of the calculated probabilities as the probability of the corresponding set event occurring.
[0064] For the first participation stage, at this stage, the virtual players have not made throws yet. Therefore, when predicting the probabilities of the occurrence of each set event at this time, it is calculated based on the combination of the three throws. For example, if there are three virtual players A, B, and C, then if A finally wins, the sum of A's three values should be not less than the sum of B's three values, and the sum of A's three values should be not less than the sum of C's three values. The enumeration method can be used to determine all the combination of situations that satisfy A's winning, and calculate the probability of each combination. The sum of the probabilities of each combination is the final probability of A's winning.
[0065] The second method: In each participation stage of the probability game except the initial first participation stage, determine the conditional probability of the occurrence of each set event based on the determined values of each random variable in this participation stage and the previous participation stage respectively, as the probability of the corresponding set event occurring.
[0066] That is, for each participation stage except the first participation stage, there are already throwing results in these stages, that is, the random variables already have determined values. Therefore, when calculating the probability of the event occurring, it is the conditional probability based on the already determined values.
[0067] S1.2. According to the probabilities of the occurrence of each set event and the preset correlation relationship between the probability and the electronic resource allocation ratio, determine the electronic resource allocation ratio when each set event occurs respectively.
[0068] Among them, if each set event includes multiple pairs of opposite events, each pair of opposite events is an object winning event and an object losing event. For example, if there are two virtual players A and B, then the set events can be A wins, A loses, B wins, and B loses.
[0069] Then, determining the electronic resource allocation ratio when each set event occurs respectively can include the following two implementation methods:
[0070] The first implementation method: If the set event is an object winning event, then according to the probabilities of the occurrence of each object winning event and the preset first function correlation relationship, determine the electronic resource allocation ratio when each object winning event occurs respectively. Among them, the first function correlation relationship is: Electronic resource allocation ratio = 0.9 / probability + 0.1 * probability.
[0071] In the embodiments of the present application, considering that in a probability game, there may be many combinations of the values of the random variables corresponding to whether each set event occurs, and defining each case separately according to the probability of its occurrence. To avoid the problem that the change in the electronic resource allocation ratio is not significant when the probability is too large, when defining the object win event, the first function correlation relationship for calculating the electronic resource allocation ratio can be: electronic resource allocation ratio = 0.9 / probability + 0.1 * probability. In this way, it can be ensured that the lower the event occurrence probability, the higher the electronic resource allocation ratio, and the expected income of the participating players is less than 1, thereby ensuring that the income of the probability game platform is not affected.
[0072] The second implementation method: If the set event is the object loss event, then according to the probabilities of the occurrence of each object loss event and the preset second function correlation relationship, the electronic resource allocation ratios when each object loss event occurs are determined respectively, where the second function correlation relationship is related to the first function correlation relationship and the preset control parameter, and the preset control parameter is a positive number less than 1.
[0073] In the embodiments of the present application, for the design of the electronic resource allocation ratio for the object loss event, in order to ensure the overall control of the electronic resource allocation, an overall control parameter is introduced. The control parameter is less than 1 and can be set according to requirements, and can control the overall income situation of the probability game platform.
[0074] S2. Send it to the client for display.
[0075] In this way, in the embodiments of the present application, the electronic resource allocation ratios of each set event can be dynamically calculated in each participation stage and sent to the client for display. The participating players can refer to the electronic resource allocation ratios to determine which event to select and how much electronic resource to input, which can also improve the fairness and transparency of the probability game and enhance the trust of the participating players in the probability game.
[0076] Step 410: In each participation stage of the probability game, receive the electronic resources input for the selected event forwarded by the client.
[0077] That is, in the embodiments of the present application, the participating players can select a set event and input the corresponding electronic resources in any participation stage, enhancing the interactivity of the participating players.
[0078] Step 420: In each participation stage and the end stage of the probability game except the initial first participation stage, randomly select a value from the value set corresponding to each random variable, and send the values of each random variable to the client for display.
[0079] Among them, the values in the value set satisfy an arithmetic progression distribution.
[0080] Step 430: At the end stage of the probability game, determine the judgment results of whether each set event occurs, and send the determined judgment results of whether each set event occurs to the client for display.
[0081] Among them, the judgment results of whether each set event occurs are determined by the values of the random variables associated in the participation stage and the end stage.
[0082] Step 440: If it is determined that the judgment result of the selected event is that it occurs, then according to the electronic resource allocation ratio when the selected event occurs in the participation stage corresponding to the input of electronic resources for the selected event, and the input electronic resources, perform allocation control on the input electronic resources.
[0083] Specifically, when performing the allocation control on the input electronic resources in Step 440, it specifically includes: determining the product of the electronic resource allocation ratio and the input electronic resources, and returning the electronic resources of the size of the product to the client.
[0084] That is to say, at the end of the probability game, if the event selected by the participating player through the client occurs, it means that the event selected by the participating player is correct. At this time, when allocating electronic resources to the participating player, determine the participation stage corresponding to the electronic resources input by the participating player, and determine the electronic resource allocation ratio when the selected event occurs in this participation stage. Then multiply the electronic resources input by the participating player by the electronic resource allocation ratio, and the electronic resources of the size of the product are returned to the participating player again.
[0085] For example, in the probability game, there are three participation stages, and there are 4 set events. The electronic resource allocation ratios when each set event occurs obtained in the first participation stage are M11, M12, N11, N12 respectively, the second participation stage is M21, M22, N21, N22, and the third participation stage is M31, M32, N31, N32. Suppose the participating player selects the first set event in the first participation stage and inputs electronic resources R1, and at the same time selects the first set event in the second participation stage and inputs electronic resources R2. If it is determined that the first set event does occur at the end of this probability game, then the size of the electronic resources that should be returned to the participating player is determined as: M11 * R1 + M21 * R1.
[0086] Of course, since the probability game in the embodiments of the present application can support a participating player to select multiple different events at the same time in any participation stage, therefore, after the end, multiply and accumulate according to the corresponding participation stage, the electronic resource allocation ratio in the corresponding participation stage, and the size of the corresponding input electronic resources.
[0087] Step 450: If it is determined that the judgment result of the selected event has not occurred, the input electronic resources are deducted.
[0088] At this time, it will no longer be returned to the client, that is, any electronic resources of the participating player. It can be understood that the participating player has lost all the input electronic resources.
[0089] In this way, in the embodiment of the present application, in each participation stage of the probability game, for each set event in the probability game, the electronic resource allocation ratio when each set event occurs in this participation stage can be obtained and sent to the client for display, and the electronic resources input for the selected event forwarded by the client can be received. Furthermore, in the end stage of the probability game, the judgment result of whether each set event occurs can be determined, and the input electronic resources can be allocated and controlled according to the judgment result, the electronic resource allocation ratio of the corresponding participation stage, and the input electronic resources. In this way, the electronic resource allocation ratio can be dynamically calculated in each participation stage, and combined with the probability of each event occurring, it can be applied to all occurring situations and multi-stage probability games without manual pre-configuration, realizing the automatic control of the probability game and improving the playability of the probability game and the interactivity of the participating players.
[0090] Still taking the target task as an example of a probability game, for the convenience of further understanding the target task control method in the embodiment of the present application, the probability game in the embodiment of the present application will be described below:
[0091] In the embodiment of the present application, it mainly aims at a probability game including multiple stages, that is, including multiple participation stages and an end stage. The participation stage means that the participating player can participate in game interactions in this stage, such as selecting an event and inputting electronic resources, etc. The end stage means that the participating player can no longer participate in game interactions. In the end stage, the final judgment result can be determined, and the electronic resources previously input by the participating player can be allocated and controlled.
[0092] For example, the dice-throwing game needs to be thrown three times in total and includes three virtual players. The rule is that after three throws, finally compare which virtual player has the largest number of points. Then this probability game can include four stages, among which the three participation stages are before throwing, after the first throw, and after the second throw, and one end stage is after three throws. The participating player can predict which virtual player will have the largest number of points or the smallest number of points before throwing, after the first throw, and after the second throw, and input the corresponding electronic resources. And it is also possible to input electronic resources for multiple events or in multiple participation stages without limitation. Since the final result can be obtained after three throws, it is the end stage. In this end stage, the participating player does not need to predict and cannot input electronic resources anymore.
[0093] Further, the embodiments of the present application further include: at the end stage of the probability game, sending the judgment result of whether each set event occurs to the client for display. That is, it can inform the participating players of the final result of the probability game, so that the participating players can know whether the specified event has occurred.
[0094] Moreover, the probability game refers to a game based on random events. The occurrence of each random event has a certain probability. Events that may occur can be preset, such as the object win event and the object loss event. Each set event can be associated with multiple random variables. Specifically, for example, a dice-throwing game includes three virtual players, namely A, B, and C. The rule is that after three throws, the points of the virtual players are compared to find out which one has the largest points. Then the set events can include six, namely A wins, A loses, B wins, B loses, C wins, and C loses. The random variables associated with each set event are the points thrown by each virtual player. Finally, the judgment result of whether each set event occurs is determined according to the values of the points of each virtual player after one throw, two throws, and three throws.
[0095] The probability of each set event occurring in each subsequent participation stage is associated with the occurrence of each event in the previous adjacent participation stage. For example, in the dice-throwing game, in the third participation stage, that is, after the second throw, the probability of each virtual player winning or losing is related to the points of each virtual player after the previous throw and is also related to the result of the throw in this participation stage.
[0096] The purpose of calculating the probability is to determine the electronic resource allocation ratio when each set event occurs. Since the probability of each stage event occurring is different and is related to the previously determined values of the random variables, it is necessary to calculate the electronic resource allocation ratio in real time and dynamically in each participation stage.
[0097] Further, in the embodiments of the present application, when determining the values of the random variables associated with the events in the probability game, a possible implementation manner is specifically provided. In each participation stage and the end stage of the probability game except for the initial first participation stage, a value is randomly selected from the value set corresponding to each random variable, and the values of each random variable are sent to the client for display, where the values in the value set satisfy an arithmetic progression distribution.
[0098] That is, for each possible value of the random variable, the probabilities are the same. Each time, a value can be randomly selected from the value set. Here, the number of values in the value set is not restricted and can be set according to the actual situation of the probability game. For example, in the game of rolling a die, each virtual player has 6 possible outcomes for each roll, namely 1, 2, 3, 4, 5, and 6. That is, the value set corresponding to the points of each virtual player is {1, 2, 3, 4, 5, 6}, and 1, 2, 3, 4, 5, 6 follow an arithmetic progression distribution. This can ensure that the final judgment result is fair and can fairly compare which virtual player has the largest sum of points after three rolls.
[0099] Based on the above embodiments, the following uses a specific application scenario to illustrate the probability game. Taking the probability game as the game of rolling a die as an example, a total of three rolls are required, including three virtual players. The rule is to compare which virtual player has the largest points after three rolls. Then the three participation stages are before the roll, after one roll, and after two rolls, and one end stage is after three rolls. Only the probabilities of the set events and the electronic resource allocation ratios in the three participation stages need to be calculated.
[0100] Specifically, in the embodiments of the present application, the key points in the probability game control method can include two parts, namely probability calculation and electronic resource allocation ratio calculation. Furthermore, based on the probability and the electronic resource allocation ratio, the electronic resources input by the participating players can be allocated and controlled. Therefore, these two parts are described based on this specific scenario.
[0101] First, in the embodiments of the present application, the probability game model can be abstracted into a joint probability distribution model, and each participation stage can be respectively converted into the joint probability distribution of random variables.
[0102] Model abstraction: Assume three virtual players, and the points after each die roll are A i 、B i 、C i , where i ∈ (1, 2, 3), and A i 、B i 、C i all ∈ (1, 2, 3, 4, 5, 6). That is, there are 6 values in the value set of each die roll, and the values of each random variable are independently and identically distributed. That is, p(A i = j) = 1 / 6, p(B i = j) = 1 / 6, p(C i = j) = 1 / 6, j ∈ (1, 2, 3, 4, 5, 6). Respectively use A, B, and C to represent the sum of the points of these three virtual players after three rolls. That is, there are The probabilities of virtual players A, B, and C winning can be respectively represented by p(A win)、p(B win )、p(C win ) The sum of the probability of losing and the probability of winning is 1. Therefore, only the probability of winning is described here, and the probability of losing can be calculated based on the probability of winning.
[0103] Then the virtual player A winning can be expressed as p(A win ) = p(A≥B, A≥C).
[0104] The virtual player B winning can be expressed as p(B win ) = p(B≥A, B≥C).
[0105] The virtual player C winning can be expressed as p(C win ) = p(C≥A, C≥B).
[0106] Then, probability calculation.
[0107] 1) In the first participation stage (i.e., before throwing), taking A winning as an example (the cases of B winning and C winning are similar and will not be described again).
[0108] Then
[0109]
[0110] Based on this formula, it can be known that the probability of the virtual player A winning can be transformed into calculating the joint probability distribution of the independent random variables A1 + A2 + A3 - B1 - B2 - B3 and A1 + A2 + A3 - C1 - C2 - C3.
[0111] Based on this formula, it can be calculated that:
[0112] The virtual player A winning can be expressed as p(A win ) = p(A≥B, A≥C) = 38.85%.
[0113] Similarly, it can be obtained that the virtual player B winning can be expressed as
[0114] p(B win ) = p(B≥A, B≥C) = 38.85%.
[0115] The virtual player C winning can be expressed as p(C win ) = p(C≥A, C≥B) = 38.85%.
[0116] 2) In the second participation stage (i.e., after one throw) and the third participation stage (i.e., after two throws), since there will be known points from the throws, the probability calculation at this time is the conditional probability on the known points. Similarly, taking A winning as an example (the cases of B winning and C winning are similar and will not be described again).
[0117] Using A′ i, B' i , C' i , where \(i\in(1, 2, 3)\) represents the known points after the dice is thrown. Then the conditional probability that the virtual player A wins after the first throw is
[0118]
[0119] In this way, the conditional probability can be converted into the joint probability distribution of \(A_2 + A_3 - B_2 - B_3\) and \(A_2 + A_3 - C_2 - C_3\).
[0120] 3) The third participation stage.
[0121] Referring to the second participation stage, similarly, the conditional probability that the virtual player A wins can be converted into the joint probability distribution of \(A_3 - B_3\) and \(A_3 - C_3\).
[0122] In this way, for the abstract model of the probability game, the probability calculation of each participation stage can be converted into the joint probability of random variables, which can improve the calculation efficiency.
[0123] It should be noted that in the embodiments of the present application, the two probabilities in each participation stage can be calculated in advance by enumeration, compiled into a probability distribution table, and stored. In this way, when the client runs the probability game and needs to call, it can directly query from the pre-calculated probability distribution table, solving the problem of too long time for temporary probability calculation and improving the efficiency. Of course, it is not limited to this method, and it can also be calculated in real time during the operation of the probability game without pre-calculation. The embodiments of the present application do not limit this.
[0124] Then, for the calculation of the electronic resource allocation ratio, still taking the virtual player A as an example, the calculation methods of the electronic resource allocation ratio when the virtual player A wins and loses are respectively described.
[0125] 1) Design when winning the probability. Define the first functional relationship between the probability and the electronic resource allocation ratio: \(O(p)=O(A win ) = 0.9 / p + 0.1*p\), ensuring that the lower the probability of the event occurring, the higher the electronic resource allocation ratio.
[0126] 2) Design when losing. For the design of the electronic resource allocation ratio when not winning, a control parameter needs to be introduced to control the overall platform revenue. For example, assume \(A m , m\in(1, 2,\cdots, N)\) represents the event on the space \(\Omega\). In the embodiments of the present application, it represents the events of A winning and A losing, and \(N = 2\), satisfying But Its electronic resource allocation ratio is denoted as \(O(A m ), then the overall electronic resource allocation control parameter satisfies
[0127] In the embodiments of the present application, there are only two possibilities, namely the events that A wins and A loses, which are represented as A win and Then where F is less than 1.
[0128] For example, F can be set to 0.9. Of course, other requirements can also be set according to the actual situation, as long as it is less than 1. There is no limitation in the embodiments of the present application.
[0129] Thus, the second functional correlation relationship between the probability of losing and the electronic resource allocation ratio can be obtained as:
[0130]
[0131] In this way, by controlling the parameter and setting the control parameter to be less than 1, not only the revenue of the probability game platform is guaranteed, but also the complexity of probability calculation is reduced.
[0132] In the embodiments of the present application, through joint probability calculation, any points of the client virtual player can be mapped to the probability distribution table of the background server to obtain the probability when the event occurs. Then, through the correlation relationship between the electronic resource allocation ratio and the probability, the corresponding electronic resource allocation ratio can be determined for electronic resource allocation control after the probability game ends, realizing the automatic control of the probability game.
[0133] Based on the above application scenario, the display of the game interface on the client side in the probability game control method in the embodiments of the present application will be described from the product implementation side below.
[0134] Refer to Figure 5 As shown, it is a schematic diagram of the client probability game interface effect in the embodiments of the present application. Among them, Figure 5 Figures (1)-(4) respectively correspond to the first participation stage, the second participation stage, the third participation stage, and the end stage of the probability game. The electronic resource allocation ratio when each event occurs can be calculated through probability in the first to third participation stages, and the electronic resource allocation ratio when each event occurs can be displayed on the game interface of the client. Moreover, in the second participation stage, the third participation stage, and the end stage, the value of the points thrown each time can also be displayed, and the judgment result of whether each event finally occurs can be displayed in the end stage.
[0135] As Figure 5 shown, for example, Figure 5Among the three virtual players, from left to right are A, B, and C. In the first participation stage, the electronic resource allocation ratios corresponding to the winning events of virtual players A, B, and C are all 2.36, and the electronic resource allocation ratios corresponding to the losing events are all 1.35. In the second participation stage, after a single throw, the values of the points thrown by the three virtual players are shown as 4, 3, and 4 respectively. Based on the values of the points after a single throw and the above probability calculation method, the probabilities of various events occurring are determined, and the electronic resource allocation ratios when various events occur can be calculated accordingly. Similarly, in the second participation stage, the values of the points after one and two throws and the electronic resource allocation ratios when various events occur in the second participation stage can be displayed in the game interface of the client. In the end stage, the values of the points of one, two, and three throws and the judgment result can be displayed in the game interface of the client. At this time, although the electronic resource allocation ratio is also displayed, it is calculated in the third participation stage and is the same as that displayed in the third participation stage, that is, there is no need to calculate the electronic resource allocation ratio in the end stage. From Figure 5 As can be seen from Figure (4) in
[0136] If the events specified and correspondingly input by the participating player for the electronic resources in the first participation stage, the second participation stage, or the third participation stage are that C wins, A loses, or B loses, then after the probability game ends finally, the participating player can correspondingly obtain the electronic resources in an amount equal to the product of the electronic resource allocation ratio determined in the participation stage when the bet was placed and the input electronic resources. Conversely, if the participating player does not specify these three events, then after the probability game ends, the electronic resources input by the participating player will be deducted.
[0137] In this way, the probability game in the embodiment of the present application can support the participating player to select which virtual player wins or which virtual player loses, and can also be selected for different events in different participation stages, improving the interactivity and playability of the probability game. Moreover, the electronic resource allocation ratio can be dynamically calculated according to the actual situation, meeting the design of the probability game in different situations, with more accurate control and also realizing the automatic control of the probability game.
[0138] Based on the same inventive concept, an object task control device is also provided in the embodiment of the present application. The object task control device can be, for example, the server in the foregoing embodiment. The object task control device can be a hardware structure, a software module, or a combination of a hardware structure and a software module. Based on the above embodiment, refer to Figure 6 As shown, the object task control device in the embodiment of the present application specifically includes:
[0139] The first processing module 60 is configured to, in each participating stage of the target task, obtain the electronic resource allocation ratio when each set event in the target task occurs in this participating stage, and send it to the client for display, and receive the electronic resources input for the selected event forwarded by the client. The target task includes multiple participating stages and an end stage. The probability of each set event occurring in each subsequent participating stage is associated with the occurrence of each event in the previous adjacent participating stage. The electronic resource allocation ratio when each event occurs is related to the probability of each event occurring;
[0140] The second processing module 61 is configured to, in the end stage of the target task, determine the judgment result of whether each set event occurs. If it is determined that the judgment result of the selected event is that it occurs, then according to the electronic resource allocation ratio when the selected event occurs in the participating stage corresponding to the input of the electronic resources for the selected event, and the input electronic resources, perform allocation control on the input electronic resources. The judgment result of whether each set event occurs is determined by the values of the associated random variables in the participating stage and the end stage.
[0141] Optionally, it further includes:
[0142] The third processing module 62 is configured to, in each participating stage and the end stage of the target task except for the initial first participating stage, randomly select a value from the value sets corresponding to the respective random variables, and send the values of the respective random variables to the client for display. The values in the value sets satisfy an arithmetic progression distribution;
[0143] The sending module 63 is configured to, in the end stage of the target task, send the determined judgment result of whether each set event occurs to the client for display.
[0144] Optionally, when obtaining the electronic resource allocation ratio when each set event in the target task occurs, the first processing module 60 specifically is configured to:
[0145] In the initial first participating stage of the target task, according to the value sets of the respective random variables, respectively determine the combinations of the values of the respective random variables in each participating stage and the end stage except for the initial first participating stage when each set event occurs, and according to the probability distribution of the values of the respective random variables, respectively calculate the probabilities of the combinations of the values of the respective random variables, and determine the joint probability of the calculated probabilities as the probability of the corresponding set event occurring;
[0146] In each participation stage of the target task except the initial first participation stage, respectively determine the conditional probability of each set event occurring based on the values determined for each random variable in this participation stage and the previous participation stage, as the probability of the corresponding set event occurring;
[0147] According to the probabilities of each set event occurring, and the preset probability and electronic resource allocation ratio correlation relationship, respectively determine the electronic resource allocation ratio when each of the set events occurs.
[0148] Optionally, if the set events include multiple pairs of opposite events, each pair of opposite events being an object win event and an object lose event;
[0149] Then when respectively determining the electronic resource allocation ratio when each of the set events occurs, the first processing module 60 is specifically used for:
[0150] If the set event is an object win event, then according to the probabilities of each object win event occurring, and the preset first function correlation relationship, respectively determine the electronic resource allocation ratio when each of the object win events occurs, where the first function correlation relationship is: electronic resource allocation ratio = 0.9 / probability + 0.1 * probability;
[0151] If the set event is an object lose event, then according to the probabilities of each object lose event occurring, and the preset second function correlation relationship, respectively determine the electronic resource allocation ratio when each of the object lose events occurs, where the second function correlation relationship is related to the first function correlation relationship and a preset control parameter, and the preset control parameter is a positive number less than 1.
[0152] Optionally, when performing allocation control on the input electronic resources, the second processing module 61 is specifically used for:
[0153] Determine the product of the electronic resource allocation ratio and the input electronic resources, and return the electronic resources of the size of the product to the client.
[0154] Optionally, the second processing module 61 is further used for: if it is determined that the judgment result of the selected event does not occur, then deduct the input electronic resources.
[0155] The division of modules in the embodiments of the present application is illustrative, merely a logical function division. In actual implementation, there may be other division methods. In addition, in the embodiments of the present application, each functional module may be integrated in one processor, or may exist separately physically, or two or more modules may be integrated in one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0156] For ease of description, embodiments of the present application are exemplarily described by using a portable multifunctional device 700 including a touch screen. Those skilled in the art can understand that the embodiments in the present application are equally applicable to other devices, such as handheld devices, vehicle-mounted devices, wearable devices, computing devices, and various forms of user equipment (User Equipment, UE), mobile stations (Mobile station, MS), terminals, terminal equipment, and so on.
[0157] Figure 7 FIG. shows a block diagram of a portable multifunctional device 700 including a touch screen according to some embodiments. The device 700 may include components such as an input unit 730, a display unit 740, a gravity acceleration sensor 751, a proximity light sensor 752, an ambient light sensor 753, a memory 720, a processor 790, a radio frequency unit 710, an audio circuit 760, a speaker 761, a microphone 762, a WiFi (wireless fidelity) module 770, a Bluetooth module 780, a power supply 793, an external interface 797, and so on.
[0158] Those skilled in the art can understand that Figure 7 This is merely an example of a portable multifunctional device and does not limit the portable multifunctional device. It may include more or fewer components than those shown in the figure, or combine certain components, or have different components. A target task client may be installed in the device 700. Based on the target task control method in the embodiments of the present application, the target task client can display the electronic resource allocation ratio, the value of a random variable, the judgment result of whether an event occurs, etc., and can also support participating players to input electronic resources in the task interface provided by the client.
[0159] The input unit 730 can be used to receive input digital or character information and generate key signal inputs related to user settings and function controls of the portable multifunctional device. Specifically, the input unit 730 can include a touch screen 731 and other input devices 732. The touch screen 731 can collect touch operations of a user thereon or nearby (such as operations of the user using any suitable object such as a finger, a joint, a stylus, etc. on or near the touch screen), and drive corresponding connection devices according to a preset program. The touch screen can detect a touch action of the user on the touch screen, convert the touch action into a touch signal and send it to the processor 790, and can receive and execute commands sent by the processor 790; the touch signal at least includes contact coordinate information. The touch screen 731 can provide an input interface and an output interface between the device 700 and the user. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch screen. In addition to the touch screen 731, the input unit 730 can also include other input devices. Specifically, the other input devices 732 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0160] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the device 700. In the embodiment of the present application, the touch screen 731 and the display unit 740 can be integrated into one component to implement the input, output, and display functions of the device 700; in some embodiments, the touch screen 731 and the display unit 740 can also be used as two independent components.
[0161] The gravitational acceleration sensor 751 can detect the magnitude of acceleration in each direction (generally three axes). At the same time, the gravitational acceleration sensor 751 can also be used to detect the magnitude and direction of gravity when the terminal is stationary, and can be used in applications for identifying the posture of the mobile phone (such as horizontal / vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as a pedometer, tapping), etc.
[0162] The device 700 may further include one or more proximity light sensors 752 for turning off and disabling the touch screen when the device 700 is close to the user (e.g., close to the ear when the user is making a call) to avoid accidental operation of the touch screen by the user; the device 700 may further include one or more ambient light sensors 753 for keeping the touch screen off when the device 700 is in the user's pocket or other dark areas to prevent unnecessary battery power consumption or accidental operation of the device 700 in the locked state. In some embodiments, the proximity light sensor and the ambient light sensor may be integrated into one component or may be two separate components. As for other sensors that the device 700 may also be configured with, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be elaborated here. Although Figure 7 the proximity light sensor and the ambient light sensor are shown, it can be understood that they do not belong to the essential components of the device 700 and can be omitted entirely within the scope of not changing the essence of the invention according to needs.
[0163] The memory 720 can be used to store instructions and data. The memory 720 mainly includes a storage instruction area and a storage data area. The storage data area can store the association relationship between joint touch gestures and application program functions; the storage instruction area can store the operating system, instructions required for at least one function, etc.; the instructions can cause the processor 790 to execute the target task control method on the client side in the embodiments of the present application, such as interface display, etc.
[0164] The processor 790 is the control center of the device 700, connecting various parts of the entire mobile phone through various interfaces and lines, and performing various functions of the device 700 and processing data by running or executing the instructions stored in the memory 720 and calling the data stored in the memory 720. Optionally, the processor 790 may include one or more processing units; preferably, the processor 790 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 790. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on independent chips. In the embodiments of the present application, the processor 790 is further used to call the instructions in the memory to implement the target task control method on the client side in the embodiments of the present application.
[0165] The radio frequency unit 710 can be used for receiving and transmitting information or signals during a call. In particular, after receiving the downlink information of the base station, it is sent to the processor 790 for processing. Additionally, the uplink data is sent to the base station. Generally, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the radio frequency unit 710 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0166] The audio circuit 760, speaker 761, and microphone 762 can provide an audio interface between the user and the device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the speaker 761 converts it into a sound signal for output. On the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and then converted into audio data. After the audio data is output to the processor 790 for processing, it is sent through the radio frequency unit 710 to, for example, another terminal, or the audio data is output to the memory 720 for further processing. The audio circuit can also include a headphone jack 763 for providing a connection interface between the audio circuit and the headphones.
[0167] WiFi belongs to short - range wireless transmission technology. The device 700 can help users send and receive emails, browse the web, and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Although Figure 7 the WiFi module 770 is shown, it can be understood that it does not belong to the essential components of the device 700 and can be omitted entirely within the scope of not changing the essence of the invention according to needs.
[0168] Bluetooth is a short - range wireless communication technology. Using Bluetooth technology can effectively simplify the communication between mobile communication terminal devices such as PDAs, laptops, and mobile phones, and can also successfully simplify the communication between these devices and the Internet. Device 700 enables the data transmission between device 700 and the Internet to be more rapid and efficient through Bluetooth module 780, paving the way for wireless communication. Bluetooth technology is an open - ended solution that can achieve wireless transmission of voice and data. Figure 7 WiFi module 770 is shown, but it can be understood that it does not belong to the essential components of device 700 and can be completely omitted within the scope of not changing the essence of the invention according to needs.
[0169] Device 700 also includes a power supply 793 (such as a battery) for powering each component. Preferably, the power supply can be logically connected to the processor 790 through a power management system 794, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system 794.
[0170] Device 700 also includes an external interface 797. The external interface can be a standard Micro USB interface or a multi - pin connector, which can be used to connect device 700 to other devices for communication and can also be used to connect a charger to charge device 700.
[0171] Although not shown, device 700 may also include a camera, a flash, etc., which will not be elaborated here.
[0172] Based on the above - mentioned embodiments, in the embodiments of the present application, a computer - readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the target task control method in any of the above - mentioned method embodiments.
[0173] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer - usable storage media (including but not limited to disk storage, CD - ROM, optical storage, etc.) containing computer - usable program code.
[0174] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0175] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to cover these changes and modifications.
Claims
1. A target task control method, characterized in that, The method is applied to a server, which at least includes: a processor and a memory; the target task is a probability game, which includes multiple participation stages and an end stage. The probability of each set event occurring in each subsequent participation stage is associated with the occurrence of each event in the previous adjacent participation stage. The electronic resource allocation ratio when each event occurs is related to the probability of each event occurring, and includes: Obtain the program instructions stored in the memory; Based on the obtained program instructions, control the processor to perform the following operations: In the initial first participation stage of the target task, according to the value sets of each random variable, respectively determine the combinations of the values of each random variable in each participation stage and the end stage except the initial first participation stage when each set event occurs, and according to the probability distribution of the values of each random variable, respectively calculate the probabilities of the combinations of the values of each random variable, and determine the joint probability of the calculated probabilities as the probability of the corresponding set event occurring; In each participation stage of the target task except the initial first participation stage, respectively determine the conditional probability of each set event occurring based on the determined values of each random variable in this participation stage and the previous participation stage as the probability of the corresponding set event occurring; In each participation stage of the target task, according to the probabilities of each set event occurring and the preset probability and electronic resource allocation ratio association relationship, respectively determine the electronic resource allocation ratios when each set event occurs, and send them to the client for display, and receive the electronic resources input for the selected event forwarded by the client; In the end stage of the target task, determine the judgment result of whether each set event occurs. If it is determined that the judgment result of the selected event is that it occurs, then according to the electronic resource allocation ratio when the selected event occurs in the participation stage corresponding to the input of the electronic resources for the selected event and the input electronic resources, perform allocation control on the input electronic resources, where the judgment result of whether each set event occurs is determined by the values of each random variable associated with the participation stage and the end stage; In the end stage of the target task, send the determined judgment result of whether each set event occurs to the client for display; If it is determined that the judgment result of the selected event is that it does not occur, then deduct the input electronic resources; Wherein, each set event includes multiple pairs of opposite events, and each pair of opposite events is an object win event and an object lose event. Then, respectively determining the electronic resource allocation ratios when each set event occurs specifically includes: If the set event is an object win event, then according to the probabilities of each object win event occurring and the preset first function association relationship, respectively determine the electronic resource allocation ratios when each object win event occurs, where the first function association relationship is: electronic resource allocation ratio = 0.9 / probability + 0.1 * probability; If the set event is an object input event, then according to the probability of occurrence of each object input event and the preset second function correlation relationship, the electronic resource allocation ratio when each object input event occurs is determined respectively, where the second function correlation relationship is related to the first function correlation relationship and the preset control parameter, and the preset control parameter is a positive number less than 1.
2. The method according to claim 1, wherein Further comprising: In each participation stage and the end stage of the target task except for the initial first participation stage, a value is randomly selected from the value sets corresponding to the respective random variables, and the values of the respective random variables are sent to the client for display, where the values in the value sets satisfy an arithmetic progression distribution.
3. The method according to claim 1 or 2, characterized in that, Perform allocation control on the input electronic resources, specifically including: Determine the product of the electronic resource allocation ratio and the input electronic resources, and return the electronic resources of the size of the product to the client.
4. A target task control device, characterized in that, Applied to a server, the server at least includes: a processor and a memory; the target task is a probability game, the target task includes multiple participation stages and an end stage, the probability of occurrence of each set event in each subsequent participation stage is associated with the occurrence of each event in the adjacent previous participation stage, and the electronic resource allocation ratio when each event occurs is related to the probability of occurrence of each event, including: Obtain the program instructions stored in the memory; Based on the obtained program instructions, control the processor to perform the following operations: A first processing module, configured to, in the initial first participation stage of the target task, according to the value sets of the respective random variables, respectively determine the combination of the values of the respective random variables in each participation stage and the end stage except for the initial first participation stage when each set event occurs, and according to the probability distribution of the values of the respective random variables, respectively calculate the probability of the combination of the values of the respective random variables, and determine the joint probability of the calculated probabilities as the probability of the corresponding set event occurring; In each participation stage of the target task except for the initial first participation stage, respectively determine the conditional probability of each set event occurring based on the values determined by the respective random variables in this participation stage and the previous participation stage, as the probability of the corresponding set event occurring; In each participation stage of the target task, according to the probability of occurrence of each set event and the preset probability and electronic resource allocation ratio correlation relationship, respectively determine the electronic resource allocation ratio when each set event occurs, and send it to the client for display, and receive the electronic resources input for the selected event forwarded by the client; A second processing module, configured to determine, at the end stage of the target task, a judgment result on whether each set event occurs. If it is determined that the judgment result of the selected event is that it occurs, then according to the electronic resource allocation ratio when the selected event occurs in the participation stage corresponding to the input of the electronic resource for the selected event, and the input electronic resource, perform allocation control on the input electronic resource, where the judgment result on whether each set event occurs is determined by the values of the random variables associated in the participation stage and the end stage; A sending module, configured to send, at the end stage of the target task, the determined judgment result on whether each set event occurs to the client for display; The second processing module is further configured to deduct the input electronic resource if it is determined that the judgment result of the selected event is that it does not occur; Wherein, each of the set events includes multiple pairs of opposite events, and each pair of opposite events is an object win event and an object loss event. When respectively determining the electronic resource allocation ratio when each set event occurs, the first processing module specifically is configured to: If the set event is an object win event, then according to the probabilities of the occurrence of each object win event and a preset first function association relationship, respectively determine the electronic resource allocation ratio when each object win event occurs, where the first function association relationship is: electronic resource allocation ratio = 0.9 / probability + 0.1 * probability; If the set event is an object loss event, then according to the probabilities of the occurrence of each object loss event and a preset second function association relationship, respectively determine the electronic resource allocation ratio when each object loss event occurs, where the second function association relationship is related to the first function association relationship and a preset control parameter, and the preset control parameter is a positive number less than 1.
5. The device according to claim 4, characterized in that, Further includes: A third processing module, configured to randomly select a value from the value sets corresponding to the random variables respectively in each participation stage and the end stage of the target task except for the initial first participation stage, and send the values of the random variables to the client for display, where the values in the value sets satisfy an arithmetic progression distribution.
6. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, the steps of the method according to any one of claims 1 - 3 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the method according to any one of claims 1 - 3 are implemented.
Citation Information
Patent Citations
Method and system for realizing instant lottery game
CN103310523A