Equipment recommendation method, device, electronic device and computer readable storage medium
Through the method of random combination and equipment replacement, the problem of large and time-consuming equipment matching calculation in the prior art is solved, and more efficient equipment recommendation is achieved.
Patent Information
- Application Number
- CN202510010179.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-08
AI Technical Summary
The existing technology determines the matching of game equipment through exhaustive methods, which is huge in calculation and takes a lot of time, especially when there are more equipment.
By obtaining the equipment recommendation request for the game character, performing random combinations, determining the candidate equipment combination, and performing equipment replacement processing, we obtain the target equipment combination that meets the attribute requirements.
It reduces the calculation amount of equipment matching, reduces the time spent on matching, and improves matching efficiency.
Smart Images

Figure CN119770974A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to an equipment recommendation method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of science and technology, there are more and more equipment in games. In order to reduce the time spent by players in matching equipment, electronic devices can automatically match equipment and recommend the matched equipment to players.
[0003] Currently, electronic devices use an exhaustive method to determine the equipment that can be matched. However, when there are many pieces of equipment, the calculation amount of equipment matching through the exhaustive method is huge and it takes a lot of time. Summary of the invention
[0004] The embodiments of the present application provide an equipment recommendation method, device, electronic device and computer-readable storage medium, which can reduce the amount of calculation for equipment matching and reduce the time consumed for equipment matching.
[0005] In a first aspect, an embodiment of the present application provides an equipment recommendation method, the method comprising:
[0006] Obtaining an equipment recommendation request for the controlled game character, wherein the equipment recommendation request includes equipment attribute requirement conditions;
[0007] Based on the equipment recommendation request, randomly combining the equipment for the controlled game character to obtain at least two equipment combinations;
[0008] Determine a candidate equipment combination from the at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination;
[0009] The replaced equipment combination that meets the above equipment attribute requirements is determined as the target equipment combination, and based on the above target equipment combination, equipment is recommended for the above controlled game character.
[0010] In a second aspect, an embodiment of the present application further provides an equipment recommendation device, the device comprising:
[0011] An acquisition module, used to acquire an equipment recommendation request for a controlled game character, wherein the equipment recommendation request includes equipment attribute requirement conditions;
[0012] A combination module, configured to randomly combine the equipment for the controlled game character based on the equipment recommendation request to obtain at least two equipment combinations;
[0013] A replacement module, configured to determine a candidate equipment combination from the at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination;
[0014] The recommendation module is used to determine the replaced equipment combination that meets the above equipment attribute requirements as the target equipment combination, and recommend equipment for the above controlled game character based on the above target equipment combination.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; the above-mentioned processor loads instructions from the above-mentioned memory to execute any one of the equipment recommendation methods provided in the embodiments of the present application.
[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute any equipment recommendation method provided in an embodiment of the present application.
[0017] In an embodiment of the present application, an equipment recommendation request for a controlled game character is obtained, the equipment recommendation request including equipment attribute requirement conditions, and based on the equipment recommendation request, the equipment for the controlled game character is randomly combined to obtain at least two equipment combinations, a candidate equipment combination is determined from the at least two equipment combinations, and equipment replacement processing is performed based on the candidate equipment combination to obtain at least one replaced equipment combination, and the replaced equipment combination that meets the equipment attribute requirement conditions is determined as a target equipment combination, and based on the target equipment combination, equipment is recommended to the controlled game character, thereby achieving the target equipment combination that meets the equipment attribute requirement conditions by random combination and equipment replacement processing, without the need to obtain the target equipment combination by an exhaustive method, reducing the amount of calculation for obtaining the target equipment combination, improving the efficiency of obtaining the target equipment combination, and reducing the time consumed for obtaining the target equipment combination. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a schematic diagram of an equipment recommendation system provided in an embodiment of the present application;
[0020] Figure 2 This is a schematic diagram of an embodiment of the equipment recommendation method provided in the embodiment of the present application;
[0021] Figure 3is a schematic diagram of an attribute requirement condition setting interface provided in an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of a sub-window provided in an embodiment of the present application;
[0023] Figure 5 is a flowchart of another embodiment of the equipment recommendation method provided in the embodiments of the present application;
[0024] Figure 6 is a flowchart of another embodiment of the equipment recommendation method provided in the embodiments of the present application;
[0025] Figure 7 is a flowchart of another embodiment of the equipment recommendation method provided in the embodiments of the present application;
[0026] Figure 8 is a flowchart of another embodiment of the equipment recommendation method provided in the embodiments of the present application;
[0027] Fig. 9 is a structural schematic diagram of an equipment recommendation device provided in an embodiment of the present application;
[0028] Fig.10 It is 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 only 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 those skilled in the art without creative work are within the scope of protection of this application.
[0030] Before explaining the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained.
[0031] Among them, in the description of the embodiment of the present application, the terms "first", "second", etc. can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. In addition, the terms "including" and "having" and any of their variations 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 necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. "Multiple" refers to two or more.
[0032] The embodiments of the present application provide an equipment recommendation method, apparatus, electronic device, and computer-readable storage medium. Specifically, the equipment recommendation method of the embodiments of the present application can be executed by an electronic device, wherein the electronic device can be a terminal or a server.
[0033] The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc.
[0034] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or 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 (CDNs), as well as big data and artificial intelligence platforms.
[0035] For example, Figure 1 As shown, the electronic device is described by taking the terminal 10 as an example. The terminal 10 can obtain an equipment recommendation request for the controlled game character, the equipment recommendation request includes equipment attribute requirement conditions, and send the equipment recommendation request to the server 20. Based on the equipment recommendation request, the server 20 randomly combines the equipment for the controlled game character to obtain at least two equipment combinations, determines a candidate equipment combination from the at least two equipment combinations, and performs equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination, determines the replaced equipment combination that meets the equipment attribute requirement conditions as the target equipment combination, and sends the target equipment combination to the terminal 10. The terminal 10 recommends equipment for the controlled game character based on the target equipment combination.
[0036] The following is a detailed description of the embodiments in conjunction with the accompanying drawings. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0037] In this embodiment, a terminal is taken as an example for description. This embodiment provides an equipment recommendation method, such as Figure 2 As shown, the specific process of the equipment recommendation method can be as follows:
[0038] 201. Obtain an equipment recommendation request for a controlled game character, where the equipment recommendation request includes equipment attribute requirement conditions.
[0039] The controlled game character refers to a dynamic object that can be controlled in the game scene of the target game. The game scene is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene.
[0040] Equipment recommendation request refers to a request to trigger the recommendation of equipment for the controlled game character. The attribute of equipment refers to the ability that the equipment gives to the controlled game character, and the attribute value of equipment refers to the value corresponding to the attribute of equipment. The larger the attribute value of equipment, the stronger the ability that the equipment gives to the controlled game character.
[0041] The type of the attribute of the equipment in the equipment attribute requirement condition can be set according to the actual situation. For example, the attribute of the equipment in the equipment attribute requirement condition can be at least one of speed, critical strike, attack, defense and life.
[0042] The equipment attribute requirement condition refers to the target range of the sum of at least one attribute value of each equipment in the equipment combination required by the player. For example, when the attributes of the equipment in the equipment attribute requirement condition include critical strike and speed, the equipment attribute requirement condition can be the critical strike attribute range "AB" and the speed attribute range "CD", that is, the target range is the critical strike attribute range "AB" and the speed attribute range "CD", and the equipment attribute requirement condition is that the sum of the critical strike attribute values of each equipment in the equipment combination required by the player must be between AB, and the sum of the speed attribute values of each equipment must be between CD.
[0043] The way in which the terminal obtains equipment recommendation requests for the controlled game character can be set according to actual conditions. For example, the terminal can receive equipment recommendation requests sent by other terminals, or the terminal can obtain equipment recommendation requests in response to a trigger operation of the player. This embodiment is not limited here.
[0044] When the terminal obtains the equipment recommendation request in response to the trigger operation of the player, the equipment recommendation request for the controlled game character is obtained, including:
[0045] Display the attribute requirement condition setting interface;
[0046] In response to a trigger operation on the attribute requirement condition setting interface, obtaining equipment attribute requirement conditions;
[0047] Generate equipment recommendation request based on equipment attribute requirements.
[0048] The type of trigger operation on the attribute requirement setting interface can be set according to actual conditions. For example, the trigger operation on the attribute requirement setting interface can be at least one of a click operation and a slide operation, which is not limited in this embodiment.
[0049] For example, the attribute requirement setting interface can be as follows Figure 3 As shown, in response to the click operation of "Add +" of the attribute restriction, a sub-window is displayed, and the sub-window is as shown in FIG. Figure 4 As shown, the subwindow displays various attributes and the attribute value range of the target attribute among the various attributes. Based on the adjustment operation of the attribute value range, the required target range for the target attribute is generated, for example, Figure 4 As shown, the target attribute is critical strike, and the target range required for critical strike is 100.0-218.0.
[0050] 202. Based on the equipment recommendation request, randomly combine the equipment for the controlled game character to obtain at least two equipment combinations.
[0051] Among them, the equipment for the controlled game character may refer to the equipment that the controlled game character can use. Optionally, the equipment for the controlled game character may be the equipment for the controlled game character in the player's existing equipment, or may be the equipment for the controlled game character in the game platform where the target game is located. When the equipment for the controlled game character is the equipment for the controlled game character in the game platform where the target game is located, after the terminal recommends equipment for the controlled game character, the player may first purchase the recommended equipment combination and then use the recommended equipment combination. An equipment combination may include at least two equipment.
[0052] Since the equipment for the controlled game character is randomly combined based on the equipment recommendation request to obtain at least two equipment combinations, the at least two equipment combinations may include an equipment combination that meets the equipment attribute requirement conditions, and may also include an equipment combination that does not meet the equipment attribute requirement conditions. That is, the at least two equipment combinations include at least one of an equipment combination that meets the equipment attribute requirement conditions and an equipment combination that does not meet the equipment attribute requirement conditions.
[0053] 203. Determine a candidate equipment combination from the at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination.
[0054] The candidate equipment combination may be an equipment combination that meets the equipment attribute requirement condition, or may be an equipment combination that does not meet the equipment attribute requirement condition. The replaced equipment combination may be an equipment combination that meets the equipment attribute requirement condition, or may be an equipment combination that does not meet the equipment attribute requirement condition.
[0055] The number of candidate equipment combinations may be at least one, and equipment replacement processing is performed based on one candidate equipment combination to obtain at least one replaced equipment combination. When the number of candidate equipment combinations is two, equipment replacement processing is performed based on two candidate equipment combinations to obtain at least two replaced equipment combinations.
[0056] In some embodiments, the terminal may randomly determine a candidate equipment combination from at least two equipment combinations, or the process of determining a candidate equipment combination from at least two equipment combinations may also be:
[0057] Determine, from at least two equipment combinations, a first equipment combination that meets the equipment attribute requirement condition and / or a second equipment combination that does not meet the equipment attribute requirement condition;
[0058] A candidate equipment combination is determined from the first equipment combination and / or the second equipment combination.
[0059] When a candidate equipment combination is determined from the first equipment combination and the second equipment combination and the number of the candidate equipment combinations is multiple, the candidate equipment combination may be an equipment combination in the first equipment combination or an equipment combination in the second equipment combination.
[0060] When the equipment attribute requirement conditions are more stringent, the number of first equipment combinations that meet the equipment attribute requirement conditions in at least two equipment combinations is small or zero. If candidate equipment combinations are determined only from the first equipment combinations, it will be difficult to obtain enough target equipment combinations. Therefore, in this embodiment, the first equipment combination that meets the equipment attribute requirement conditions and / or the second equipment combination that does not meet the equipment attribute requirement conditions are determined from at least two equipment combinations, and the candidate equipment combination is determined from the first equipment combination and / or the second equipment combination, so that even if the number of first equipment combinations is small or zero, it is guaranteed that enough target equipment combinations are obtained, and the diversity of the candidate equipment combinations can be improved, so that the replaced equipment combination can more easily meet the needs of players.
[0061] In some embodiments, the candidate equipment combination may be randomly determined from the first equipment combination and / or the second equipment combination. Alternatively, the candidate equipment combination may be determined from the first equipment combination and / or the second equipment combination, including:
[0062] Determine a first candidate equipment combination from the first equipment combination, and / or determine a second candidate equipment combination from the second equipment combination;
[0063] A candidate equipment combination is determined from the first candidate equipment combination and / or the second candidate equipment combination.
[0064] Among them, since the equipment attribute requirement condition includes the target range of the sum of the attribute values of each piece of equipment, the sum of the attribute values of each piece of equipment in the first equipment combination is within the target range, therefore, the sum of the attribute values of each piece of equipment in the first equipment combination may be close to the upper limit of the target range, and the sum of the attribute values of each piece of equipment in the first equipment combination may also be close to the lower limit of the target range. The closer the sum of the attribute values of each piece of equipment in the first equipment combination is to the upper limit of the target range, the more the first equipment combination satisfies the needs of the player.
[0065] The first candidate equipment combination is the first equipment combination in which the sum of the attribute values of the individual equipment in the first equipment combination is closer to the upper limit of the target range.
[0066] The second candidate equipment combination is an equipment combination that is closer to the equipment attribute requirement condition among the equipment combinations that do not meet the equipment attribute requirement condition.
[0067] After determining the first candidate equipment combination and / or the second candidate equipment combination, the terminal may randomly determine a candidate equipment combination from the first candidate equipment combination and / or the second candidate equipment combination.
[0068] In this embodiment, since the first candidate equipment combination is the first equipment combination in which the sum of the attribute values of each equipment in the first equipment combination is closer to the upper limit of the target range, and the second candidate equipment combination is the equipment combination that does not meet the equipment attribute requirement conditions and is closer to the equipment attribute requirement conditions, the probability that the replaced equipment combination obtained based on the candidate equipment combination is an equipment combination that meets the equipment attribute requirement conditions is relatively high, thereby improving the efficiency of obtaining the target equipment combination, thereby improving the recommendation efficiency.
[0069] In some embodiments, the number of first equipment combinations can be determined. If the number of the first equipment combinations differs greatly from a first preset number condition, the first equipment combination and the second equipment combination are determined from at least two equipment combinations, the first candidate equipment combination is determined from the first equipment combination and the second candidate equipment combination is determined from the second equipment combination, and the candidate equipment combination is determined from the first candidate equipment combination and the second candidate equipment combination. If the number of the first equipment combinations differs slightly from the first preset number condition, the first equipment combination is determined from at least two equipment combinations, the first candidate equipment combination is determined from the first equipment combination, and the candidate equipment combination is determined from the first candidate equipment combination.
[0070] In some embodiments, before determining the first candidate equipment combination from the first equipment combination and / or determining the second candidate equipment combination from the second equipment combination, the method further includes:
[0071] Determine a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination, the first coefficient is used to indicate the degree to which the first equipment combination is recommended, and the second coefficient is used to indicate the degree of gap between the second equipment combination and the equipment attribute requirement condition;
[0072] Determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, includes:
[0073] Based on the first coefficient, a first candidate equipment combination is determined from the first equipment combination, and / or based on the second coefficient, a second candidate equipment combination is determined from the second equipment combination.
[0074] Among them, the larger the first coefficient of the first equipment combination is, the more recommended the first equipment combination is, the closer the sum of the attribute values of each equipment in the first equipment combination is to the upper limit of the target range, and the more the first equipment combination meets the needs of the player; the smaller the first coefficient of the first equipment combination is, the smaller the first equipment combination is, the less recommended the first equipment combination is, the closer the sum of the attribute values of each equipment in the first equipment combination is to the lower limit of the target range, and the less the first equipment combination meets the needs of the player.
[0075] The larger the second coefficient of the second equipment combination is, the larger the gap between the second equipment combination and the equipment attribute requirement conditions is, and the further away the second equipment combination is from the equipment attribute requirement conditions; the smaller the second coefficient of the second equipment combination is, the smaller the gap between the second equipment combination and the equipment attribute requirement conditions is, and the closer the second equipment combination is to the equipment attribute requirement conditions; or, the smaller the second coefficient of the second equipment combination is, the larger the gap between the second equipment combination and the equipment attribute requirement conditions is, and the further away the second equipment combination is from the equipment attribute requirement conditions; the larger the second coefficient of the second equipment combination is, the smaller the gap between the second equipment combination and the equipment attribute requirement conditions is, and the closer the second equipment combination is to the equipment attribute requirement conditions.
[0076] In this embodiment, the first coefficient of the first equipment combination and / or the second coefficient of the second equipment combination are determined, the first coefficient is used to indicate the degree to which the first equipment combination is recommended, and the second coefficient is used to indicate the degree of gap between the second equipment combination and the equipment attribute requirement conditions, based on the first coefficient, a first candidate equipment combination is determined from the first equipment combination, and / or, based on the second coefficient, a second candidate equipment combination is determined from the second equipment combination, so that the first candidate equipment combination is determined by the first coefficient and / or the second candidate equipment combination is determined by the second coefficient, so that the sum of the attribute values of each equipment in the first candidate equipment combination is closer to the upper limit of the target range, and the second candidate equipment combination is an equipment combination that is closer to the equipment attribute requirement conditions.
[0077] In some embodiments, determining a first coefficient for a first equipment combination and / or a second coefficient for a second equipment combination includes:
[0078] Based on the equipment attribute requirement condition, a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination is determined.
[0079] The method of determining the first coefficient based on the equipment attribute requirement condition and the method of determining the second coefficient based on the equipment attribute requirement condition may be different.
[0080] Specifically, the first coefficient can be determined based on the equipment attribute requirement condition through the fitness function, and the first coefficient can also be called fitness. The type of fitness function can be set according to actual conditions, for example, the fitness function can be one of a penalty function, a reward function and a multi-objective optimization function, which is not limited in this embodiment.
[0081] Since the sum of the attribute values of each equipment in the second equipment combination is not restricted when the fitness of the second equipment combination is calculated through the fitness function, the fitness of the second equipment combination may be higher than that of the first equipment combination. If the second coefficient of the second equipment combination is also calculated through the fitness function, a second candidate equipment with a high fitness but far away from the equipment attribute requirement conditions may be obtained. At this time, the candidate equipment combination determined based on the second candidate equipment is an equipment combination far away from the equipment attribute requirement conditions, and the probability that the replaced equipment combination obtained based on the candidate equipment combination is an equipment combination that meets the equipment attribute requirement conditions is relatively small, thereby reducing the recommendation efficiency.
[0082] Therefore, in this embodiment, the equipment attribute requirement condition includes the required equipment attribute value, and based on the equipment attribute requirement condition, determining the second coefficient of the second equipment combination includes:
[0083] Determine the attribute difference between the required equipment attribute value and the attribute value of the equipment in the second equipment combination;
[0084] Based on the attribute difference, a second coefficient for the second equipment combination is determined.
[0085] Among them, the required equipment attribute value is the lower limit of the target range corresponding to each attribute. For the convenience of description, the lower limit of the target range corresponding to each attribute is called the required first equipment attribute value, and the upper limit of the target range corresponding to each attribute is called the required second equipment attribute value.
[0086] The attribute value of the equipment in the second equipment combination is subtracted from the attribute value of the first equipment to obtain the attribute difference value for each attribute, or the attribute value of the equipment in the second equipment combination is subtracted from the attribute value of the first equipment to obtain the attribute difference value for each attribute.
[0087] After obtaining the attribute difference for each attribute, the terminal takes the absolute value of the attribute difference, and adds each absolute value to obtain the total difference value. Finally, the total difference value can be determined as the second coefficient of the second equipment combination, or the preset target value minus the total difference value can be used to obtain the second coefficient of the second equipment combination. The preset target value can be set according to actual conditions, for example, the preset target value is 10000 or 20000, which is not limited in this embodiment.
[0088] For example, the preset target value is 10000, and the second equipment combination includes equipment e1 and equipment e2. The attributes of equipment e1 and equipment e2 both include critical strike attribute and speed attribute. The critical strike attribute value of equipment e1 is A1, and the critical strike attribute value of equipment e2 is A2. The speed attribute value of equipment e1 is B1, and the speed attribute value of equipment e2 is B2. The first equipment attribute value of the critical strike attribute is A, and the first equipment attribute value of the speed attribute is B. Then the attribute differences for the critical strike attribute include (A1-A) and (A2-A), and the attribute differences for the speed attribute include (B1-B) and (B2-B). The total difference value is diff, diff=|A1-A|+|A2-A|+|B1-B|+|B2-B|, and the second coefficient is "10000-diff".
[0089] It is understandable that, since the orders of magnitude of the various attributes are different, before adding the various absolute values, the various absolute values may be converted into absolute values of the same order of magnitude and then added.
[0090] For example, the attribute value of the critical hit attribute is a number between 1-10, and the attribute value of the attack attribute is a number between 10000-20000, then divide the absolute value of the attack attribute by 1000 to get the absolute value after division, and then add the absolute value of the critical hit attribute and the absolute value of the attack attribute after division to get the total difference.
[0091] It can be understood that when the second coefficient of the second equipment combination is obtained by subtracting the total difference value from the preset target value, the larger the second coefficient of the second equipment combination is, the smaller the gap between the second equipment combination and the equipment attribute requirement conditions is, and the closer the second equipment combination is to the equipment attribute requirement conditions; the smaller the second coefficient of the second equipment combination is, the larger the gap between the second equipment combination and the equipment attribute requirement conditions is, and the further the second equipment combination is from the equipment attribute requirement conditions.
[0092] When the total difference value is determined as the second coefficient of the second equipment combination, the larger the second coefficient of the second equipment combination is, the larger the gap between the second equipment combination and the equipment attribute requirement conditions is, and the further away the second equipment combination is from the equipment attribute requirement conditions; the smaller the second coefficient of the second equipment combination is, the smaller the gap between the second equipment combination and the equipment attribute requirement conditions is, and the closer the second equipment combination is to the equipment attribute requirement conditions.
[0093] In this embodiment, the attribute difference between the required equipment attribute value and the attribute value of the equipment in the second equipment combination is determined, and based on the attribute difference, the second coefficient of the second equipment combination is determined, so that the second candidate equipment combination determined by the second coefficient is the second equipment combination that is closer to the equipment attribute requirement condition.
[0094] In some embodiments, the fitness of the second equipment combination can be calculated. If the fitness of the second equipment combination is less than a preset fitness, the second coefficient of the second equipment combination is determined to be 0. If the fitness of the second equipment combination is equal to or greater than the preset fitness, the attribute difference between the required equipment attribute value and the attribute value of the equipment in the second equipment combination is determined, and the second coefficient of the second equipment combination is determined based on the attribute difference.
[0095] The preset fitness can be determined based on the first coefficient. Specifically, the first coefficients are sorted, and then the Nth first coefficient among the sorted first coefficients is determined as the preset fitness. N is an integer, which can be set according to actual conditions, for example, N is 10 or 15, which is not limited in this embodiment.
[0096] Since the second equipment combination with a larger fitness is more suitable as the second candidate equipment combination, in this embodiment, the fitness of the second equipment combination is calculated. If the fitness of the second equipment combination is less than the preset fitness, the second coefficient of the second equipment combination is determined to be 0. If the fitness of the second equipment combination is equal to or greater than the preset fitness, the attribute difference between the required equipment attribute value and the attribute value of the equipment in the second equipment combination is determined. Based on the attribute difference, the second coefficient of the second equipment combination is determined, so that the second coefficient of the second equipment combination with a large fitness is greater than the second coefficient of the second equipment combination with a small fitness, so that the second candidate equipment combination obtained based on the second coefficient is more suitable for determining the candidate equipment combination, thereby further improving the probability that the replaced equipment combination obtained based on the candidate equipment combination meets the equipment attribute requirement conditions.
[0097] In some embodiments, the method of determining the first candidate equipment combination from the first equipment combination based on the first coefficient, and / or determining the second candidate equipment combination from the second equipment combination based on the second coefficient can be set according to actual conditions. For example, a selection algorithm, a minimum heap algorithm or a sorting method can be used to determine the first candidate equipment combination from the first equipment combination based on the first coefficient, and / or determine the second candidate equipment combination from the second equipment combination based on the second coefficient. This embodiment is not limited here.
[0098] When, through a ranking method, a first candidate equipment combination is determined from a first equipment combination based on a first coefficient, and / or, a second candidate equipment combination is determined from a second equipment combination based on a second coefficient, the first candidate equipment combination is determined from the first equipment combination based on the first coefficient, and / or, the second candidate equipment combination is determined from the second equipment combination based on the second coefficient, including:
[0099] sorting the first coefficients, and / or sorting the second coefficients;
[0100] The first equipment combination corresponding to the first first number of first coefficients is determined as the first candidate equipment combination, and / or the second equipment combination corresponding to the first second number of first coefficients is determined as the second candidate equipment combination.
[0101] Alternatively, before determining the first candidate equipment combination from the first equipment combination based on the first coefficient and / or determining the second candidate equipment combination from the second equipment combination based on the second coefficient, the first coefficients may be sorted and / or the second coefficients may be sorted. In this case, determining the first candidate equipment combination from the first equipment combination based on the first coefficient and / or determining the second candidate equipment combination from the second equipment combination based on the second coefficient includes:
[0102] The first equipment combination corresponding to the first first number of first coefficients is determined as the first candidate equipment combination, and / or the second equipment combination corresponding to the first second number of first coefficients is determined as the second candidate equipment combination.
[0103] The first number and the second number can be set according to actual conditions, and this embodiment does not limit this. The first number and the second number can be the same or different. The first number can be a fixed constant or a variable value, and the second number can be a fixed constant or a variable value.
[0104] For example, if the first number is 1500 and the second number is 1000, the first equipment combinations corresponding to the first coefficients of the first 1500 are determined as the first candidate equipment combinations, and the second equipment combinations corresponding to the first 1000 second coefficients are determined as the second candidate equipment combinations.
[0105] In this embodiment, the first coefficients are sorted, and / or the second coefficients are sorted, and the first equipment combination corresponding to the first first number of first coefficients is determined as the first candidate equipment combination, and / or the second equipment combination corresponding to the first second number of first coefficients is determined as the second candidate equipment combination, so as to quickly determine the first candidate equipment combination and the second candidate equipment combination.
[0106] In some embodiments, the candidate equipment combinations include two, and equipment replacement processing is performed based on the candidate equipment combinations to obtain at least one replaced equipment combination, including:
[0107] Interchanging at least one equipment in two candidate equipment combinations to obtain two candidate replaced equipment combinations;
[0108] Based on the two candidate replaced equipment combinations, two replaced equipment combinations are generated.
[0109] Among them, when an equipment is interchanged, for example, the candidate equipment combination includes candidate equipment combination e1 and candidate equipment combination e2, candidate equipment combination e1 includes equipment e11 and equipment e12, and candidate equipment combination e2 includes equipment e21 and equipment e22. The equipment e11 of the candidate equipment combination e1 and the equipment e22 of the candidate equipment combination e2 can be interchanged. At this time, the two candidate replaced equipment combinations obtained are candidate replaced equipment combination e3 and candidate replaced equipment combination e4, candidate replaced equipment combination e3 includes equipment e22 and equipment e12, and candidate replaced equipment combination e4 includes equipment e21 and equipment e11.
[0110] In some embodiments, based on two candidate replaced equipment combinations, two replaced equipment combinations are generated, including:
[0111] The two candidate replacement equipment combinations are determined as two replacement equipment combinations.
[0112] In this embodiment, two candidate post-replacement equipment combinations are determined as two post-replacement equipment combinations, and the post-replacement equipment combinations are obtained through cross processing.
[0113] In some embodiments, based on the two candidate replaced equipment combinations, the process of generating two replaced equipment combinations may also be:
[0114] Determine the interchangeability probability of the equipment combination after candidate replacement;
[0115] Exchanging at least one piece of equipment in the candidate post-replacement equipment combination that meets the preset exchange probability with the equipment for the controlled game character to obtain a post-replacement equipment combination;
[0116] The candidate post-replacement equipment combination that does not satisfy the interchange probability of the preset probability is determined as the post-replacement equipment combination.
[0117] The preset probability is a pre-set probability, which can be set according to actual conditions, for example, the preset probability is 10%. The swap probability that meets the preset probability may refer to a swap probability that is less than or equal to the preset probability, and the swap probability that does not meet the preset probability may refer to a swap probability that is greater than the preset probability.
[0118] The terminal may generate a random number corresponding to the candidate replacement equipment combination within a preset random number range, and then determine the interchange probability of the candidate replacement equipment combination according to the random number and the preset random number range.
[0119] For example, the preset probability is 10%, and the preset random number range is 1-100. If the random number of the candidate replaced equipment combination is 10, the interchange probability is 10%, and the interchange probability meets the preset probability. At least one equipment in the candidate replaced equipment combination is interchanged with the equipment for the controlled game character to obtain the replaced equipment combination. If the random number of the candidate replaced equipment combination is 20, the interchange probability is 20%, and the interchange probability does not meet the preset probability. The candidate replaced equipment combination is determined as the replaced equipment combination.
[0120] In this embodiment, at least one equipment in two candidate equipment combinations is interchanged to obtain two candidate replaced equipment combinations, the interchange probability of the candidate replaced equipment combinations is determined, at least one equipment in the candidate replaced equipment combinations that meets the preset interchange probability and the equipment for the controlled game character are interchanged to obtain the replaced equipment combination, and the candidate replaced equipment combinations that do not meet the preset interchange probability are determined as the replaced equipment combination, thereby obtaining the replaced equipment combination through crossover and mutation, thereby improving the diversity of the replaced equipment combinations.
[0121] In some embodiments, at least one equipment in two candidate equipment combinations can be randomly interchanged to obtain two candidate replaced equipment combinations; or, since the equipment includes part attributes, which are used to indicate the wearing part of the equipment, the equipment at the same wearing part in the two candidate equipment combinations can be interchanged.
[0122] For example, the equipment in the candidate equipment combination can exist in the form of part-equipment, that is, in the form of key-value, where the key represents the wearing part and the value represents the equipment. By swapping the values in the same two keys, two candidate replaced equipment combinations can be obtained.
[0123] It can be understood that when at least one equipment in the candidate replacement equipment combination that meets the preset probability of interchange and the equipment for the controlled game character are interchanged, the candidate replacement equipment combination that meets the preset probability of interchange can also be represented by key-value. At this time, the value and the key can be changed to achieve the interchange of at least one equipment in the candidate replacement equipment combination that meets the preset probability of interchange and the equipment for the controlled game character, or only the value can be changed to achieve the interchange of at least one equipment in the candidate replacement equipment combination that meets the preset probability of interchange and the equipment for the controlled game character.
[0124] 204. Determine the replaced equipment combination that meets the equipment attribute requirement conditions as the target equipment combination, and recommend equipment for the controlled game character based on the target equipment combination.
[0125] Among them, after obtaining the target equipment combination, the terminal can directly recommend the target equipment combination to the player, or, after obtaining the target equipment combination, the terminal can also recommend equipment for the controlled game character based on the target equipment combination when the number of the target equipment combination meets the first preset number condition. At this time, if the number of the target equipment combination does not meet the first preset number condition, the step of determining a candidate equipment combination from at least two equipments is returned to execute until the number of the target equipment combination meets the first preset number condition, and then the execution is stopped.
[0126] When recommending equipment for a controlled game character based on target equipment combinations, all target equipment combinations can be recommended to the controlled game character, or, when there are corresponding first coefficients for the target equipment combinations, the target equipment combinations corresponding to the first third number of first coefficients can also be recommended to the controlled game character.
[0127] The attribute values of equipment are discrete. When recommending equipment, if 6 equipment are to be recommended and the sum of the attribute values of the 6 equipment is the largest, after 5 equipment have been determined, although the first attribute value can be obtained by subtracting the attribute values of the other 5 from the largest attribute value, the 6th equipment cannot be determined based on the first attribute value because there may not be equipment with the first attribute value. Therefore, in the related art, equipment recommendation is performed through exhaustive method. However, when the number of equipment that can be matched is large, the exhaustive method is more complex, the amount of calculation is huge, and it takes a lot of time.
[0128] Therefore, in this embodiment, an equipment recommendation request for a controlled game character is obtained, the equipment recommendation request including equipment attribute requirement conditions, and based on the equipment recommendation request, the equipment for the controlled game character is randomly combined to obtain at least two equipment combinations, a candidate equipment combination is determined from the at least two equipment combinations, and equipment replacement processing is performed based on the candidate equipment combination to obtain at least one replaced equipment combination, and the replaced equipment combination that meets the equipment attribute requirement conditions is determined as the target equipment combination, and equipment is recommended to the controlled game character based on the target equipment combination, so as to obtain the target equipment combination that meets the equipment attribute requirement conditions by random combination and equipment replacement processing, without obtaining the target equipment combination by an exhaustive method, thereby reducing the computational complexity of obtaining the target equipment combination, reducing the amount of calculation for obtaining the target equipment combination, improving the efficiency of obtaining the target equipment combination, and reducing the time consumed for obtaining the target equipment combination.
[0129] In some embodiments, the present embodiment further includes:
[0130] Determine a first coefficient of a replacement equipment combination that meets the equipment attribute requirement condition;
[0131] Based on the target equipment combination, recommend equipment for the controlled game character, including:
[0132] Based on the first coefficient of the target equipment combination, equipment is recommended for the controlled game character.
[0133] The first coefficients are sorted, and then the first third number of target equipment combinations of the first coefficients are recommended to the player. The third number can be set according to actual conditions, for example, the third number can be 10 or 5, which is not limited in this embodiment.
[0134] The calculation process of the first coefficient of the replaced equipment combination that meets the equipment attribute requirement condition can refer to the calculation process of the first coefficient of the first equipment combination, which will not be repeated in this embodiment.
[0135] In this embodiment, the first coefficient of the replaced equipment combination that meets the equipment attribute requirement condition is determined so that the target equipment combination has the first coefficient, so as to sort the first coefficients of the target equipment combinations, and then recommend the first third number of target equipment combinations to the controlled game character, so that the recommended target equipment combination better meets the needs of the player.
[0136] In some embodiments, if the first equipment combination exists in the at least two equipment combinations, this embodiment further includes:
[0137] If there is a first equipment combination that meets the equipment attribute requirement condition among the at least two equipment combinations, the first equipment combination is determined as the target equipment combination.
[0138] Among them, if the candidate equipment combination is an equipment combination determined from the first equipment combination, the third equipment combination in the first equipment combination can also be determined as the target equipment combination, and the third equipment combination is the equipment combination in the first equipment combination except the candidate equipment combination.
[0139] In some embodiments, if a first candidate equipment combination is determined from the first equipment combination, this embodiment further includes:
[0140] If the first equipment combination exists, the first candidate equipment combination is determined as the target equipment combination.
[0141] If the candidate equipment combination is an equipment combination determined from the first candidate equipment combination, the third candidate equipment combination may also be determined as the target equipment combination, and the third candidate equipment combination is an equipment combination other than the candidate equipment combination in the first candidate equipment combination.
[0142] In some embodiments, based on the target equipment combination, recommending equipment for the controlled game character includes:
[0143] If the quantity of the target equipment combination meets the first preset quantity condition, equipment is recommended for the controlled game character based on the target equipment combination.
[0144] At this time, the present embodiment further includes:
[0145] If the number of the target equipment combination does not meet the first preset number condition, the process returns to the step of determining a candidate equipment combination from the first candidate equipment combination and / or the second candidate equipment combination until the number of the target equipment combination meets the first preset number condition.
[0146] Among them, the first preset quantity condition can be set according to actual conditions. For example, the first preset quantity condition can refer to being equal to the first preset quantity, and the first preset quantity is equal to or greater than the third quantity. It can be set according to actual conditions and this embodiment does not limit it here.
[0147] Optionally, the terminal may determine multiple candidate equipment combinations from at least two equipment combinations at one time, and then perform equipment replacement processing based on the multiple candidate equipment combinations, or the terminal may determine one candidate equipment combination from at least two equipments at one time.
[0148] After determining multiple candidate equipment combinations, the terminal obtains a target equipment combination based on the candidate equipment combinations, and checks whether the number of the target equipment combinations meets the first preset number condition. If not, the terminal returns to execute the step of determining the candidate equipment combination from the first candidate equipment combination and / or the second candidate equipment combination until the number of the target equipment combination meets the first preset number condition.
[0149] In this embodiment, if the number of target equipment combinations meets the first preset number condition, equipment is recommended for the controlled game character based on the target equipment combinations. If the number of target equipment combinations does not meet the first preset number condition, the process returns to the step of determining the candidate equipment combination from the first candidate equipment combination and / or the second candidate equipment combination until the number of target equipment combinations meets the first preset number condition and stops executing, thereby recommending enough target equipment combinations to the player and making the recommended target equipment combinations better meet the needs of the player.
[0150] In some embodiments, determining a candidate equipment combination from the first equipment combination and / or the second equipment combination includes:
[0151] triggering an iterative process, the iterative process comprising determining a candidate equipment combination from the first equipment combination and / or the second equipment combination;
[0152] If the number of the target equipment combination meets the first preset number condition, then based on the target equipment combination, equipment is recommended for the controlled game character, including:
[0153] If the quantity of the target equipment combination meets the first preset quantity condition, the target equipment combination is determined as the first equipment combination, and / or the second equipment combination is updated based on the replaced equipment combination that does not meet the equipment attribute requirement condition;
[0154] Return to execute the triggered iteration process, the iteration process includes the step of determining a candidate equipment combination from the first equipment combination and / or the second equipment combination, until the target equipment combinations obtained after a preset number of iterations are the same, and then recommend equipment for the controlled game character based on the target equipment combination.
[0155] If the candidate equipment combination is determined from the second equipment combination, the equipment combination in the second equipment combination except the candidate equipment combination is referred to as the fourth equipment combination.
[0156] After obtaining the replaced equipment combination that does not meet the equipment attribute requirement conditions, the terminal can determine the second coefficient of the replaced equipment combination that does not meet the equipment attribute requirement conditions, and determine the replaced equipment combination that does not meet the equipment attribute requirement conditions and the fourth equipment combination as the updated second equipment combination, thereby realizing the update of the second equipment combination, or, the replaced equipment combination that does not meet the equipment attribute requirement conditions and the second equipment combination can be determined as the updated second equipment combination, thereby realizing the update of the second equipment combination.
[0157] The preset number is a preset value, which can be set according to actual conditions. For example, the preset number can be 100 or 80, which is not limited in this embodiment.
[0158] Specifically, when the terminal obtains the target equipment combination in each iteration, the target equipment combination obtained in the current iteration can be compared with the target equipment combination obtained in the previous iteration. If the target equipment combination obtained in the current iteration is the same as the target equipment combination obtained in the previous iteration, the counter is increased by 1. When the value of the counter is a preset number, it indicates that the target equipment combinations obtained in the preset number of iterations are the same. When the value of the counter is not the preset number, a new iteration process is triggered. If the target equipment combination obtained in the current iteration is different from the target equipment combination obtained in the previous iteration, the counter is set to 0 and a new iteration process is triggered.
[0159] It can be understood that when there is a first coefficient in the target equipment combination, the target equipment combinations obtained after a preset number of iterations are the same, or the target equipment combinations with the first coefficients obtained after the preset number of iterations are the same.
[0160] In this embodiment, an iterative process is triggered, and the iterative process includes determining a candidate equipment combination from the first equipment combination and / or the second equipment combination; if the number of target equipment combinations meets a first preset number condition, the target equipment combination is determined as the first equipment combination, and / or the second equipment combination is updated based on a replaced equipment combination that does not meet the equipment attribute requirement condition; return to execute the triggered iterative process, and the iterative process includes the step of determining a candidate equipment combination from the first equipment combination and / or the second equipment combination, until the target equipment combinations obtained after a preset number of iterations are the same, based on the target equipment combination, recommending equipment for the controlled game character, so that the target equipment combination better meets the needs of the player.
[0161] In some embodiments, determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, includes:
[0162] triggering an iterative process, the iterative process comprising determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination;
[0163] If the number of the target equipment combination meets the first preset number condition, then based on the target equipment combination, equipment is recommended for the controlled game character, including:
[0164] If the quantity of the target equipment combination meets the first preset quantity condition, the target equipment combination is determined as the first equipment combination, and / or the second equipment combination is updated based on the replaced equipment combination that does not meet the equipment attribute requirement condition;
[0165] Return to execute the triggered iteration process, the iteration process includes the steps of determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, until the target equipment combinations obtained after a preset number of iterations are the same, and then recommending equipment for the controlled game character based on the target equipment combination.
[0166] If the candidate equipment combination is determined from the second candidate equipment combination, the equipment combination in the second candidate equipment combination except the candidate equipment combination is referred to as the fourth candidate equipment combination.
[0167] After obtaining the replaced equipment combination that does not meet the equipment attribute requirement conditions, the terminal can determine the second coefficient of the replaced equipment combination that does not meet the equipment attribute requirement conditions, and determine the replaced equipment combination that does not meet the equipment attribute requirement conditions and the fourth candidate equipment combination as the updated second equipment combination, thereby realizing the update of the second equipment combination, or, the replaced equipment combination that does not meet the equipment attribute requirement conditions and the second candidate equipment combination can be determined as the updated second equipment combination, thereby realizing the update of the second equipment combination.
[0168] The preset number is a preset value, which can be set according to actual conditions. For example, the preset number can be 100 or 80, which is not limited in this embodiment.
[0169] Specifically, when the terminal obtains the target equipment combination in each iteration, the target equipment combination obtained in the current iteration can be compared with the target equipment combination obtained in the previous iteration. If the target equipment combination obtained in the current iteration is the same as the target equipment combination obtained in the previous iteration, the counter is increased by 1. When the value of the counter is a preset number, it indicates that the target equipment combinations obtained in the preset number of iterations are the same. When the value of the counter is not the preset number, a new iteration process is triggered. If the target equipment combination obtained in the current iteration is different from the target equipment combination obtained in the previous iteration, the counter is set to 0 and a new iteration process is triggered.
[0170] It can be understood that when there is a first coefficient in the target equipment combination, the target equipment combinations obtained after a preset number of iterations are the same, or the target equipment combinations with the first coefficients obtained after the preset number of iterations are the same.
[0171] In this embodiment, an iterative process is triggered, and the iterative process includes determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination; if the number of target equipment combinations meets a first preset number condition, the target equipment combination is determined as the first equipment combination, and / or the second equipment combination is updated based on a replaced equipment combination that does not meet the equipment attribute requirement condition; return to execute the triggered iterative process, and the iterative process includes the steps of determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, until the target equipment combinations obtained after a preset number of iterations are the same, then based on the target equipment combination, equipment is recommended for the controlled game character, so that the target equipment combination better meets the needs of the player.
[0172] In some embodiments, triggering an iterative process, the iterative process comprising determining a first candidate equipment combination from the first equipment combination, comprises:
[0173] triggering an iteration process, the iteration process including determining the number of iterations corresponding to the iteration process;
[0174] Based on the number of iterations, determining a first number of first candidate equipment combinations;
[0175] Based on the first quantity, a first candidate equipment combination is determined from the first equipment combination.
[0176] The number of iterations in the first iteration process is 1, and the number of iterations in the second iteration process is 2.
[0177] After obtaining the number of iterations, the terminal may multiply the preset weight coefficient by the number of iterations to obtain a first value, and then subtract the first value from the preset value to obtain a second value, and determine the larger value of the third value and the second value as the first quantity, that is, the number of iterations may be substituted into the following formula for calculation to obtain the first quantity:
[0178] m=max(300, int(self.elite_N-0.5*self.it))
[0179] Among them, m represents the first number, 300 represents the third value, int represents the integer type, self.elite_N represents the preset value, 0.5 represents the preset weight coefficient, and self.it represents the number of iterations.
[0180] It can be seen from the above formula that as the number of iterations increases, the first number becomes smaller, so that as the number of iterations increases, the candidate equipment combination determined from the first candidate equipment combination is closer to the upper limit of the target range in the equipment attribute requirement conditions, further increasing the probability that the replaced equipment combination meets the equipment attribute requirement conditions.
[0181] In some embodiments, if the number of target equipment combinations meets a first preset number condition, then recommending equipment for the controlled game character based on the target equipment combinations includes:
[0182] If the number of the target equipment combination meets the first preset number condition, deduplication processing is performed on the target equipment combination to obtain a processed equipment combination;
[0183] Based on the processed equipment combination, recommend equipment for the controlled game character.
[0184] The similarity between each target equipment combination may be calculated, and one of two target equipment combinations whose similarity is greater than a preset similarity may be removed, thereby achieving deduplication processing of the target equipment combinations.
[0185] Specifically, the terminal can determine the similarity between each target equipment combination based on the number of identical equipment included in each target equipment combination. The specific calculation algorithm can be selected according to the actual situation. For example, the similarity between each target equipment combination can be determined by the Jaccard similarity coefficient algorithm or the Dice coefficient algorithm. This embodiment is not limited here.
[0186] Since similar target equipment combinations may be obtained, or the target equipment combinations may tend to be the same as the number of iterations increases, if deduplication is not performed, the target equipment combinations will lose diversity. Therefore, in this embodiment, if the number of target equipment combinations meets the first preset number condition, the target equipment combinations are deduplicated to obtain processed equipment combinations, and based on the processed equipment combinations, equipment is recommended for the controlled game characters, thereby ensuring the diversity of the recommended equipment combinations.
[0187] As can be seen from the above content, in an embodiment of the present application, an equipment recommendation request for a controlled game character is obtained, the equipment recommendation request includes equipment attribute requirement conditions, based on the equipment recommendation request, the equipment for the controlled game character is randomly combined to obtain at least two equipment combinations, a candidate equipment combination is determined from the at least two equipment combinations, and equipment replacement processing is performed based on the candidate equipment combination to obtain at least one replaced equipment combination, the replaced equipment combination that meets the equipment attribute requirement conditions is determined as the target equipment combination, and based on the target equipment combination, equipment is recommended to the controlled game character, so that the target equipment combination that meets the equipment attribute requirement conditions is obtained by random combination and equipment replacement processing, without the need to obtain the target equipment combination by an exhaustive method, thereby reducing the amount of calculation for obtaining the target equipment combination, improving the efficiency of obtaining the target equipment combination, and reducing the time consumed for obtaining the target equipment combination.
[0188] According to the following Figure 5, further illustrate the equipment recommendation method provided in this application.
[0189] 501. Obtain an equipment recommendation request for a controlled game character, where the equipment recommendation request includes equipment attribute requirement conditions.
[0190] 502. Based on the equipment recommendation request, randomly combine the equipment for the controlled game character to obtain at least two equipment combinations.
[0191] 503. Determine a first equipment combination that meets the equipment attribute requirement condition from at least two equipment combinations, obtain a first coefficient of the first equipment combination, and sort the first coefficients.
[0192] 504. Trigger an iterative process, where the iterative process includes determining a first quantity based on the number of iterations corresponding to the iterative process, determining first equipment combinations corresponding to the first first quantity of first coefficients as first candidate equipment combinations, and the first candidate equipment combinations constitute a first set.
[0193] The first coefficient of the first equipment combination can be determined by a fitness function. As the number of iterations increases, the first number decreases, that is, the number of iterations and the first number are negatively correlated.
[0194] 505. Determine two candidate equipment combinations from the first set.
[0195] Among them, the two candidate equipment combinations are also called parent individuals.
[0196] In the related art, the first number is a fixed constant. If the first number is large, it is difficult to randomly select the first candidate equipment combination with the first coefficient ranked first as the candidate equipment combination. In this embodiment, the number of first candidate equipment combinations in each iteration process is determined by the number of iterations, so that the first candidate equipment combination with the first coefficient ranked first can be randomly selected as the candidate equipment combination, thereby improving the quality of the replaced equipment combination determined based on the two candidate equipment combinations.
[0197] 506. Perform an exchange process on at least one equipment in the two candidate equipment combinations to obtain two candidate replaced equipment combinations.
[0198] 507. Determine the interchange probability of the candidate replaced equipment combination, interchange at least one equipment in the candidate replaced equipment combination that satisfies the preset interchange probability with the equipment for the controlled game character to obtain the replaced equipment combination, and determine the candidate replaced equipment combination that does not satisfy the preset interchange probability as the replaced equipment combination.
[0199] 508. Determine whether the equipment combination after replacement meets the equipment attribute requirements.
[0200] 509. If the replaced equipment combination meets the equipment attribute requirement condition, determine the first coefficient of the replaced equipment combination, and add the replaced equipment combination to the first set.
[0201] 5010. Determine whether the number of target equipment combinations in the first set meets a first preset number condition.
[0202] 5011. If the conditions are met, de-duplicate the target equipment combination in the first set to obtain a processed equipment combination.
[0203] 5012. Determine the processed equipment combination as the first equipment combination, and return to execute step 504 until the processed equipment combinations corresponding to the first third number of first coefficients obtained after a preset number of iterations are all the same, and then stop the iteration process.
[0204] When returning to execute step 504, the iterative process triggered is a new iterative process.
[0205] 5013. Recommend the processed equipment combinations corresponding to the first third number of first coefficients to the controlled game character.
[0206] 5014. If the number of target equipment combinations in the first set does not meet the first preset number condition, return to execute step 505.
[0207] In this embodiment, a genetic algorithm is applied to equipment recommendation, and each equipment combination is regarded as an individual in a population. By simulating the gene exchange and mutation process of evolution, the fitness of the entire population with respect to the fitness function is gradually iterated, and finally an individual with a larger fitness is obtained, that is, an equipment combination with a larger fitness is obtained. The equipment combination with a larger fitness can meet the needs of players to a greater extent, reduce the computational complexity of the equipment combination, reduce the time consumed by the equipment combination, and improve the efficiency of equipment recommendation.
[0208] In addition, in this embodiment, multiple iterations are performed, and the iterative process is stopped only when the processed equipment combinations corresponding to the first third number of first coefficients obtained after a preset number of iterations are all the same, thereby improving the quality of the final recommended processed equipment combination. For example, Figure 6 shown.
[0209] According to the following Figure 7 , further illustrate the recommended method for the equipment provided in this application.
[0210] 701. Obtain an equipment recommendation request for a controlled game character, where the equipment recommendation request includes equipment attribute requirement conditions.
[0211] 702. Based on the equipment recommendation request, randomly combine the equipment for the controlled game character to obtain at least two equipment combinations.
[0212] 703. Determine, from at least two equipment combinations, a first equipment combination that meets the equipment attribute requirement condition and a second equipment combination that does not meet the equipment attribute requirement condition.
[0213] 704. Determine a first coefficient of the first equipment combination, sort the first coefficient, determine a second coefficient of the second equipment combination, and sort the second coefficient.
[0214] The first coefficient can be determined by a fitness function. The equipment attribute requirement condition includes the required equipment attribute value, and the second coefficient can be determined by:
[0215] Determine the attribute difference between the required equipment attribute value and the attribute value of the equipment in the second equipment combination;
[0216] Based on the attribute difference, a second coefficient for the second equipment combination is determined.
[0217] 705. Trigger an iterative process, the iterative process comprising determining a first quantity based on the number of iterations corresponding to the iterative process, determining a first equipment combination corresponding to a first first quantity of first coefficients as a first candidate equipment combination, the first candidate equipment combinations forming a first set, determining a second equipment combination corresponding to a first second quantity of second coefficients as a second candidate equipment combination, the second candidate equipment combinations forming a second set.
[0218] 706. Randomly determine two candidate equipment combinations from the first candidate equipment combination and / or the second candidate equipment combination.
[0219] Among them, the two candidate equipment combinations may both be the first candidate equipment combination, or the two candidate equipment combinations may both be the second candidate equipment combination, or one candidate equipment combination may be the first candidate equipment combination and the other candidate equipment combination may be the second candidate equipment combination.
[0220] 707. Interchange at least one equipment in the two candidate equipment combinations to obtain two candidate replaced equipment combinations.
[0221] 708. Determine the interchange probability of the candidate replaced equipment combination, interchange at least one equipment in the candidate replaced equipment combination that meets the preset interchange probability with the equipment for the controlled game character to obtain the replaced equipment combination, and determine the candidate replaced equipment combination that does not meet the preset interchange probability as the replaced equipment combination.
[0222] 709. Determine whether the equipment combination after replacement meets the equipment attribute requirements.
[0223] 7010. If the replaced equipment combination meets the equipment attribute requirement condition, determine the first coefficient of the replaced equipment combination, and add the replaced equipment combination to the first set.
[0224] 7011. If the replaced equipment combination does not meet the equipment attribute requirement condition, determine the second coefficient of the replaced equipment combination, add the replaced equipment combination to the second set, and return to execute step 706.
[0225] 7012. Determine whether the number of target equipment combinations in the first set meets a first preset number condition.
[0226] 7013. If the conditions are met, deduplication processing is performed on the target equipment combination in the first set to obtain a processed equipment combination.
[0227] 7014. Determine the processed equipment combination as the first equipment combination, determine the equipment combination in the second set as the second equipment combination, and return to execute step 705 until the processed equipment combinations corresponding to the first third number of first coefficients obtained after a preset number of iterations are the same, and then stop the iteration process.
[0228] 7015. Recommend the processed equipment combination corresponding to the first third number of the first coefficients to the controlled game character.
[0229] 7016. If the number of target equipment combinations in the first set does not meet the first preset number condition, return to step 706.
[0230] In the related art, when the equipment attribute requirements are more stringent, the number of first equipment combinations is small, resulting in a small number of first candidate equipment combinations. Only determining candidate equipment combinations from the first candidate equipment combinations will result in a small number of replaced equipment combinations.
[0231] In this embodiment, the genetic algorithm is optimized and applied to equipment recommendation (such as Figure 8 As shown), a candidate equipment combination is determined from the first candidate equipment combination and the second candidate equipment combination, so that even if the number of the first candidate equipment combinations is small, enough replacement equipment combinations can be obtained, thereby obtaining enough target equipment combinations, and since the candidate equipment combinations are determined from the first candidate equipment combination and the second candidate equipment combination, the diversity of the candidate equipment combinations can be enriched, making it easier to obtain a target equipment combination with a higher first coefficient (that is, it is easier to obtain a target equipment combination with a higher fitness, and a target equipment combination with a higher fitness can better meet the needs of players).
[0232] In order to better implement the above method, the embodiment of the present application also provides an equipment recommendation device, which can be specifically integrated into an electronic device, such as a computer device, which can be a terminal, a server, or other device.
[0233] Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer and other devices; the server can be a single server or a server cluster composed of multiple servers.
[0234] For example, in this embodiment, the method of the embodiment of the present application is described in detail by taking the equipment recommendation device specifically integrated in the terminal as an example. This embodiment provides an equipment recommendation device, such as Fig. 9 As shown, the equipment recommendation device may include:
[0235] The acquisition module 901 is used to acquire an equipment recommendation request for the controlled game character, where the equipment recommendation request includes equipment attribute requirement conditions.
[0236] The combination module 902 is used to randomly combine the equipment for the controlled game character based on the equipment recommendation request to obtain at least two equipment combinations.
[0237] The replacement module 903 is used to determine a candidate equipment combination from at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination.
[0238] The recommendation module 904 is used to determine the replaced equipment combination that meets the equipment attribute requirement conditions as the target equipment combination, and recommend equipment for the controlled game character based on the target equipment combination.
[0239] In some embodiments, the recommendation module 904 is further configured to perform:
[0240] If there is a first equipment combination that meets the equipment attribute requirement condition among the at least two equipment combinations, the first equipment combination is determined as the target equipment combination.
[0241] In some embodiments, the replacement module 903 is specifically configured to execute:
[0242] Determine, from at least two equipment combinations, a first equipment combination that meets the equipment attribute requirement condition and / or a second equipment combination that does not meet the equipment attribute requirement condition;
[0243] A candidate equipment combination is determined from the first equipment combination and / or the second equipment combination.
[0244] In some embodiments, the replacement module 903 is specifically configured to execute:
[0245] Determine a first candidate equipment combination from the first equipment combination, and / or determine a second candidate equipment combination from the second equipment combination;
[0246] A candidate equipment combination is determined from the first candidate equipment combination and / or the second candidate equipment combination.
[0247] In some embodiments, the above apparatus further includes a determination module, the determination module being configured to execute:
[0248] Determine a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination, the first coefficient is used to indicate the degree to which the first equipment combination is recommended, and the second coefficient is used to indicate the degree of gap between the second equipment combination and the equipment attribute requirement condition;
[0249] The replacement module 903 is specifically used to execute:
[0250] Based on the first coefficient, a first candidate equipment combination is determined from the first equipment combination, and / or based on the second coefficient, a second candidate equipment combination is determined from the second equipment combination.
[0251] In some embodiments, the determination module is specifically configured to perform:
[0252] Based on the equipment attribute requirement condition, a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination is determined.
[0253] In some embodiments, the equipment attribute requirement condition includes a required equipment attribute value, and the determination module is specifically used to perform:
[0254] Determine the attribute difference between the required equipment attribute value and the attribute value of the equipment in the second equipment combination;
[0255] Based on the attribute difference, a second coefficient for the second equipment combination is determined.
[0256] In some embodiments, the replacement module 903 is specifically configured to execute:
[0257] sorting the first coefficients, and / or sorting the second coefficients;
[0258] The first equipment combination corresponding to the first first number of first coefficients is determined as the first candidate equipment combination, and / or the second equipment combination corresponding to the first second number of first coefficients is determined as the second candidate equipment combination.
[0259] In some embodiments, the determination module is specifically configured to perform:
[0260] Determine a first coefficient of a replacement equipment combination that meets the equipment attribute requirement condition;
[0261] The recommendation module 904 is specifically used to perform:
[0262] Based on the first coefficient of the target equipment combination, equipment is recommended for the controlled game character.
[0263] In some embodiments, the recommendation module 904 is further configured to perform:
[0264] If the first equipment combination exists, the first candidate equipment combination is determined as the target equipment combination.
[0265] In some embodiments, the recommendation module 904 is specifically configured to perform:
[0266] If the quantity of the target equipment combination meets the first preset quantity condition, equipment is recommended for the controlled game character based on the target equipment combination.
[0267] In some embodiments, the replacement module 903 is specifically configured to execute:
[0268] triggering an iterative process, the iterative process comprising determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination;
[0269] The recommendation module 904 is specifically used to perform:
[0270] If the quantity of the target equipment combination meets the first preset quantity condition, the target equipment combination is determined as the first equipment combination, and / or the second equipment combination is updated based on the replaced equipment combination that does not meet the equipment attribute requirement condition;
[0271] Return to execute the triggered iteration process, the iteration process includes the steps of determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, until the target equipment combinations obtained after a preset number of iterations are the same, and then recommending equipment for the controlled game character based on the target equipment combination.
[0272] In some embodiments, the replacement module 903 is specifically configured to execute:
[0273] triggering an iteration process, the iteration process including determining the number of iterations corresponding to the iteration process;
[0274] Based on the number of iterations, determining a first number of first candidate equipment combinations;
[0275] Based on the first quantity, a first candidate equipment combination is determined from the target equipment combination.
[0276] In some embodiments, the recommendation module 904 is specifically configured to perform:
[0277] If the number of the target equipment combination meets the first preset number condition, deduplication processing is performed on the target equipment combination to obtain a processed equipment combination;
[0278] Based on the processed equipment combination, recommend equipment for the controlled game character.
[0279] In some embodiments, the replacement module 903 is further configured to execute:
[0280] If the number of the target equipment combination does not meet the first preset number condition, the process returns to the step of determining a candidate equipment combination from the first candidate equipment combination and / or the second candidate equipment combination until the number of the target equipment combination meets the first preset number condition.
[0281] In some embodiments, the replacement module 903 is specifically configured to execute:
[0282] Interchange at least one of the two candidate equipment combinations to obtain two candidate replaced equipment combinations;
[0283] Based on the two candidate replaced equipment combinations, two replaced equipment combinations are generated.
[0284] In some embodiments, the replacement module 903 is specifically configured to execute:
[0285] The two candidate replacement equipment combinations are determined as two replacement equipment combinations.
[0286] In some embodiments, the replacement module 903 is specifically configured to execute:
[0287] Determine the interchangeability probability of the equipment combination after candidate replacement;
[0288] Exchanging at least one piece of equipment in the candidate post-replacement equipment combination that meets the preset exchange probability with the equipment for the controlled game character to obtain a post-replacement equipment combination;
[0289] The candidate post-replacement equipment combination that does not satisfy the interchange probability of the preset probability is determined as the post-replacement equipment combination.
[0290] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0291] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Fig.10 As shown, Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1000 includes a processor 1001 having one or more processing cores, a memory 1002 having one or more computer-readable storage media, and a computer program stored in the memory 1002 and executable on the processor. The processor 1001 is electrically connected to the memory 1002. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0292] Processor 1001 is the control center of electronic device 1000. It uses various interfaces and lines to connect various parts of the entire electronic device 1000, executes various functions of electronic device 1000 and processes data by running or loading software programs and / or modules stored in memory 1002, and calling data stored in memory 1002, thereby monitoring electronic device 1000 as a whole.
[0293] In the embodiment of the present application, the processor 1001 in the electronic device 1000 will load instructions corresponding to the processes of one or more application programs into the memory 1002 according to the following steps, and the processor 1001 will run the application programs stored in the memory 1002, thereby realizing various functions, such as:
[0294] Obtaining an equipment recommendation request for the controlled game character, the equipment recommendation request including equipment attribute requirement conditions;
[0295] Based on the equipment recommendation request, randomly combining the equipment for the controlled game character to obtain at least two equipment combinations;
[0296] Determine a candidate equipment combination from at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination;
[0297] The replaced equipment combination that meets the equipment attribute requirements is determined as the target equipment combination, and based on the target equipment combination, equipment is recommended for the controlled game character.
[0298] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the equipment recommendation method above, which will not be elaborated here.
[0299] Optional, such as Fig.10As shown, the electronic device 1000 further includes: a touch screen 1003, a radio frequency circuit 1004, an audio circuit 1005, an input unit 1006, and a power supply 1007. The processor 1001 is electrically connected to the touch screen 1003, the radio frequency circuit 1004, the audio circuit 1005, the input unit 1006, and the power supply 1007, respectively. Those skilled in the art can understand that Fig.10 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0300] The touch display screen 1003 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1003 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1001, and can receive the command sent by the processor 1001 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1001 to determine the type of touch event, and then the processor 1001 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1003 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1003 can also be used as a part of the input unit 1006 to realize the input function.
[0301] The radio frequency circuit 1004 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0302] The audio circuit 1005 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 1005 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1005 and converted into audio data, and then the audio data is output to the processor 1001 for processing, and then sent to another electronic device through the radio frequency circuit 1004, or the audio data is output to the memory 1002 for further processing. The audio circuit 1005 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0303] The input unit 1006 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0304] The power supply 1007 is used to supply power to various components of the electronic device 1000. Optionally, the power supply 1007 can be logically connected to the processor 1001 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 1007 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0305] although Fig.10 Not shown, the electronic device 1000 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0306] In the above 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.
[0307] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0308] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute any equipment recommendation method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0309] Obtaining an equipment recommendation request for the controlled game character, the equipment recommendation request including equipment attribute requirement conditions;
[0310] Based on the equipment recommendation request, randomly combining the equipment for the controlled game character to obtain at least two equipment combinations;
[0311] Determine a candidate equipment combination from at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination;
[0312] The replaced equipment combination that meets the equipment attribute requirements is determined as the target equipment combination, and based on the target equipment combination, equipment is recommended for the controlled game character.
[0313] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the equipment recommendation method above, which will not be elaborated here.
[0314] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0315] Since the computer program stored in the computer-readable storage medium can execute any equipment recommendation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any equipment recommendation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0316] The above is a detailed introduction to an equipment recommendation method, device, electronic device and computer-readable storage medium provided in the embodiments 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 embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for recommending equipment, characterized in that: The method comprises: Obtaining an equipment recommendation request for a controlled game character, wherein the equipment recommendation request includes equipment attribute requirement conditions; Based on the equipment recommendation request, randomly combining the equipment for the controlled game character to obtain at least two equipment combinations; Determine a candidate equipment combination from the at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination; The replaced equipment combination that meets the equipment attribute requirement condition is determined as the target equipment combination, and based on the target equipment combination, equipment is recommended for the controlled game character.
2. The equipment recommendation method according to claim 1, characterized in that: The method further comprises: If there is a first equipment combination that meets the equipment attribute requirement condition among the at least two equipment combinations, the first equipment combination is determined as the target equipment combination.
3. The equipment recommendation method according to claim 1, characterized in that: The step of determining a candidate equipment combination from the at least two equipment combinations includes: Determine, from the at least two equipment combinations, a first equipment combination that meets the equipment attribute requirement condition and / or a second equipment combination that does not meet the equipment attribute requirement condition; A candidate equipment combination is determined from the first equipment combination and / or the second equipment combination.
4. The equipment recommendation method according to claim 3, characterized in that: The step of determining a candidate equipment combination from the first equipment combination and / or the second equipment combination includes: Determine a first candidate equipment combination from the first equipment combination, and / or determine a second candidate equipment combination from the second equipment combination; A candidate equipment combination is determined from the first candidate equipment combination and / or the second candidate equipment combination.
5. The equipment recommendation method according to claim 4, characterized in that: Before determining a first candidate equipment combination from the first equipment combination and / or determining a second candidate equipment combination from the second equipment combination, the method further includes: Determine a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination, wherein the first coefficient is used to indicate the degree to which the first equipment combination is recommended, and the second coefficient is used to indicate the degree of gap between the second equipment combination and the equipment attribute requirement condition; The step of determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, comprises: Based on the first coefficient, a first candidate equipment combination is determined from the first equipment combination, and / or based on the second coefficient, a second candidate equipment combination is determined from the second equipment combination.
6. The equipment recommendation method according to claim 5, characterized in that: Determining a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination includes: Based on the equipment attribute requirement, a first coefficient of the first equipment combination and / or a second coefficient of the second equipment combination is determined.
7. The equipment recommendation method according to claim 6, characterized in that: The equipment attribute requirement condition includes a required equipment attribute value, and determining the second coefficient of the second equipment combination based on the equipment attribute requirement condition includes: Determining an attribute difference between a required equipment attribute value and an attribute value of equipment in the second equipment combination; Based on the attribute difference, a second coefficient of the second equipment combination is determined.
8. The equipment recommendation method according to claim 5, characterized in that: The determining of a first candidate equipment combination from the first equipment combination based on the first coefficient, and / or the determining of a second candidate equipment combination from the second equipment combination based on the second coefficient, comprises: sorting the first coefficients, and / or sorting the second coefficients; The first equipment combination corresponding to the first first number of first coefficients is determined as the first candidate equipment combination, and / or the second equipment combination corresponding to the first second number of first coefficients is determined as the second candidate equipment combination.
9. The equipment recommendation method according to claim 5, characterized in that: The method further comprises: Determine a first coefficient of a replacement equipment combination that meets the equipment attribute requirement condition; The recommending equipment for the controlled game character based on the target equipment combination includes: Based on the first coefficient of the target equipment combination, equipment is recommended for the controlled game character.
10. The equipment recommendation method according to claim 4, characterized in that: The method further comprises: If the first equipment combination exists, the first candidate equipment combination is determined as the target equipment combination.
11. The equipment recommendation method according to claim 10, characterized in that: The recommending equipment for the controlled game character based on the target equipment combination includes: If the quantity of the target equipment combination meets a first preset quantity condition, equipment is recommended for the controlled game character based on the target equipment combination.
12. The equipment recommendation method according to claim 11, characterized in that: The step of determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, includes: triggering an iterative process, the iterative process comprising determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination; If the quantity of the target equipment combination satisfies a first preset quantity condition, recommending equipment for the controlled game character based on the target equipment combination includes: If the quantity of the target equipment combination meets a first preset quantity condition, the target equipment combination is determined to be the first equipment combination, and / or the second equipment combination is updated based on a replaced equipment combination that does not meet the equipment attribute requirement condition; Return to execute the triggered iteration process, the iteration process including the steps of determining a first candidate equipment combination from the first equipment combination, and / or determining a second candidate equipment combination from the second equipment combination, until the target equipment combinations obtained after a preset number of iterations are the same, and recommending equipment for the controlled game character based on the target equipment combination.
13. The equipment recommendation method according to claim 12, characterized in that: The triggering iterative process, wherein the iterative process includes determining a first candidate equipment combination from the first equipment combination, includes: triggering an iterative process, the iterative process comprising determining a number of iterations corresponding to the iterative process; Based on the number of iterations, determining a first number of the first candidate equipment combinations; Based on the first number, a first candidate equipment combination is determined from the first equipment combinations.
14. The equipment recommendation method according to claim 11, characterized in that: If the quantity of the target equipment combination satisfies a first preset quantity condition, recommending equipment for the controlled game character based on the target equipment combination includes: If the number of the target equipment combination meets a first preset number condition, deduplication processing is performed on the target equipment combination to obtain a processed equipment combination; Based on the processed equipment combination, equipment is recommended for the controlled game character.
15. The equipment recommendation method according to claim 11, characterized in that: The method further comprises: If the number of the target equipment combination does not meet the first preset number condition, the step of determining a candidate equipment combination from the first candidate equipment combination and / or the second candidate equipment combination is returned to and the execution is stopped until the number of the target equipment combination meets the first preset number condition.
16. The equipment recommendation method according to any one of claims 1 to 15, characterized in that: The candidate equipment combinations include two, and the equipment replacement process is performed based on the candidate equipment combinations to obtain at least one replaced equipment combination, including: Interchanging at least one of the two candidate equipment combinations to obtain two candidate replaced equipment combinations; Based on the two candidate replaced equipment combinations, two replaced equipment combinations are generated.
17. The equipment recommendation method according to claim 16, characterized in that: The step of generating two replaced equipment combinations based on the two candidate replaced equipment combinations includes: The two candidate replaced equipment combinations are determined as two replaced equipment combinations.
18. The equipment recommendation method according to claim 17, characterized in that: The step of generating two replaced equipment combinations based on the two candidate replaced equipment combinations includes: Determining the interchangeability probability of the candidate replacement equipment combination; Exchanging at least one piece of equipment in the candidate post-replacement equipment combination that meets the preset probability of exchange with the equipment for the controlled game character to obtain a post-replacement equipment combination; The candidate post-replacement equipment combination that does not satisfy the interchange probability of the preset probability is determined as the post-replacement equipment combination.
19. An equipment recommendation device, characterized in that: The device comprises: An acquisition module, used to acquire an equipment recommendation request for a controlled game character, wherein the equipment recommendation request includes equipment attribute requirement conditions; A combination module, configured to randomly combine the equipment for the controlled game character based on the equipment recommendation request to obtain at least two equipment combinations; A replacement module, configured to determine a candidate equipment combination from the at least two equipment combinations, and perform equipment replacement processing based on the candidate equipment combination to obtain at least one replaced equipment combination; The recommendation module is used to determine the replaced equipment combination that meets the equipment attribute requirement condition as the target equipment combination, and recommend equipment for the controlled game character based on the target equipment combination.
20. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the equipment recommendation method according to any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the equipment recommendation method according to any one of claims 1 to 18.