Game pet battle plan generation method, device, electronic device and storage medium
By identifying and analyzing the composition information of the opponent's team, predicting its starting lineup, and combining the player's team information to generate a battle plan, it solves the problem that players find it difficult to select targeted starting lineups, improving the game experience.
Patent Information
- Application Number
- CN202210793604.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2042-07-07
AI Technical Summary
It is difficult for ordinary players to choose targeted starting lineups in front of a variety of game pet teams, resulting in poor gaming experience.
By identifying the battle selection interface, determine the team composition information of the opponent's team, predict the opponent's starting lineup, and generate a battle plan based on the player's team information to show players to assist in the battle selection.
It realizes automatic analysis of opponent teams and start lineup prediction, helps players generate targeted battle plans, and improves the game experience.
Smart Images

Figure CN115317917B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device, electronic device and storage medium for generating a game pet battle plan. Background Art
[0002] At present, with the development of the diversity of battle-type virtual pet game play, pet battles are no longer limited to simple numerical competitions. In addition to the aspects that have a practical impact on the game pets themselves in terms of development, skill matching, point addition, team matching and other logistics, in actual battles, the selection of the starting lineup can often also have an impact on the final battle results. In order to avoid the loss of players due to a single gameplay, the game usually sets a large number of game pets, so that the team matching scheme is also very diverse. Therefore, facing a variety of teams, it is difficult for ordinary players to select a targeted starting lineup in their own team and then lay a victory advantage. At present, ordinary players only memorize some commonly used starting lineups and then select them according to their own game experience. However, this method requires players to have a certain amount of time to study the game itself, and in the face of many teams, the time spent also increases, which makes the player's game experience poor. Summary of the invention
[0003] In order to solve the above-mentioned problems existing in the prior art, the embodiments of the present application provide a method, device, electronic device and storage medium for generating a game pet battle plan, which can recommend a starting plan to the player according to the opponent's team, thereby improving the player's gaming experience.
[0004] In a first aspect, an embodiment of the present application provides a method for generating a game pet battle plan, the method comprising:
[0005] Perform region identification on the battle selection interface and determine the first region to display the opponent team;
[0006] Performing image recognition on the first area to determine first team composition information of the opponent team;
[0007] Based on the first team composition information, predict the opponent's first starting lineup;
[0008] Get the second team composition information of the player team;
[0009] Based on the first team composition information and the second team composition information, predict the opponent's second starting lineup;
[0010] Based on the first starting lineup and the second starting lineup, the battle plan is determined and displayed to the players to assist them in making battle choices.
[0011] In a second aspect, an embodiment of the present application provides a device for generating a game pet battle plan, comprising:
[0012] The recognition module is used to perform area recognition on the battle selection interface, determine a first area for displaying the opponent team, and perform image recognition on the first area to determine the first team composition information of the opponent team;
[0013] A prediction module, used to predict the opponent's first starting lineup based on the first team composition information, obtain the second team composition information of the player's team, and predict the opponent's second starting lineup based on the first team composition information and the second team composition information;
[0014] The generation module is used to determine the battle plan based on the first starting lineup and the second starting lineup, and display the battle plan to the player to assist the player in making a battle selection.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the method of the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to cause the computer to execute the method of the first aspect.
[0018] The implementation of the present application has the following beneficial effects:
[0019] In the implementation mode of the present application, by performing regional identification on the battle selection interface, the first area for displaying the opponent team is determined, and then the first team composition information of the opponent team is determined. Then, the opponent team's moves and gameplay are predicted based on the first team composition information, and then the first starting lineup under normal circumstances is predicted. Then, the second team composition information of the player's team is obtained, and then the opponent's second starting lineup is predicted based on the first team composition information and the second team composition information. Then, according to the first starting lineup and the second starting lineup, the battle plan for the first starting lineup and the second starting lineup is determined in the player's team, and the battle plan is displayed to the player to assist the player in making a battle selection. Thus, the automatic analysis of the opponent's team is realized, and then the possible starting lineup of the opponent in different situations is predicted, and then the player's own team information is collected to generate a battle plan for the opponent's starting lineup, and it is recommended to the player for reference to assist the player in making a battle lineup selection, thereby improving the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the implementation modes of the present application, the drawings required for use in the description of the implementation modes will be briefly introduced below. Obviously, the drawings described below are some implementation modes of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 A schematic diagram of the hardware structure of a device for generating a game pet battle plan provided in an embodiment of the present application;
[0022] Figure 2 A system framework diagram of a method for generating a game pet battle plan provided in an embodiment of the present application;
[0023] Figure 3 A flowchart of a method for generating a game pet battle plan provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of regional setting information provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of a battle selection interface provided in an embodiment of the present application;
[0026] Figure 6 A flowchart of a method for determining a first starting lineup according to first move configuration information and first attribute information of each game pet and information on the playing style of the opponent team provided in an embodiment of the present application;
[0027] Figure 7A functional module composition block diagram of a device for generating a game pet battle plan provided in an embodiment of the present application;
[0028] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0031] Reference to "embodiment" herein means that a particular feature, result, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0032] First, see Figure 1 , Figure 1 The hardware structure diagram of a game pet battle plan generation device provided in the embodiment of the present application is as follows. The game pet battle plan generation device 100 includes at least one processor 101, a communication line 102, a memory 103 and at least one communication interface 104.
[0033] In this embodiment, the processor 101 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0034] The communication link 102 may include a path to transmit information between the above components.
[0035] The communication interface 104 may be any transceiver-like device (eg, antenna, etc.) for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc.
[0036] The memory 103 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0037] In this embodiment, the memory 103 can exist independently and be connected to the processor 101 via the communication line 102. The memory 103 can also be integrated with the processor 101. The memory 103 provided in the embodiment of the present application can generally be non-volatile. Among them, the memory 103 is used to store computer-executable instructions for executing the scheme of the present application, and the execution is controlled by the processor 101. The processor 101 is used to execute the computer-executable instructions stored in the memory 103, so as to implement the method provided in the following embodiment of the present application.
[0038] In an optional implementation, the computer-executable instructions may also be referred to as application code, which is not specifically limited in this application.
[0039] In an optional embodiment, the processor 101 may include one or more CPUs, such as Figure 1 CPU0 and CPU1 in.
[0040] In an optional embodiment, the game pet battle plan generating device 100 may include multiple processors, such as Figure 11 and 107. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0041] In an optional embodiment, if the game pet battle plan generation device 100 is a server, for example, it can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. Then the game pet battle plan generation device 100 can also include an output device 105 and an input device 106. The output device 105 communicates with the processor 101 and can display information in a variety of ways. For example, the output device 105 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 106 communicates with the processor 101 and can receive user input in a variety of ways. For example, the input device 106 can be a mouse, a keyboard, a touch screen device or a sensor device.
[0042] The above-mentioned game pet battle plan generation device 100 can be a general device or a special device. The embodiment of the present application does not limit the type of the game pet battle plan generation device 100.
[0043] Secondly, Figure 2A system framework diagram of a method for generating a game pet battle plan provided by an embodiment of the present application. Specifically, the system may include: an information identification device 201, a plan generation device 202, and a database 203. Among them, the information identification device 201 may be a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a PDA, a laptop computer, a mobile Internet device MID (Mobile Internet Devices, referred to as: MID) and other electronic devices that can run games. Specifically, the information identification device 201 can identify the player's game interface during the game, and extract information from the game interface, and then send the extracted first team composition information and second team composition information to the plan generation device 202. The plan generation device 202 may be a server for receiving the first team composition information and the second team composition information sent by the information identification device 201, and analyzing them, so as to call the data in the database 203 according to the analysis results to generate a battle plan.
[0044] In this embodiment, automatic analysis of the opponent's team is achieved, and then the opponent's possible starting lineup in different situations is predicted. Then the player's own team information is collected to generate a battle plan for the opponent's starting lineup, and it is recommended to the player for reference to assist the player in selecting the battle lineup, thereby enhancing the player's gaming experience.
[0045] The following is an explanation of the method for generating a game pet battle plan disclosed in this application:
[0046] See also Figure 3 , Figure 3 A flowchart of a method for generating a game pet battle plan provided in an embodiment of the present application. The method for generating a game pet battle plan includes the following steps:
[0047] 301: Performing region identification on the battle selection interface to determine the first region for displaying the opponent team.
[0048] In this embodiment, the game interface of the player can be identified during the game operation to confirm that the player has entered the battle selection interface, and then a screenshot of the interface can be obtained to perform area identification. Specifically, when the player opens the game software for the first time, the game software will display an information collection request to the player while the registration and login interface pops up, requesting the player to grant the game software the right to collect relevant information of the player while the player is playing the game. Based on this, while the player is playing the game, the game software can identify the label of the currently displayed page and then determine the page the player is currently on. Then, when the player is in the battle selection interface, based on the information collection authority granted by the player when registering and logging in, the touch screen operation is triggered to obtain a screenshot of the battle selection interface.
[0049] In this embodiment, the interface layout of the battle selection interface is determined by the settings of the game software, and the page layout can be recorded in the regional setting information of the battle selection interface. Specifically, the regional setting information records the regional names and relative positions of all the regions included in the battle selection interface, for example: which regions the battle selection interface includes, the boundary shapes of these regions, the positions of these regions in the battle selection interface, the proportional relationship between the sizes of these regions and the size of the battle selection interface, etc. Therefore, according to the regional setting information, a schematic diagram of the battle selection interface can be obtained, for example: a certain regional setting information such as Figure 4 As shown, according to the regional setting information, the following can be obtained: Figure 5 Schematic diagram of the battle selection interface shown. Among them, area 501 is the battle selection area of the own side, and its area occupies 2 / 3 of the entire battle selection interface, and the vertex in the upper left corner coincides with the vertex in the upper left corner of the battle selection interface, and the vertex in the lower left corner also coincides with the vertex in the lower left corner of the battle selection interface. Area 502 is the opponent team display area, and its area occupies 2 / 9 of the entire battle selection interface, and the distance between the vertex in the upper right corner and the upper edge of the battle selection interface is 1 / 10 of the width of the battle selection interface, and the distance between the vertex in the upper right corner of the opponent team display area and the right edge of the battle selection interface is 1 / 15 of the length of the battle selection interface.
[0050] Based on this, in this embodiment, the regional coordinates of the first area (i.e., the opponent team display area) in the display screen can be determined by obtaining the regional setting information of the battle selection interface and the size information and resolution information of the display screen of the gaming device, and then the area determined by the regional coordinates in the display screen is used as the first area.
[0051] 302: Perform image recognition on the first area to determine first team composition information of the opponent team.
[0052] In this embodiment, the display area of the image and name of the game pet of the opponent team in the first area can be determined by the area recognition method, and then the feature extraction of the area is performed to obtain the corresponding image features, and then the image features of the image and name of each game pet in the database 203 are compared, and then the pet information of the game pet displayed in the first area is determined, and the pet information is used as the first team composition information. Among them, the area recognition method for identifying the display area of the image and name of the game pet of the opponent team in the first area is similar to the area recognition method for determining the first area displaying the opponent team in the battle selection interface in step 301, and will not be repeated here.
[0053] In addition, other image recognition methods commonly used in the art can also be applied to this embodiment to identify the image and name of the game pet displayed in the first area. The example described in this application is only one of the implementation methods and does not limit the image recognition method.
[0054] 303: Based on the first team composition information, predict the opponent's first starting lineup.
[0055] In this embodiment, the game pet with the highest usage rate in the first team composition information is determined as the first main pet according to the usage rate ranking list, and then the team library is queried according to the pet information of the first main pet to determine the first move information and first attribute information of each game pet in the opponent team, as well as the opponent team's play information. The usage rate ranking list is a ranking list of the usage rate of the game pets by players based on all the battle data between players. Therefore, the first starting lineup is determined according to the first move information and first attribute information of each game pet, as well as the opponent team's play information.
[0056] Specifically, in this embodiment, a method for determining the first starting lineup according to the first move configuration information and the first attribute information of each game pet and the playing information of the opponent team is provided, such as Figure 6 As shown, the method includes:
[0057] 601: Determine the core moves of the opponent team based on the opponent team's gameplay information.
[0058] In this embodiment, the birth of a gameplay is usually developed around a core move. For example, a certain move is to exchange the attack power of the game pet with that of a designated game pet. Then, around this move, a gameplay can be developed to exchange one's own low attack power with the enemy's high attack power to abolish the enemy's high attack power game pet; or a gameplay can be developed to exchange the high attack power of one's own game pet with low speed and defense for another game pet with high speed and high defense but low attack power, thereby creating an all-round game pet with high attack power, high defense, and high speed.
[0059] 602: According to the first move matching information and the first attribute information of each game pet, a game pet with a core move in the opponent team is determined as a core game pet, and pets other than the core game pet in the opponent team are determined as non-core game pets.
[0060] In this embodiment, according to the description in step 601, each gameplay is developed around the corresponding core moves. In each gameplay, the game pet with the core move is the core game pet of the team, and the activation of the entire team is carried out around the core game pet. Other pets are non-core game pets and play other roles, such as: auxiliary hands, assisting the core pet to use core moves; disrupting hands, disrupting the enemy and destroying the enemy's opportunity to use core moves; output hands, output, destroying the enemy's game pet, etc.
[0061] 603: Determine the positioning information of the non-core game pet in the opponent team according to the first skill matching information and the first attribute information of the non-core game pet.
[0062] In this embodiment, the type of moves of the non-core game pet can be determined according to the first move matching information, such as: offensive, auxiliary or disruptive; and the combat bias of the non-core game pet can be determined according to the first attribute information, such as: biased towards survival (high health or high defense) or biased towards function (high speed value). Based on this, the positioning information correspondence table can be matched according to the move type and the combat bias to determine the positioning information of the non-core game pet. Specifically, the positioning information correspondence table records the combination of move types and combat biases corresponding to different positioning information, such as the positioning information corresponding to the auxiliary type of move type and the combat bias towards survival is auxiliary. In this embodiment, the positioning information correspondence table can be obtained by machine learning of massive amounts of manually labeled game pet information.
[0063] 604: Determine the first release positioning information corresponding to the gameplay information.
[0064] In this embodiment, the first-time positioning information is the positioning information corresponding to the first-time game pet. Specifically, the main goal of all gameplays is to successfully perform core moves. Based on this, due to the core pet's own values or moves, the order and method of performing core moves are also different. The collection of these order and methods is the gameplay information. Based on this, through the gameplay information, it can be determined whether the core game pet is the first to appear directly or to be delayed. If it is the first to appear, what is the positioning of the other game pet that appears with it, and if it is delayed, what is the positioning of the first game pet.
[0065] For example, core pet B, which has core move A, has a low speed value and is easily targeted by the opponent's high-speed game pet when it first appears, and then cannot smoothly use the core move A. It is necessary to first put a high-speed attacker and disruptor on the field to eliminate the opponent's high-speed game pet and disrupt the opponent's core game pet, making it unable to use the core move. Based on this, the first positioning information corresponding to the gameplay information is: attack type and disruptor type.
[0066] 605: Determine the first starting game pet in the opponent team based on the starting positioning information.
[0067] In this embodiment, the positioning information of the first-launch game pet is the same as the first-launch positioning information, that is, a game pet with the same positioning information as the first-launch positioning information is found in the opponent team as the first-launch game pet.
[0068] 606: Use the combination of the first starting game pets as the first starting lineup.
[0069] In this embodiment, if the number of matched first-starting game pets exceeds the maximum number allowed by the starting lineup, it is possible to query whether there is a cooperation relationship between the matched first-starting game pets, and then use the first-starting game pets with a cooperation relationship as the first starting lineup.
[0070] 304: Obtain the second team composition information of the player team.
[0071] In this embodiment, the battle selection area of one's own team can be identified in the battle selection interface, and then the image recognition of the area can be performed to obtain the second team composition information of the player team. Specifically, the area recognition method for identifying the battle selection area of one's own team in the battle selection interface is similar to the area recognition method for determining the first area for displaying the opponent team in the battle selection interface in step 301, and will not be repeated here. At the same time, the method for performing image recognition on the battle selection area of one's own team to obtain the second team composition information of the player team is similar to the method for performing image recognition on the first area in step 302 to obtain the first team composition information of the opponent team, and will not be repeated here.
[0072] 305: Based on the composition information of the first team and the composition information of the second team, predict the opponent's second starting lineup.
[0073] In this embodiment, the regular starting lineup of the game team corresponding to the second team composition information can be determined according to the second team composition information. The regular starting lineup of the game team corresponding to the second team composition information is the normal expansion and selection of the second team information under normal circumstances. The method for determining the regular starting lineup is similar to the method for determining the first starting lineup in step 303, and will not be repeated here.
[0074] Then, the second starting lineup can be determined based on the first team information and the regular starting lineup. Specifically, the second move information and second attribute information of the game pet included in the regular starting lineup can be determined, and then the third move information and third attribute information that restrain the second move information and the second attribute information can be determined from the move library. Then, according to the third move information and the third attribute information, a match is made in the opponent team to determine the second starting game pet, wherein the move information of the second starting game pet includes the third move information, and the attribute information of the second starting game pet includes the third attribute information. Finally, the combination of the second starting game pets is used as the second starting lineup.
[0075] Therefore, based on the regular starting lineup, a starting lineup that has a counteractive effect on the regular starting lineup is determined as the opponent's second starting lineup, that is, predicting how the opponent will choose based on the idea of targeting the player, and then predicting the opponent's selected lineup in this case, that is, the second starting lineup.
[0076] 306: Determine a battle plan based on the first starting lineup and the second starting lineup, and display the battle plan to the player to assist the player in making battle selections.
[0077] In this embodiment, the first starting lineup is the lineup selected by the opponent when the battle is carried out normally without considering other circumstances, and the second starting lineup is the lineup selected when the opponent selects the lineup against the opponent's team. Based on this, the corresponding lineups can be selected for the two lineups as the exit plan to show to the player. The specific method of selecting the lineup is similar to the method of selecting the second starting lineup for the regular starting lineup in step 305, and will not be repeated here.
[0078] In summary, in the method for generating a game pet battle plan provided by the present invention, by performing regional identification on the battle selection interface, the first area for displaying the opponent team is determined, and then the first team composition information of the opponent team is determined. Then, the opponent team's moves and gameplay are predicted based on the first team composition information, and then the first starting lineup under normal circumstances is predicted. Then, the second team composition information of the player's team is obtained, and then the opponent's second starting lineup is predicted based on the first team composition information and the second team composition information. Then, according to the first starting lineup and the second starting lineup, the battle plan that can be used for the first starting lineup and the second starting lineup is determined in the player's team, and the battle plan is displayed to the player to assist the player in making a battle selection. Thus, automatic analysis of the opponent's team is realized, and then the possible starting lineup of the opponent in different situations is predicted, and then the player's own team information is collected to generate a battle plan for the opponent's starting lineup, and it is recommended to the player for reference to assist the player in making a battle lineup selection, thereby improving the player's gaming experience.
[0079] See also Figure 7 , Figure 7 This is a functional module block diagram of a game pet battle plan generation device provided in an embodiment of the present application. Figure 7 As shown, the game pet battle plan generating device 700 includes:
[0080] The identification module 701 is used to perform area identification on the battle selection interface, determine a first area for displaying the opponent team, and perform image recognition on the first area to determine the first team composition information of the opponent team;
[0081] The prediction module 702 is used to predict the first starting lineup of the opponent according to the first team composition information, obtain the second team composition information of the player team, and predict the second starting lineup of the opponent according to the first team composition information and the second team composition information;
[0082] The generation module 703 is used to determine a battle plan based on the first starting lineup and the second starting lineup, and display the battle plan to the player to assist the player in making a battle selection.
[0083] In an embodiment of the present invention, in predicting the first starting lineup of the opponent according to the first team composition information, the prediction module 702 is specifically used to:
[0084] According to the usage ranking list, the game pet with the highest usage rate in the first team composition information is determined as the first main pet;
[0085] According to the pet information of the first main pet, the team database is queried to determine the first move information and first attribute information of each game pet in the opponent team, as well as the gameplay information of the opponent team;
[0086] Determine the first starting lineup based on the first move set information and first attribute information of each game pet, as well as the opponent team's gameplay information.
[0087] In an embodiment of the present invention, in determining the first starting lineup according to the first move configuration information and the first attribute information of each game pet and the playing information of the opponent team, the prediction module 702 is specifically used to:
[0088] Determine the core moves of the opponent team based on the opponent team's gameplay information;
[0089] According to the first move matching information and the first attribute information of each game pet, the game pets with core moves in the opponent team are determined as core game pets, and the pets in the opponent team other than the core game pets are determined as non-core game pets;
[0090] Determine the positioning information of the non-core game pet in the opponent's team based on the first skill configuration information and the first attribute information of the non-core game pet;
[0091] Determine the first release location information corresponding to the gameplay information, wherein the first release location information is the location information corresponding to the first release game pet;
[0092] Determining a first starting game pet in the opponent team according to the starting positioning information, wherein the positioning information of the first starting game pet is the same as the starting positioning information;
[0093] Use the combination of the first starting game pets as the first starting lineup.
[0094] In an embodiment of the present invention, in predicting the second starting lineup of the opponent according to the first team composition information and the second team composition information, the prediction module 702 is specifically used to:
[0095] Determine, according to the second team composition information, a regular starting lineup of the game team corresponding to the second team composition information;
[0096] Determine the second starting lineup based on the first team information and the regular starting lineup.
[0097] In an embodiment of the present invention, in determining the second starting lineup according to the first team information and the regular starting lineup, the prediction module 702 is specifically used to:
[0098] Determine the secondary skill set information and secondary attribute information of the game pets included in the regular starting lineup;
[0099] Determine the third move combination information and the third attribute information that restrain the second move combination information and the second attribute information from the move library;
[0100] According to the third move matching information and the third attribute information, matching is performed in the opponent team to determine a second first-start game pet, wherein the move matching information of the second first-start game pet includes the third move matching information, and the attribute information of the second first-start game pet includes the third attribute information;
[0101] Use the combination of the second starting game pets as the second starting lineup.
[0102] In the embodiment of the present invention, in determining the battle plan according to the first starting lineup and the second starting lineup, the generating module 703 is specifically used to:
[0103] Determine the fourth move set information and fourth attribute information of the game pets included in the first starting lineup and the second starting lineup;
[0104] Determine the fifth move combination information and the fifth attribute information that restrain the fourth move combination information and the fourth attribute information from the move library;
[0105] According to the fifth move matching information and the fifth attribute information, matching is performed among the player teams to determine a third first-launch game pet, wherein the move matching information of the third first-launch game pet includes the fifth move matching information, and the attribute information of the third first-launch game pet includes the fifth attribute information;
[0106] Use the combination of the third first-launch game pets as a battle plan.
[0107] In an embodiment of the present invention, in performing region recognition on the battle selection interface and determining the first region for displaying the opponent team, the recognition module 701 is specifically used to:
[0108] Obtaining the regional setting information of the battle selection interface, as well as the size information and resolution information of the display screen of the gaming device, wherein the regional setting information is used to record the regional names and relative positions of all regions included in the battle selection interface;
[0109] Determining the region coordinates of the first region in the display screen according to the region setting information, the size information, and the resolution information;
[0110] The area determined by the area coordinates in the display screen is taken as the first area.
[0111] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device 800 includes a transceiver 801, a processor 802 and a memory 803. They are connected via a bus 804. The memory 803 is used to store computer programs and data, and can transmit the data stored in the memory 803 to the processor 802.
[0112] The processor 802 is used to read the computer program in the memory 803 and perform the following operations:
[0113] Perform region identification on the battle selection interface and determine the first region to display the opponent team;
[0114] Performing image recognition on the first area to determine first team composition information of the opponent team;
[0115] Based on the first team composition information, predict the opponent's first starting lineup;
[0116] Get the second team composition information of the player team;
[0117] Based on the first team composition information and the second team composition information, predict the opponent's second starting lineup;
[0118] Based on the first starting lineup and the second starting lineup, the battle plan is determined and displayed to the players to assist them in making battle choices.
[0119] In an embodiment of the present invention, in predicting the first starting lineup of the opponent according to the first team composition information, the processor 802 is specifically configured to perform the following operations:
[0120] According to the usage ranking list, the game pet with the highest usage rate in the first team composition information is determined as the first main pet;
[0121] According to the pet information of the first main pet, the team database is queried to determine the first move information and first attribute information of each game pet in the opponent team, as well as the gameplay information of the opponent team;
[0122] Determine the first starting lineup based on the first move set information and first attribute information of each game pet, as well as the opponent team's gameplay information.
[0123] In an embodiment of the present invention, in determining the first starting lineup according to the first move configuration information and the first attribute information of each game pet and the playing information of the opponent team, the processor 802 is specifically configured to perform the following operations:
[0124] Determine the core moves of the opponent team based on the opponent team's gameplay information;
[0125] According to the first move matching information and the first attribute information of each game pet, the game pets with core moves in the opponent team are determined as core game pets, and the pets in the opponent team other than the core game pets are determined as non-core game pets;
[0126] Determine the positioning information of the non-core game pet in the opponent's team based on the first skill configuration information and the first attribute information of the non-core game pet;
[0127] Determine the first release location information corresponding to the gameplay information, wherein the first release location information is the location information corresponding to the first release game pet;
[0128] Determining a first starting game pet in the opponent team according to the starting positioning information, wherein the positioning information of the first starting game pet is the same as the starting positioning information;
[0129] Use the combination of the first starting game pets as the first starting lineup.
[0130] In an embodiment of the present invention, in predicting the second starting lineup of the opponent according to the first team composition information and the second team composition information, the processor 802 is specifically configured to perform the following operations:
[0131] Determine, according to the second team composition information, a regular starting lineup of the game team corresponding to the second team composition information;
[0132] Determine the second starting lineup based on the first team information and the regular starting lineup.
[0133] In an embodiment of the present invention, in determining the second starting lineup according to the first team information and the regular starting lineup, the processor 802 is specifically configured to perform the following operations:
[0134] Determine the secondary skill set information and secondary attribute information of the game pets included in the regular starting lineup;
[0135] Determine the third move combination information and the third attribute information that restrain the second move combination information and the second attribute information from the move library;
[0136] According to the third move matching information and the third attribute information, matching is performed in the opponent team to determine a second first-start game pet, wherein the move matching information of the second first-start game pet includes the third move matching information, and the attribute information of the second first-start game pet includes the third attribute information;
[0137] Use the combination of the second starting game pets as the second starting lineup.
[0138] In an embodiment of the present invention, in determining a battle plan according to the first starting lineup and the second starting lineup, the processor 802 is specifically configured to perform the following operations:
[0139] Determine the fourth move set information and fourth attribute information of the game pets included in the first starting lineup and the second starting lineup;
[0140] Determine the fifth move combination information and the fifth attribute information that restrain the fourth move combination information and the fourth attribute information from the move library;
[0141] According to the fifth move matching information and the fifth attribute information, matching is performed among the player teams to determine a third first-launch game pet, wherein the move matching information of the third first-launch game pet includes the fifth move matching information, and the attribute information of the third first-launch game pet includes the fifth attribute information;
[0142] Use the combination of the third first-launch game pets as a battle plan.
[0143] In an embodiment of the present invention, in terms of performing region recognition on the battle selection interface and determining a first region for displaying the opponent team, the processor 802 is specifically configured to perform the following operations:
[0144] Obtaining the regional setting information of the battle selection interface, as well as the size information and resolution information of the display screen of the gaming device, wherein the regional setting information is used to record the regional names and relative positions of all regions included in the battle selection interface;
[0145] Determining the region coordinates of the first region in the display screen according to the region setting information, the size information, and the resolution information;
[0146] The area determined by the area coordinates in the display screen is taken as the first area.
[0147] It should be understood that the game pet battle plan generation device in this application may include a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a PDA, a laptop computer, a mobile Internet device MID (Mobile Internet Devices, referred to as: MID), a robot or a wearable device, etc. The above-mentioned game pet battle plan generation device is only an example, not an exhaustive list, including but not limited to the above-mentioned game pet battle plan generation device. In actual applications, the above-mentioned game pet battle plan generation device may also include: a smart vehicle terminal, a computer device, etc.
[0148] Through the description of the above implementation modes, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on such an understanding, all or part of the contribution of the technical solution of the present invention to the background technology can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation modes of the present invention or some parts of the implementation modes.
[0149] Therefore, the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement some or all steps of any of the game pet battle plan generation methods described in the above method implementation. For example, the storage medium may include a hard disk, a floppy disk, an optical disk, a tape, a disk, a USB flash drive, a flash memory, etc.
[0150] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the game pet battle plan generation methods described in the above method implementation.
[0151] It should be noted that, for the sake of simplicity, the aforementioned method implementations are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the implementations described in the specification are all optional implementations, and the actions and modules involved are not necessarily required by the present application.
[0152] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0153] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device implementation described above is only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0156] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0157] A person skilled in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0158] The above is a detailed introduction to the implementation methods of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above implementation methods is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for generating a game pet battle plan, characterized in that: The method comprises: Perform region identification on the battle selection interface and determine the first region to display the opponent team; Performing image recognition on the first area to determine first team composition information of the opponent team; Predict the opponent's first starting lineup based on the first team composition information; Get the second team composition information of the player team; predicting a second starting lineup of the opponent according to the first team composition information and the second team composition information; Determine a battle plan according to the first starting lineup and the second starting lineup, and display the battle plan to the player to assist the player in making a battle selection; The step of predicting the opponent's first starting lineup according to the first team composition information includes: Determine the game pet with the highest usage rate in the first team composition information as the first main pet according to the usage rate ranking list; Querying a team database according to the pet information of the first main pet, determining the first move configuration information and the first attribute information of each game pet in the opponent team, and the gameplay information of the opponent team; Determining the core moves of the opponent team according to the gameplay information of the opponent team; Determine, according to the first move matching information and the first attribute information of each game pet, a game pet with the core move in the opponent team as a core game pet, and regard pets in the opponent team other than the core game pet as non-core game pets; Determine the positioning information of the non-core game pet in the opponent team according to the first move configuration information and the first attribute information of the non-core game pet; Determine the first release location information corresponding to the gameplay information, wherein the first release location information is the location information corresponding to the first release game pet; Determining a first first-launch game pet in the opponent team according to the first-launch positioning information, wherein the positioning information of the first first-launch game pet is the same as the first-launch positioning information; The combination of the first starting game pets is used as the first starting lineup.
2. The method according to claim 1, characterized in that: The step of predicting the second starting lineup of the opponent according to the first team composition information and the second team composition information includes: Determine, according to the second team composition information, a regular starting lineup of the game team corresponding to the second team composition information; The second starting lineup is determined based on the first team composition information and the regular starting lineup.
3. The method according to claim 2, characterized in that Determining the second starting lineup according to the first team composition information and the regular starting lineup includes: Determine the second move configuration information and the second attribute information of the game pets included in the regular starting lineup; Determine from the move library the third move combination information and the third attribute information that restrain the second move combination information and the second attribute information; According to the third move matching information and the third attribute information, matching is performed in the opponent team to determine a second first-start game pet, wherein the move matching information of the second first-start game pet includes the third move matching information, and the attribute information of the second first-start game pet includes the third attribute information; The combination of the second starting game pets is used as the second starting lineup.
4. The method according to claim 1, characterized in that Determining a battle plan according to the first starting lineup and the second starting lineup includes: Determining fourth move configuration information and fourth attribute information of the game pets included in the first starting lineup and the second starting lineup; Determine from the move library the fifth move combination information and the fifth attribute information that restrain the fourth move combination information and the fourth attribute information; According to the fifth move matching information and the fifth attribute information, matching is performed in the player team to determine a third first-launch game pet, wherein the move matching information of the third first-launch game pet includes the fifth move matching information, and the attribute information of the third first-launch game pet includes the fifth attribute information; The combination of the third first-launch game pets is used as the battle plan.
5. The method according to claim 1, characterized in that: The step of performing area identification on the battle selection interface and determining a first area for displaying the opponent team includes: Acquire regional setting information of the battle selection interface, and size information and resolution information of a display screen of a gaming device, wherein the regional setting information is used to record the regional names and relative positions of all regions included in the battle selection interface; Determining the area coordinates of the first area in the display screen according to the area setting information, the size information and the resolution information; The area determined by the area coordinates in the display screen is used as the first area.
6. A device for generating a game pet battle plan, characterized in that: The device comprises: an identification module, configured to perform area identification on the battle selection interface, determine a first area for displaying the opponent team, and perform image recognition on the first area to determine first team composition information of the opponent team; A prediction module, configured to predict a first starting lineup of an opponent according to the first team composition information, obtain second team composition information of a player's team, and predict a second starting lineup of the opponent according to the first team composition information and the second team composition information; A generating module, configured to determine a battle plan according to the first starting lineup and the second starting lineup, and present the battle plan to a player to assist the player in making a battle selection; Wherein, in predicting the first starting lineup of the opponent according to the first team composition information, the prediction module is specifically used to: Determine the game pet with the highest usage rate in the first team composition information as the first main pet according to the usage rate ranking list; Querying a team database according to the pet information of the first main pet, determining the first move configuration information and the first attribute information of each game pet in the opponent team, and the gameplay information of the opponent team; Determining the core moves of the opponent team according to the gameplay information of the opponent team; Determine, according to the first move matching information and the first attribute information of each game pet, a game pet with the core move in the opponent team as a core game pet, and regard pets in the opponent team other than the core game pet as non-core game pets; Determine the positioning information of the non-core game pet in the opponent team according to the first move configuration information and the first attribute information of the non-core game pet; Determine the first release location information corresponding to the gameplay information, wherein the first release location information is the location information corresponding to the first release game pet; Determining a first first-launch game pet in the opponent team according to the first-launch positioning information, wherein the positioning information of the first first-launch game pet is the same as the first-launch positioning information; The combination of the first starting game pets is used as the first starting lineup.
7. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in the method described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Game lineup generation method and device, equipment and storage medium
CN113457152A
Information processing method and device for electronic pet in game and electronic equipment
CN114307171A