Game team matching method and device, program product and electronic equipment
By generating and sorting team nodes to be matched in the game team matching, determining candidate teams and matching the number of players, the problem of long matching process in the existing technology is solved, and the efficiency of game team matching and player experience are improved.
Patent Information
- Application Number
- CN202410852919.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-10
AI Technical Summary
Existing game team matching methods suffer from randomness and invalid traversal, resulting in a long and inefficient matching process.
By generating team nodes to be matched and inserting them into a queue sorted by combat power information, adjacent nodes are obtained to determine candidate team nodes, and headcount matching is performed based on the current number of people to ensure that the combat power and number of people of the target team matches the team to be matched. The highest degree.
It effectively reduces the randomness of the team matching process, reduces the number of invalid traversals, improves matching efficiency, and improves the player's gaming experience.
Smart Images

Figure CN118615697A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a game team matching method, a game team matching device, a computer program product, and an electronic device. Background Art
[0002] In the game, different players usually need to be formed into the same team to play against each other. In the process of matching teammates for players, it is often necessary to find teammates with similar strength to the players in order to enhance the players' gaming experience.
[0003] In the related art, players to be teamed up are added to a matching pool. When matching teammates for players, it is necessary to continuously obtain players with similar strength to the player from the matching pool until a team is formed. However, this method has randomness in the process of matching teammates for players. It may take several traversals in the matching pool to find teammates with similar strength to the player, or it may take multiple traversals to still not match teammates with similar strength for the player. This shows that this method has the problem of invalid traversal in the matching process, which results in a high time cost for the matching process, making the game team matching inefficient. Summary of the invention
[0004] The present disclosure provides a game team matching method, a game team matching device, a computer program product and an electronic device, thereby improving the problem of low efficiency of game team matching at least to a certain extent.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0006] According to a first aspect of the present disclosure, a game team matching method is provided, comprising: in response to receiving a team matching request of a team to be matched, generating a team node to be matched according to first combat power information of the team to be matched and a current number of players, and inserting the team node to be matched into a queue to be matched; the queue to be matched includes one or more team nodes, and each of the team nodes is sorted according to the combat power information of each of the team nodes; obtaining an adjacent team node of the team to be matched in the queue to be matched, and determining a candidate team node in the adjacent team node based on the first combat power information and second combat power information of the adjacent team node; performing number matching in the candidate team node based on the current number of players of the team to be matched to determine a target team, and adding players in the target team to the team to be matched to complete game team matching for the team to be matched.
[0007] According to a second aspect of the present disclosure, a game team matching device is provided, including: a to-be-matched team node generation module, configured to generate a to-be-matched team node according to first combat power information and current number of players of the to-be-matched team in response to receiving a team matching request of the to-be-matched team, and insert the to-be-matched team node into a to-be-matched queue; the to-be-matched queue includes one or more team nodes, and each of the team nodes is sorted according to the combat power information of each of the team nodes; a candidate team node determination module, configured to obtain adjacent team nodes of the to-be-matched team node in the to-be-matched queue, and determine candidate team nodes in the adjacent team nodes based on the first combat power information and second combat power information of the adjacent team nodes; a target team determination module, configured to perform number matching in the candidate team nodes based on the current number of players of the to-be-matched team to determine a target team, and add players in the target team to the to-be-matched team to complete game team matching of the to-be-matched team.
[0008] According to a third aspect of the present disclosure, a computer program is provided, which, when executed by a processor, implements the game team matching method of the first aspect and possible implementation methods thereof.
[0009] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor, wherein the processor is configured to execute the game team matching method and possible implementation manner of the game team matching method of the first aspect by executing the executable instructions.
[0010] The technical solution disclosed in this disclosure has the following beneficial effects:
[0011] On the one hand, a to-be-matched team node is generated according to the to-be-matched team, and the to-be-matched team node is inserted into a to-be-matched queue sorted according to combat power information, so that the adjacent team nodes of the to-be-matched team node are nodes with similar combat power to the to-be-matched team node, and the candidate team node is determined in the adjacent team node to determine the target team to be matched with the to-be-matched team in the candidate team node; compared with the prior art, the randomness of the team matching process is effectively reduced, the number of invalid traversals is reduced, the time loss in the team matching process is reduced, and the team matching efficiency is improved, thereby improving the game experience of the player. On the other hand, after determining the candidate team node, the target team that can form a team with the to-be-matched team can be determined in the candidate team node based on the current number of people in the to-be-matched team. Since the candidate team node is a team node with similar combat power to the to-be-matched team, the number of people is matched in the candidate team node to determine the target team, which can ensure that the target team is the team with the highest combat power and number of people matching with the to-be-matched team. At the same time, the target team is determined in the candidate team node, which effectively narrows the matching range of the number of people matching, further reducing the time cost in the game matching process, thereby improving the game team matching efficiency.
[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0014] Figure 1 The system operation architecture of this exemplary embodiment is shown;
[0015] Figure 2 A flowchart showing a method for matching game teams in this exemplary embodiment is shown;
[0016] Figure 3 A flowchart showing a method for determining a candidate team node in this exemplary embodiment;
[0017] Figure 4 A flowchart showing a method for determining a candidate team node among adjacent team nodes in this exemplary embodiment;
[0018] Figure 5 A flow chart showing a method for determining a target team in this exemplary embodiment;
[0019] Figure 6 A flow chart showing a method for generating team number configuration information in this exemplary embodiment;
[0020] Figure 7 A flow chart showing a method for forming a target team through a node to be added to a team in this exemplary embodiment;
[0021] Figure 8 A schematic diagram showing the structure of a game team matching device in this exemplary embodiment is shown;
[0022] Fig. 9 A schematic structural diagram of an electronic device in this exemplary embodiment is shown. DETAILED DESCRIPTION
[0023] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0024] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0025] In the related art, players to be teamed up are usually added to a matching pool. When matching teammates for players, players with similar strength to the player need to be continuously obtained from the matching pool until a team is formed. If it is desired to match players with strength closer to the player, multiple rounds of matching are required to determine the player's teammates based on the results of multiple rounds of matching processes. It can be seen that this process takes a lot of time and is inefficient. Moreover, the matching process is often random.
[0026] In view of one or more of the above problems, the exemplary embodiment of the present disclosure first provides a game team matching method. Figure 1 The system architecture of the operating environment of this exemplary embodiment will be described.
[0027] refer to Figure 1 As shown, the system architecture 100 may include a terminal device 110 and a server 120. The terminal device 110 may be an electronic device such as a tablet computer, a laptop computer, a desktop computer, etc., and the terminal device 110 may be used to receive a team matching request. The server 120 generally refers to a background system that provides game team matching related services in this exemplary embodiment, such as a server that implements a game team matching method. The server 120 may be a single server or a cluster formed by multiple servers, which is not limited in this disclosure. The terminal device 110 and the server 120 may be connected via a wired or wireless communication link to exchange data.
[0028] The game team matching method in this exemplary embodiment may be executed by the terminal device 110. For example, in the game team matching scenario, the terminal device 110 may be a computer used by a player, and the player may control the terminal device 110 to execute the game process to form a team to be matched, and issue a team matching request, and the terminal device 110 determines a candidate team node in the queue to be matched by executing the game team matching method, determines a target team in the candidate team node based on the current number of people in the team to be matched, and combines the target team with the team to be matched into the same team, so as to achieve team matching of the teams to be matched.
[0029] In one embodiment, the terminal device 110 can generate a team matching request and send the team matching request to the server 120. After receiving the team matching request sent by the terminal device 110, the server 120 generates a team node to be matched according to the first combat power information of the team to be matched and the current number of players, and inserts the team node to be matched into the queue to be matched; at the same time, the adjacent team node of the team node to be matched is obtained in the queue to be matched, and the candidate team node is determined in the adjacent team node based on the first combat power information and the second combat power information of the adjacent team node; finally, based on the current number of players in the team to be matched, the number of players is matched in the candidate team node to determine the target team, and the players in the target team are added to the team to be matched to complete the game team matching for the team to be matched.
[0030] As can be seen from the above, the game team matching method in this exemplary embodiment can be executed by the above-mentioned terminal device 110 or server 120.
[0031] Combine the following Figure 2 The following describes the game team matching method. Figure 2An exemplary process of a game team matching method is shown, including the following steps S210 to S230:
[0032] Step S210, in response to receiving a team matching request of a to-be-matched team, generating a to-be-matched team node according to the first combat power information of the to-be-matched team and the current number of players, and inserting the to-be-matched team node into a to-be-matched queue; the to-be-matched queue includes one or more team nodes, and each team node is sorted according to the combat power information of each team node;
[0033] Step S220, obtaining the adjacent team nodes of the to-be-matched team node in the to-be-matched queue, and determining the candidate team nodes in the adjacent team nodes based on the first combat power information and the second combat power information of the adjacent team nodes;
[0034] Step S230, based on the current number of players in the team to be matched, perform number matching in the candidate team nodes to determine the target team, and add the players in the target team to the team to be matched to complete the game team matching for the team to be matched.
[0035] Based on the above method, on the one hand, a to-be-matched team node is generated according to the to-be-matched team, and the to-be-matched team node is inserted into the to-be-matched queue sorted according to the combat power information, so that the adjacent team nodes of the to-be-matched team node are nodes with similar combat power to the to-be-matched team node, and the candidate team node is determined in the adjacent team node to determine the target team to be matched with the to-be-matched team in the candidate team node; compared with the prior art, the randomness of the team matching process is effectively reduced, the number of invalid traversals is reduced, the time loss in the team matching process is reduced, and the team matching efficiency is improved, thereby improving the game experience of the player. On the other hand, after determining the candidate team node, the target team that can form a team with the to-be-matched team can be determined in the candidate team node based on the current number of people in the to-be-matched team. Since the candidate team node is a team node with similar combat power to the to-be-matched team, the number of people is matched in the candidate team node to determine the target team, which can ensure that the target team is the team with the highest combat power and number of people matching with the to-be-matched team. At the same time, the target team is determined in the candidate team node, which effectively narrows the matching range of the number of people matching, further reducing the time cost in the game matching process, thereby improving the game team matching efficiency.
[0036] Below Figure 2 Each step in the procedure is described in detail.
[0037] refer to Figure 2In step S210, in response to receiving the team matching request of the team to be matched, a team node to be matched is generated according to the first combat power information of the team to be matched and the current number of people, and the team node to be matched is inserted into the queue to be matched; the queue to be matched includes one or more team nodes, and each team node is sorted according to the combat power information of each team node.
[0038] Generate a to-be-matched team node according to the to-be-matched team, and insert the to-be-matched team node into a to-be-matched queue sorted according to combat power information, so as to ensure that the adjacent team node of the to-be-matched team node is the team node with the smallest combat power gap with the to-be-matched team node.
[0039] Among them, the team to be matched is a game team whose number has not reached the upper limit of the number of game teams and needs to continue to match players. The combat power information can be information used to measure the strength of the game team. The present disclosure does not specifically limit the specific content of the combat power information. Exemplarily, the combat power information can include the sum of the combat power information of each player in the game team, or the average value of the combat power information of all current players in the game team, that is, the ratio of the sum of the combat power information of each player to the total number of players in the current team, or the weighted sum of the combat power information of each player in the game team. For example, the current game team includes player A and player B, wherein the combat power information of player A is higher than the combat power information of player B, then the combat power information of player A can be assigned a weight value of 0.7, and the combat power information of player B can be assigned a weight value of 0.3, so as to determine the combat power information of the game team based on the weighted sum of the combat power information of player A and player B; the combat power information of each player can be the combat power value of the game character controlled by the player, the competition points, and the sum of the combat power values of the game equipment owned. The queue to be matched can be a container that stores team nodes according to the combat power information of each team node. Exemplarily, the queue to be matched can be a bidirectional linked list that stores team nodes according to the combat power information of the team nodes; the team node can be a storage unit that stores at least the current number of players and combat power information of the team. For example, the team node can store the current number of players in the team to be matched, as well as the identity information of the players in the team to be matched, such as the player's game ID, and the combat power information of the team to be matched.
[0040] In one implementation, the above-mentioned inserting the node of the team to be matched into the queue to be matched may include the following steps: inserting the node of the team to be matched into the queue to be matched based on the first combat power information of the team to be matched.
[0041] The node of the team to be matched is inserted into the queue to be matched according to the first combat power information of the team to be matched, so that the queue to be matched after the insertion of the node to be matched is still a queue sorted according to the combat power information of each team node, thereby ensuring that the combat power gap between the adjacent team nodes of the node to be matched and the node to be matched is minimized.
[0042] Continue to refer Figure 2 In step S220, the adjacent team nodes of the to-be-matched team node are obtained in the to-be-matched queue, and the candidate team nodes are determined in the adjacent team nodes based on the first combat power information and the second combat power information of the adjacent team nodes.
[0043] By determining the candidate team node among the adjacent team nodes, it can be ensured that the candidate team node is always selected from the team node with the smallest difference in combat power with the team to be matched.
[0044] Among them, the adjacent team nodes include the predecessor nodes and successor nodes of the to-be-matched team node in the to-be-matched queue. The second combat power information is the combat power information of the adjacent team node. The candidate team node is the adjacent team node when the combat power difference information is less than the combat power difference threshold value among the adjacent team nodes corresponding to the to-be-matched team node in the to-be-matched queue, wherein the combat power difference information can be used to characterize the combat power gap between the adjacent team node and the to-be-matched team node, for example, the combat power difference information can be obtained based on the difference in combat power information between the adjacent team node and the to-be-matched team node; the combat power difference threshold value can be the basis for selecting the candidate team node from the adjacent team nodes, and the present disclosure does not specifically limit the specific value and acquisition method of the combat power difference threshold value; illustratively, the combat power difference threshold value can be set by the game developer according to the game, or it can be customized by the player according to the teammate matching situation, for example, the player can expand the scope of teammate matching by setting a larger combat power difference threshold value.
[0045] For example, after receiving a team matching request from a team to be matched, a node for the team to be matched can be generated based on the current number of players and the first combat power information of the team to be matched, and based on the first combat power information of the team to be matched, the node for the team to be matched can be inserted into the queue to be matched, and at the same time, a combat power matching check can be triggered, i.e., a candidate team node can be determined among the adjacent team nodes of the node for the team to be matched.
[0046] In one embodiment, the adjacent team node of the to-be-matched team node is obtained in the to-be-matched queue, and a candidate team node is determined in the adjacent team node based on the first combat power information and the second combat power information of the adjacent team node, referring to Figure 3 As shown, steps S310 to S330 may be included:
[0047] Step S310, obtaining combat power difference information between each second combat power information and the first combat power information, and determining the adjacent team node corresponding to the second combat power information when the combat power difference information is less than the combat power difference threshold as a candidate team node;
[0048] Step S320, popping the candidate team node out of the to-be-matched queue to update the to-be-matched queue;
[0049] Step S330, in the updated queue to be matched, the adjacent team nodes of the team node to be matched are reacquired, and candidate team nodes are determined in the adjacent team nodes until the combat power information difference between the second combat power information and the first combat power information of the adjacent team node is greater than the combat power difference threshold.
[0050] Specifically, after determining that the adjacent team node is a candidate team node, the adjacent team node can be popped out from the to-be-matched queue to update the to-be-matched queue. At this time, the predecessor node or successor node of the to-be-matched team node will correspond to the new adjacent team node, and the new adjacent team node will continue to be traversed, and the candidate team node will be determined in the new adjacent team node. If the combat power difference information between the new adjacent team node and the to-be-matched team node is greater than the combat power difference threshold, the traversal is stopped, and the target team is determined in the obtained candidate team nodes.
[0051] based on Figure 3 The method can continuously traverse the adjacent team nodes of the team node to be matched, and perform combat power matching on the team node to be matched, so as to screen out the team nodes in the queue to be matched that have a smaller combat power gap with the team to be matched, and use them as candidate team nodes, so that the candidate team nodes are all team nodes with similar strength to the team node to be matched.
[0052] Specifically, in one implementation manner, the combat power difference information between each second combat power information and the first combat power information is obtained, and the adjacent team node corresponding to the second combat power information when the combat power difference information is less than the combat power difference threshold is determined as the candidate team node, and the candidate team node is determined as the candidate team node. Figure 4 As shown, steps S410 to S420 may be included:
[0053] Step S410, obtaining first combat power difference information between the first combat power information and the second combat power information of the first adjacent team node, and second combat power difference information between the first combat power information and the second combat power information of the second adjacent team node;
[0054] Step S420, when the first combat power difference information and the second combat power difference information are less than the combat power difference threshold, and the first combat power difference information is less than the second combat power difference information, the first adjacent team node corresponding to the first combat power difference information is determined as a candidate team node.
[0055] Specifically, the adjacent team nodes (i.e., the predecessor node and the successor node) of the to-be-matched team node in two directions in the to-be-matched queue can be obtained, and the node with the smaller combat power gap with the to-be-matched team node among the two adjacent team nodes is determined as the candidate team node.
[0056] The first adjacent team node and the second adjacent team node may be respectively the predecessor node and the successor node of the to-be-matched team node in the to-be-matched queue.
[0057] For example, if the queue to be matched is a bidirectional linked list that sorts team nodes according to combat power information, after inserting the team node A to be matched into the queue to be matched according to the first combat power information of the team node A to be matched, combat power matching is triggered, and the adjacent team nodes of the team node to be matched are traversed to obtain the combat power information of the adjacent team node B and the adjacent team node C, and the first combat power difference information between A and B, and the second combat power difference information between A and C are calculated. When the first combat power difference information is less than the second combat power difference information, B is determined as a candidate team node and popped out, and each team node in the current queue to be matched is matched according to the combat power information. Rearrange to obtain an updated queue to be matched; in the updated queue to be matched, the adjacent team nodes corresponding to the team node to be matched include node C and node D, and continue to calculate the first combat power difference information between A and D, and the second combat power difference information between A and C. When the second combat power difference information is less than the first combat power difference information, and the first combat power difference information is greater than the combat power difference threshold, it means that the combat power gap between node D and the team node A to be matched is too large. At this time, node C can be determined as a candidate team node and popped out of the queue to be matched, and the traversal is terminated. The candidate team nodes corresponding to the team node A to be matched include node B and node C.
[0058] based on Figure 4 The method prioritizes the adjacent team nodes with smaller combat power gaps as candidate team nodes, which reduces the time cost of obtaining candidate team nodes and is conducive to improving the overall efficiency of game team matching.
[0059] In order to prevent the situation where the gap between the team nodes in the to-be-matched queue and the to-be-matched team node is too large, resulting in the inability to match the candidate team node, in one embodiment, after the to-be-matched team node is inserted into the to-be-matched queue, if the candidate team node is not determined within the preset matching period, a preset number of adjacent team nodes of the to-be-matched team node are selected in the to-be-matched queue and determined as candidate team nodes.
[0060] Specifically, after the to-be-matched team node is inserted into the to-be-matched queue, if no candidate team node is matched within a timeout period, a preset number of adjacent team nodes of the to-be-matched team node are popped out of the to-be-matched queue as candidate team nodes.
[0061] The preset matching period may be a period of waiting for matching candidate team nodes. The present disclosure does not specifically limit the specific duration of the preset matching period. For example, the preset matching period may be 3 seconds. The preset number may be the number of automatically popped-up adjacent team nodes. The present disclosure does not specifically limit the specific value of the preset number. For example, the preset number may be 5.
[0062] When a candidate team node with similar strength to the team to be matched has not been found in the queue for a long time, considering the time players have to wait for teammates to be matched, a preset number of adjacent team nodes will pop up in the current queue to be matched, so as to maximize the help for players to match with candidate team nodes with similar strength, thereby improving the player's gaming experience.
[0063] Continue to refer Figure 2 In step S230, based on the current number of players in the team to be matched, a number matching is performed in the candidate team node to determine the target team, and the players in the target team are added to the team to be matched to complete the game team matching for the team to be matched.
[0064] Specifically, the candidate team node currently obtained is the team node in the to-be-matched queue that is closest in strength to the to-be-matched team. At this time, the combat power matching has been completed, and it is necessary to obtain a team node with the same number of remaining players as the to-be-matched team in the candidate team node based on the current number of players in the to-be-matched team, so as to form a target team and thereby achieve game team matching for the to-be-matched team.
[0065] Among them, the players in the target team come from the teams corresponding to one or more candidate team nodes, and are the teams used to form a team with the team to be matched.
[0066] In one embodiment, the above-mentioned number matching is performed in the candidate team node based on the current number of the team to be matched to determine the target team, referring to Figure 5 As shown, steps S510 to S530 may be included:
[0067] Step S510, obtaining team number configuration information based on the upper limit of the number of game team members; the team number configuration information is used to determine the team number matching strategy of the team to be matched according to the current number of the team to be matched;
[0068] Step S520, searching the team number configuration information according to the current number of the team to be matched, to obtain the team number matching strategy corresponding to the team to be matched;
[0069] Step S530, determining the node of the team to be joined that meets the team number matching strategy among the candidate team nodes, and determining the target team among the node of the team to be joined.
[0070] Among them, the upper limit of the number of game team members is used to characterize the maximum number of players that a game team specified in the game can accommodate. The present disclosure does not specifically limit the specific value of the upper limit of the number of game team members. For example, the upper limit of the number of game team members can be 5. The team number configuration information includes the current number of people in the game team, the number of nodes of the team nodes to be added required to match the team into a full-player game team, and the mapping relationship between the number of nodes in the team nodes to be added; the above-mentioned team nodes to be added refer to a team node or multiple team nodes that can form a full-player game team with the team to be matched, and the number of nodes in the team nodes to be added refers to the current number of people in the team nodes to be added; for example, the upper limit of the number of game team members is 5, and the team number configuration information can be used to represent this mapping relationship through the team number configuration table in Table 1:
[0071] Table 1 Team number configuration table
[0072]
[0073]
[0074] In the above team number configuration table, the team number matching strategy refers to the team node combination method required when the to-be-matched teams are combined into a full-player game team. For example, when the current number of the team is 1, and the upper limit of the number of game team members is 5, the team still needs 4 members. Therefore, there are five possible team number matching strategies:
[0075] The first strategy {4:1} means that the node to be added to the team can include 1 4-person node, that is, the current number of people in the team node is 4;
[0076] The second strategy {3:1,1:1} means that the nodes to be added to the team can include one 3-person node and one 1-person node;
[0077] The third strategy {2:2} means that the node to be added to the team can include two 2-person nodes;
[0078] The fourth strategy {2:1,1:2} means that the nodes to be added to the team can include one 2-person node and two 1-person nodes;
[0079] The fifth strategy {1:4} means that the node to be added to the team can include 4 nodes with 1 person.
[0080] That is to say, the total number of nodes to be added to the team node needs to be equal to the remaining number of players in the team to be matched.
[0081] based on Figure 5A method is adopted to generate a team number configuration strategy based on the team number configuration information to match the number of candidate team nodes, thereby obtaining a target team, so that the combat power of the target team is similar to that of the team to be matched, and the target team can be combined with the team to be matched to form a full-member game team, thereby eliminating the time loss caused by invalid traversal and effectively improving the game team matching efficiency.
[0082] In one embodiment, the above-mentioned obtaining of team number configuration information based on the upper limit of the number of game team members refers to Figure 6 As shown, steps S610 to S630 may be included:
[0083] Step S610, based on the upper limit of the number of game team members, determine multiple combinations of the current number of team members and the corresponding remaining team member quotas;
[0084] Step S620, determining the number of nodes and nodes to be added to the team according to the remaining number of team members;
[0085] Step S630, establish a mapping relationship between the current number of members of the team, the number of members to be added to the team node, and the number of members to be added to the team node, so as to generate team number configuration information.
[0086] Specifically, after determining the remaining number of team members, the team member configuration information can be obtained by adjusting the number of nodes to be added and the number of nodes.
[0087] Among them, the remaining team member quota refers to the number of players required for the team to form a full game team, which can be obtained based on the difference between the upper limit of the number of game team members and the current number of people in the team.
[0088] It should be noted that since the team number configuration information is associated with the upper limit of the game team number, different games with the same upper limit of the game team number can share the same team number configuration information; and the team number configuration information can be generated in advance or during the game team matching process. The present disclosure does not make any special restrictions on the timing of generating the team number configuration information.
[0089] based on Figure 6 The method can ensure that the sum of the number of nodes of the team corresponding to the node to be joined is equal to the remaining number of players in the team, and at the same time provide a variety of team number matching strategies for the team to be matched to meet the various needs of different players for the team.
[0090] In order to further improve the efficiency of determining the target team among the candidate team nodes, in one embodiment, before determining the node of the team to be joined that meets the team number matching strategy among the candidate team nodes, the above method may further include the following steps:
[0091] The candidate team nodes are stored in different candidate queues according to the current number of people in each candidate team node; the current number of candidate team nodes contained in the same candidate queue is the same, and in the same candidate queue, the candidate team nodes are sorted according to the combat power information.
[0092] The candidate queues may be used to store candidate team nodes, and the number of candidate team nodes stored in different candidate queues is different.
[0093] For example, based on the first combat power information of the to-be-matched team node A3, A3 is inserted into the to-be-matched queue to obtain the to-be-matched queue: {I1, G4, E3, C2, A3, B4, D1, F2, H3, J4}, where letters represent different team nodes and numbers represent the number of people in the team nodes; based on the above method, the candidate team nodes of A3 include: B4, C2, D1, E3, F2 (sorted by combat power difference information); the candidate team nodes are stored in different linked lists 1 to 4 (candidate queues):
[0094] Link list 1 stores the 4-person team node: {B4};
[0095] Linked list 2 stores the nodes of a team of three: {E3};
[0096] Linked list 3 stores the 2-person team nodes: {C2, F2};
[0097] Linked list 4 stores the single-player team node: {D1}.
[0098] By storing candidate team nodes with different numbers of people in different candidate queues, in the process of determining the target team based on the team number configuration strategy, the candidate team nodes in the candidate queues with mismatched numbers can be directly excluded, eliminating the time cost of traversing each candidate team node to obtain the number of nodes, further improving the number matching speed, and thus improving the team matching efficiency.
[0099] In one embodiment, the above-mentioned team nodes that meet the team number matching strategy are determined in each candidate team node, and the target team is determined in the team node to be joined, referring to Figure 7 As shown, steps S710 to S720 may be included:
[0100] Step S710, determining the team nodes to be added in the candidate queues based on the current number of candidate team nodes corresponding to each candidate queue and the team number matching strategy;
[0101] Step S720: determine a team corresponding to a node to be joined as a target team, or combine teams corresponding to multiple nodes to be joined to obtain a target team.
[0102] Specifically, based on the team number matching strategy, one or more team nodes that can be combined with the to-be-matched team to form a game team are selected from each candidate queue.
[0103] based on Figure 7 The method is used to determine the team nodes to be joined based on the current number of candidate team nodes corresponding to the candidate queue and the team number matching strategy. When the current number of people corresponding to the candidate queue meets the team number matching strategy, all candidate team nodes in the candidate queue can be determined as the team nodes to be joined, which effectively improves the efficiency of obtaining the team nodes to be joined.
[0104] Since a team node with a small number of members can be formed into a team with a large number of members, while a team node with a large number of members cannot be split into team nodes with a small number of members, in order to maximize the adaptation to the matching needs of different players, in one implementation, after determining the team node to be joined, among the team nodes to be joined, the team node with the largest number of members to be joined is preferentially selected to form the target team.
[0105] By giving priority to selecting the node of the team to be joined with the largest number of people in the node of the team to be joined to form the target team, it is helpful to maximize the help to each team to be matched to match the players. For example, if a team of three people to be matched is matched with two nodes of the team to be joined with one person to form the target team, if a team of four people to be matched subsequently sends a team matching request, it may cause the four-person team to be matched to have difficulty matching the players. Therefore, when matching the target team for the three-person team to be matched, if there is a node of the team to be joined with two people, the team corresponding to the node of the team to be joined with two people can be preferentially selected to be determined as the target team; and in the process of selecting the node to be joined, if there is a candidate queue with two people in the candidate queue corresponding to the team to be matched with three people, then when traversing to the candidate queue with two people, other candidate queues can be no longer traversed, so as to further reduce the determination time of the node of the team to be joined.
[0106] For example, based on the team number configuration table in Table 1, it can be obtained that the team number matching strategy corresponding to the above-mentioned team node A3 to be matched may include [{2:1}, {1:2}], that is, one 2-person node or two 1-person nodes can be selected from the candidate team nodes; then in the candidate queue corresponding to A3, first exclude linked list 1 and linked list 2; then the nodes to be added corresponding to A3 may include: {C2, F2} in linked list 3, and {D1} in linked list 4; and since there happens to be a candidate queue with 2 people in the candidate queue corresponding to the team node A3 to be matched (linked list 3), there is no need to match other candidate queues through the team number matching strategy {1:2}; at this time, the team nodes to be added include C2 and F2; since the combat power gap between C2 and A3 is the smallest among the team nodes to be added, the game team corresponding to C2 is determined as the target team corresponding to A3; and the players in C2 are added to A3 to achieve team matching for A3.
[0107] Based on the above method, efficient game team matching is achieved through combat power matching and number matching respectively. Compared with the existing technology, the randomness of the team matching process is effectively reduced, the number of invalid traversals is reduced, and at the same time, the matching needs of teams with different numbers of people to be matched are maximized.
[0108] The exemplary embodiment of the present disclosure also provides a game team matching device. Figure 8 As shown, the game team matching device 800 may include:
[0109] The to-be-matched team node generation module 810 is configured to generate a to-be-matched team node according to the first combat power information of the to-be-matched team and the current number of players in response to receiving a team matching request of the to-be-matched team, and insert the to-be-matched team node into a to-be-matched queue; the to-be-matched queue includes one or more team nodes, and each team node is sorted according to the combat power information of each team node;
[0110] The candidate team node determination module 820 is configured to obtain the adjacent team nodes of the to-be-matched team node in the to-be-matched queue, and determine the candidate team node in the adjacent team nodes based on the first combat power information and the second combat power information of the adjacent team nodes;
[0111] The target team determination module 830 is configured to perform number matching in the candidate team nodes based on the current number of players in the team to be matched to determine the target team, and add the players in the target team to the team to be matched to complete the game team matching for the team to be matched.
[0112] In one embodiment, the step of obtaining the adjacent team node of the team node to be matched in the queue to be matched, and determining the candidate team node in the adjacent team nodes based on the first combat power information and the second combat power information of the adjacent team node, may include:
[0113] Acquire combat power difference information between each second combat power information and the first combat power information, and determine the adjacent team node corresponding to the second combat power information when the combat power difference information is less than the combat power difference threshold as the candidate team node;
[0114] Pop the candidate team node out of the queue to be matched to update the queue to be matched;
[0115] In the updated queue to be matched, the adjacent team nodes of the team node to be matched are reacquired, and candidate team nodes are determined in the adjacent team nodes until the combat power information difference between the second combat power information and the first combat power information of the adjacent team node is greater than the combat power difference threshold.
[0116] In one implementation, the obtaining of the combat power difference information between each second combat power information and the first combat power information, and determining the adjacent team node corresponding to the second combat power information when the combat power difference information is less than the combat power difference threshold as the candidate team node, may include:
[0117] Acquire first combat power difference information between the first combat power information and the second combat power information of the first adjacent team node, and obtain second combat power difference information between the first combat power information and the second combat power information of the second adjacent team node;
[0118] When the first combat power difference information and the second combat power difference information are less than the combat power difference threshold, and the first combat power difference information is less than the second combat power difference information, the first adjacent team node corresponding to the first combat power difference information is determined as the candidate team node.
[0119] In one implementation, the above-mentioned matching the number of people in the candidate team nodes based on the current number of people in the team to be matched to determine the target team may include:
[0120] Obtaining team number configuration information based on the upper limit of the number of team members in the game; the team number configuration information is used to determine the team number matching strategy of the team to be matched according to the current number of the team to be matched;
[0121] Search the team number configuration information according to the current number of the team to be matched, so as to obtain the team number matching strategy corresponding to the team to be matched;
[0122] In each candidate team node, determine the team node to be joined that meets the team number matching strategy, and determine the target team in the team node to be joined.
[0123] In one implementation, the obtaining of team number configuration information based on the upper limit of the number of game team members may include:
[0124] Based on the upper limit of the number of players in the game team, determine the various combinations of the current number of players in the team and the corresponding number of remaining players;
[0125] Determine the number of nodes and nodes to be added to the team based on the remaining number of players;
[0126] A mapping relationship between the current number of people in the team, the number of nodes to be added to the team, and the number of nodes to be added to the team is established to generate team number configuration information.
[0127] In one embodiment, before determining, among the candidate team nodes, the team node to be joined that meets the team number matching strategy, the above-mentioned device may further include:
[0128] The candidate team nodes are stored in different candidate queues according to the current number of people in each candidate team node; the current number of candidate team nodes contained in the same candidate queue is the same, and in the same candidate queue, the candidate team nodes are sorted according to the combat power information.
[0129] In one embodiment, determining the to-be-joined team nodes that meet the team number matching strategy among the candidate team nodes, and determining the target team among the to-be-joined team nodes, may include:
[0130] Based on the current number of candidate team nodes corresponding to each candidate queue and the team number matching strategy, determine the team nodes to be added in the candidate queue;
[0131] A team corresponding to a node to be joined is determined as a target team, or teams corresponding to multiple nodes to be joined are combined to obtain a target team.
[0132] The specific details of each part of the above device have been described in detail in the implementation method part, so they will not be repeated here.
[0133] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0134] The exemplary embodiments of the present disclosure further provide a computer program product, which includes a computer program. When the computer program is executed by a processor, the game team matching method described above is implemented.
[0135] Computer programs for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The computer program may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0136] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0137] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0138] The computer program can be carried or transmitted by electrical, magnetic, optical, electromagnetic, infrared and other signals. The electronic device can convert the signal carrying the computer program into a digital signal, and then run the computer program. When the computer program is running on the electronic device, its code is used to make the electronic device execute (more specifically, the processor of the electronic device can be executed) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned game team matching method, which includes the following steps: in response to receiving a team matching request of the team to be matched, generating a team node to be matched according to the first combat power information of the team to be matched and the current number of people, and inserting the team node to be matched into the queue to be matched; the queue to be matched includes one or more team nodes, and each team node is sorted according to the combat power information of each team node; in the queue to be matched, the adjacent team node of the team node to be matched is obtained, and the candidate team node is determined in the adjacent team node based on the first combat power information and the second combat power information of the adjacent team node; based on the current number of people in the team to be matched, the number of people is matched in the candidate team node to determine the target team, and the players in the target team are added to the team to be matched to complete the game team matching of the matching team.
[0139] The above method steps are executed by a computer program. On the one hand, a to-be-matched team node is generated according to the to-be-matched team, and the to-be-matched team node is inserted into a to-be-matched queue sorted according to combat power information, so that the adjacent team nodes of the to-be-matched team node are nodes with combat power similar to that of the to-be-matched team node, and the target team to be matched with the to-be-matched team is determined in the candidate team nodes by determining the candidate team nodes in the adjacent team nodes; compared with the existing technology, the randomness of the team matching process is effectively reduced, the number of invalid traversals is reduced, the time loss in the team matching process is reduced, the team matching efficiency is improved, and the player's gaming experience is improved. On the other hand, after determining the candidate team node, the target team that can form a team with the to-be-matched team can be determined in the candidate team node based on the current number of people in the to-be-matched team. Since the candidate team node is a team node with similar combat power to the to-be-matched team, number matching is performed in the candidate team node to determine the target team, which can ensure that the target team is the team with the highest match in combat power and number of people with the to-be-matched team. At the same time, determining the target team in the candidate team node effectively narrows the matching range of number matching, further reduces the time cost in the game matching process, and thus improves the game team matching efficiency.
[0140] The exemplary embodiments of the present disclosure also provide an electronic device, such as the terminal device 110 or the server 120 described above. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions.
[0141] Reference below Fig. 9 , the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Fig. 9 The electronic device 900 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0142] like Fig. 9 As shown, the electronic device 900 may include: a processor 910 , a memory 920 , a bus 930 , an I / O (input / output) interface 940 , and a network adapter 950 .
[0143] The processor 910 may include one or more processing units. For example, the processor 910 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.
[0144] The processor 910 can be used to execute executable instructions stored in the memory 920, such as the above-mentioned game team matching method, which includes the following steps: in response to receiving a team matching request of the team to be matched, generating a team node to be matched according to the first combat power information of the team to be matched and the current number of people, and inserting the team node to be matched into the queue to be matched; the queue to be matched includes one or more team nodes, and each team node is sorted according to the combat power information of each team node; obtaining the adjacent team node of the team to be matched in the queue to be matched, and determining the candidate team node in the adjacent team node based on the first combat power information and the second combat power information of the adjacent team node; based on the current number of people in the team to be matched, performing number matching in the candidate team node to determine the target team, and adding the players in the target team to the team to be matched to complete the game team matching for the team to be matched.
[0145] The above method is implemented by a computer program. On the one hand, a to-be-matched team node is generated according to the to-be-matched team, and the to-be-matched team node is inserted into a to-be-matched queue sorted according to combat power information, so that the adjacent team nodes of the to-be-matched team node are nodes with combat power similar to that of the to-be-matched team node, and the target team to be matched with the to-be-matched team is determined in the candidate team nodes by determining the candidate team nodes in the adjacent team nodes; compared with the existing technology, the randomness of the team matching process is effectively reduced, the number of invalid traversals is reduced, the time loss in the team matching process is reduced, the team matching efficiency is improved, and the player's gaming experience is improved. On the other hand, after determining the candidate team node, the target team that can form a team with the to-be-matched team can be determined in the candidate team node based on the current number of people in the to-be-matched team. Since the candidate team node is a team node with similar combat power to the to-be-matched team, number matching is performed in the candidate team node to determine the target team, which can ensure that the target team is the team with the highest match in combat power and number of people with the to-be-matched team. At the same time, determining the target team in the candidate team node effectively narrows the matching range of number matching, further reduces the time cost in the game matching process, and thus improves the game team matching efficiency.
[0146] The memory 920 may include a volatile memory, such as a RAM 921, a cache unit 922, and may also include a non-volatile memory, such as a ROM 923. The memory 920 may also include one or more program modules 924, such program modules 924 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 924 may include each module in the above-mentioned device 800.
[0147] The bus 930 is used to realize the connection between different components of the electronic device 900, and may include a data bus, an address bus, and a control bus.
[0148] The electronic device 900 can communicate with one or more external devices 1000 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 940 .
[0149] The electronic device 900 can communicate with one or more networks through the network adapter 950. For example, the network adapter 950 can provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 950 can communicate with other modules of the electronic device 900 through the bus 930.
[0150] although Fig. 9Not shown, other hardware and / or software modules may also be provided in the electronic device 900, including but not limited to: a display, a microcode, a device driver, a redundant processor, an external disk drive array, a RAID system, a tape drive, and a data backup storage system.
[0151] As can be seen from the above, the technical solution of the present disclosure can be implemented as a method, an apparatus, a system, a computer program product, an electronic device, etc. Those skilled in the art can understand that various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, such as being respectively referred to as a "circuit", "module" or "system".
[0152] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. Those skilled in the art will easily think of other embodiments based on the specific embodiments provided by the present disclosure. Therefore, the specific embodiments provided by the present disclosure are only exemplary, and the scope and spirit of the present disclosure are indicated by the claims, and any variations, uses or adaptive changes of the present disclosure should be covered, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure.
Claims
1. A game team matching method, characterized in that: include: In response to receiving a team matching request of a to-be-matched team, generating a to-be-matched team node according to the first combat power information of the to-be-matched team and the current number of players, and inserting the to-be-matched team node into a to-be-matched queue; The queue to be matched includes one or more team nodes, and each of the team nodes is sorted according to the combat power information of each of the team nodes; Acquire an adjacent team node of the to-be-matched team node in the to-be-matched queue, and determine a candidate team node in the adjacent team nodes based on the first combat power information and the second combat power information of the adjacent team node; Based on the current number of players in the team to be matched, a number matching is performed in the candidate team node to determine the target team, and players in the target team are added to the team to be matched to complete the game team matching of the team to be matched.
2. The method according to claim 1, characterized in that: The step of obtaining the adjacent team node of the to-be-matched team node in the to-be-matched queue, and determining a candidate team node in the adjacent team node based on the first combat power information and the second combat power information of the adjacent team node, includes: acquiring combat power difference information between each of the second combat power information and the first combat power information, and determining the adjacent team node corresponding to the second combat power information when the combat power difference information is less than a combat power difference threshold as the candidate team node; Popping the candidate team node out of the to-be-matched queue to update the to-be-matched queue; In the updated to-be-matched queue, the adjacent team nodes of the to-be-matched team node are reacquired, and the candidate team node is determined in the adjacent team nodes until the combat power information difference between the second combat power information of the adjacent team node and the first combat power information is greater than the combat power difference threshold.
3. The method according to claim 2, characterized in that The acquiring the combat power difference information between each of the second combat power information and the first combat power information, and determining the adjacent team node corresponding to the second combat power information when the combat power difference information is less than a combat power difference threshold as the candidate team node, includes: Acquire first combat power difference information between the first combat power information and the second combat power information of a first adjacent team node, and obtain second combat power difference information between the first combat power information and the second combat power information of a second adjacent team node; When the first combat power difference information and the second combat power difference information are less than the combat power difference threshold, and the first combat power difference information is less than the second combat power difference information, the first adjacent team node corresponding to the first combat power difference information is determined as the candidate team node.
4. The method according to claim 1, characterized in that: The performing number matching in the candidate team node based on the current number of the team to be matched to determine the target team includes: Acquire team number configuration information based on the upper limit of the number of game teams; the team number configuration information is used to determine the team number matching strategy of the team to be matched according to the current number of the team to be matched; Searching the team number configuration information according to the current number of the team to be matched, so as to obtain the team number matching strategy corresponding to the team to be matched; In each of the candidate team nodes, a node of the team to be joined that meets the team number matching strategy is determined, and the target team is determined in the node of the team to be joined.
5. The method according to claim 4, characterized in that The obtaining of team number configuration information based on the upper limit of the number of game team members includes: Based on the upper limit of the number of members of the game team, determine multiple combinations of the current number of members of the team and the corresponding remaining number of members; Determine the number of nodes and nodes to be added to the team node according to the remaining number of players; A mapping relationship between the current number of members of the team, the number of members of the node to be added to the team, and the number of members of the node to be added to the team is established to generate the configuration information of the number of members of the team.
6. The method according to claim 4, characterized in that Before determining, among the candidate team nodes, a node to be added to the team that meets the team number matching strategy, the method further includes: The candidate team nodes are stored in different candidate queues according to the current number of people in each candidate team node; the current number of candidate team nodes included in the same candidate queue is the same, and in the same candidate queue, the candidate team nodes are sorted according to combat power information.
7. The method according to claim 6, characterized in that The step of determining, in each of the candidate team nodes, a team node to be joined that meets the team number matching strategy, and determining the target team in the team node to be joined includes: Based on the current number of candidate team nodes corresponding to each candidate queue and the team number matching strategy, determine the team node to be added in the candidate queue; A team corresponding to one of the team-to-be-joined nodes is determined as the target team, or teams corresponding to multiple team-to-be-joined nodes are combined to obtain the target team.
8. A game team matching device, characterized in that: include: A to-be-matched team node generation module is configured to, in response to receiving a team matching request of a to-be-matched team, generate a to-be-matched team node according to the first combat power information of the to-be-matched team and the current number of players, and insert the to-be-matched team node into a to-be-matched queue; The queue to be matched includes one or more team nodes, and each of the team nodes is sorted according to the combat power information of each of the team nodes; a candidate team node determination module, configured to obtain adjacent team nodes of the to-be-matched team node in the to-be-matched queue, and determine a candidate team node in the adjacent team nodes based on the first combat power information and the second combat power information of the adjacent team nodes; The target team determination module is configured to perform number matching in the candidate team node based on the current number of players in the team to be matched to determine the target team, and add the players in the target team to the team to be matched to complete the game team matching of the team to be matched.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.
