Disclosure of Invention
The invention aims to provide a matching method, a device, a server and a storage medium in a game aiming at the defects in the prior art, so as to solve the problems that matching is easily carried out on players in the same game mode in the related art, the players which cannot be matched easily occur, and the experience of the players is reduced.
In order to achieve the above purpose, the technical scheme adopted by the embodiment of the invention is as follows:
In a first aspect, an embodiment of the present invention provides a matching method in a game, including:
If the fact that the first virtual character is not matched with the virtual character in the first game mode is detected, determining that the virtual character with the attribute parameter meeting the preset matching condition is a second virtual character from a plurality of other virtual characters in a public character pool according to the attribute parameters of the first virtual character and the attribute parameters of other virtual characters in the public character pool;
controlling the first virtual character and the second virtual character to play a game, and obtaining a game play result;
and updating the competition score of the first virtual character in the first game mode and updating the competition score of the second virtual character in the second game mode according to the game competition result.
Optionally, the determining, according to the attribute parameter of the first virtual character and the attribute parameter of each other virtual character in the public character pool, that the virtual character whose attribute parameter meets the preset matching condition is the second virtual character from the plurality of other virtual characters in the public character pool includes:
If the first virtual character is detected not to be matched with the virtual character in the first game mode, the first virtual character is added into the public character pool, and the matching score of the first virtual character is obtained, wherein other virtual characters in the public character pool have corresponding matching scores;
And determining the virtual character with the matching score meeting the preset matching condition as the second virtual character from the plurality of other virtual characters according to the matching scores of the first virtual character and the matching scores of the other virtual characters.
Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the historical competition results of the other virtual characters on the basis of the preset basic matching score.
Optionally, the method further comprises:
and respectively updating the matching score of the first virtual character and the matching score of the second virtual character according to the game competition result.
Optionally, the updating the matching score of the first virtual character and the matching score of the second virtual character according to the game competition result includes:
Updating the matching score of the first virtual character according to the game competition result and the expected competition result of the first virtual character;
and updating the matching score of the second virtual character according to the game competition result and the expected competition result of the second virtual character.
Optionally, the updating the matching score of the first virtual character according to the game competition result and the expected competition result of the first virtual character includes:
Updating the matching score of the first virtual character according to the game competition result, the expected competition result of the first virtual character and the growth coefficient corresponding to the matching score of the first virtual character;
The updating the matching score of the second virtual character according to the game competition result and the expected competition result of the second virtual character comprises the following steps:
And updating the matching score of the second virtual character according to the game competition result, the expected competition result of the second virtual character and the growth coefficient corresponding to the matching score of the second virtual character.
Optionally, the updating the matching score of the first virtual character according to the game competition result, the expected competition result of the first virtual character and the growth coefficient corresponding to the matching score of the first virtual character includes:
Updating the matching score of the first virtual character according to the game competition result, the expected competition result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character and the preset parameter corresponding to the first game mode;
And updating the matching score of the second virtual character according to the game competition result, the expected competition result of the second virtual character and the growth coefficient corresponding to the matching score of the second virtual character, comprising:
And updating the matching score of the second virtual character according to the game competition result, the expected competition result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character and the preset parameter corresponding to the second game mode.
Optionally, the determining, according to the matching score of the first virtual character and the matching scores of the other virtual characters, that the matching score satisfies the preset matching condition is the second virtual character from the plurality of other virtual characters includes:
and determining a virtual character corresponding to the matching score with the smallest difference value of the matching scores of the first virtual character from the plurality of other virtual characters as the second virtual character according to the matching score of the first virtual character and the matching scores of the other virtual characters.
Optionally, if the first virtual character is detected not to be matched with the virtual character in the first game mode, before determining that the virtual character with the attribute parameter meeting the preset matching condition is the second virtual character from the plurality of other virtual characters in the public character pool according to the attribute parameter of the first virtual character and the attribute parameters of the other virtual characters in the public character pool, the method further includes:
matching a virtual character for the first virtual character from among virtual characters requesting the first game mode;
And if the first virtual character is not matched with the virtual character in the first game mode in the virtual character requesting the first game mode within a first preset time period, determining that the first virtual character is not matched with the virtual character in the first game mode.
Optionally, the matching the virtual character for the first virtual character from the virtual characters requesting the first game mode includes:
Determining the first preset time length according to the first game modes, wherein the first preset time lengths corresponding to different game modes are different;
and within the first preset duration, matching the virtual character for the first virtual character from the virtual characters requesting the first game mode according to the matching rule corresponding to the first game mode.
Optionally, the method further comprises:
and updating the matching scores of the virtual roles according to the liveness of the virtual roles in the public role pool, the basic matching scores of the virtual roles and a preset liveness adjustment coefficient.
Optionally, the method further comprises:
determining the second preset time length according to the first game mode, wherein the second preset time lengths corresponding to different game modes are different;
And if the first virtual character is not matched with the second virtual character in the public character pool within the second preset time length, matching a non-player virtual character for the first virtual character.
In a second aspect, an embodiment of the present invention further provides a matching device in a game, including:
the determining module is used for determining that the virtual character with the attribute parameter meeting the preset matching condition is a second virtual character from a plurality of other virtual characters in the public character pool according to the attribute parameters of the first virtual character and the attribute parameters of other virtual characters in the public character pool if the first virtual character is detected not to be matched with the virtual character in the first game mode;
The control module is used for controlling the first virtual character and the second virtual character to play a game so as to obtain a game play result;
And the updating module is used for updating the competition score of the first virtual character in the first game mode and updating the competition score of the second virtual character in the second game mode according to the game competition result.
Optionally, the determining module is further configured to, if it is detected that the first virtual character is not matched with a virtual character in the first game mode, add the first virtual character to the public character pool to obtain a matching score of the first virtual character, where other virtual characters in the public character pool have corresponding matching scores, and determine, from the plurality of other virtual characters, a virtual character whose matching score satisfies the preset matching condition as the second virtual character according to the matching score of the first virtual character and the matching scores of the other virtual characters.
Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the historical competition results of the other virtual characters on the basis of the preset basic matching score.
Optionally, the apparatus further includes:
And the first updating module is used for respectively updating the matching score of the first virtual character and the matching score of the second virtual character according to the game competition result.
Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game play result and the expected play result of the first virtual character, and update the matching score of the second virtual character according to the game play result and the expected play result of the second virtual character.
Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game play result, the expected play result of the first virtual character, and a growth coefficient corresponding to the matching score of the first virtual character;
the first updating module is further configured to update the matching score of the second virtual character according to the game play result, the expected play result of the second virtual character, and a growth coefficient corresponding to the matching score of the second virtual character.
Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game play result, the expected play result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameter corresponding to the first game mode;
The first updating module is further configured to update the matching score of the second virtual character according to the game play result, the expected play result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameter corresponding to the second game mode.
Optionally, the first updating module is further configured to determine, from the plurality of other virtual roles, a virtual role corresponding to a matching score with a smallest difference value between the matching scores of the first virtual role as the second virtual role according to the matching score of the first virtual role and the matching scores of the other virtual roles.
Optionally, the apparatus further includes:
A first matching module for matching a virtual character for the first virtual character from among virtual characters requesting the first game mode;
And the first determining module is used for determining that the first virtual character is not matched with the virtual character in the first game mode if the first virtual character is not matched with the virtual character in the first game mode in the first preset time.
Optionally, the first matching module is further configured to determine the first preset duration according to the first game mode, where the first preset durations corresponding to different game modes are different, and match, within the first preset duration, a virtual character for the first virtual character from among virtual characters requesting the first game mode according to a matching rule corresponding to the first game mode.
Optionally, the apparatus further includes:
and the second updating module is used for updating the matching scores of the virtual roles according to the liveness of the virtual roles in the public role pool, the basic matching scores of the virtual roles and a preset liveness adjustment coefficient.
Optionally, the apparatus further includes:
A second determining module, configured to determine the second preset duration according to the first game mode, where the second preset durations corresponding to different game modes are different;
And the second matching module is used for matching the non-player virtual roles for the first virtual role if the first virtual role is not matched with the second virtual role in the public role pool within the second preset time length.
In a third aspect, an embodiment of the present invention further provides a server, including a memory and a processor, where the memory stores a computer program executable by the processor, and the processor implements the matching method in the game according to any one of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, where a computer program is stored, where the computer program is read and executed to implement the matching method in the game according to any one of the first aspect.
The matching method in the game has the beneficial effects that if the fact that the first virtual character is not matched with the virtual character in the first game mode is detected, the virtual character with the attribute parameters meeting the preset matching conditions is determined to be the second virtual character from the plurality of other virtual characters in the public character pool according to the attribute parameters of the first virtual character and the attribute parameters of other virtual characters in the public character pool, the first virtual character and the second virtual character are controlled to play a game to obtain a game play result, the game score of the first virtual character in the first game mode is updated according to the game play result, and the game score of the second virtual character in the second game mode is updated. When the first virtual character is not matched with the virtual character in the first game mode, the second virtual character can be selected from the public character pool, the probability of matching the first virtual character with the virtual character is improved, and player experience is improved.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be noted that, if the terms "upper", "lower", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or an azimuth or the positional relationship conventionally put in use of the product of the application, it is merely for convenience of describing the present application and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus should not be construed as limiting the present application.
Furthermore, the terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
The embodiment of the application provides a matching method in a game, wherein an execution subject of the matching method can be a server, the server can be a game server, and a game server can be installed on the server. The server can be communicated with a plurality of terminals, each terminal can be provided with a game client, communication can be carried out between the game server and the game client to realize processing logic of a game, and a player can participate in the game through the game client on the terminal.
The matching method in the game provided by the embodiment of the application is explained below by taking the game server as an execution subject.
Fig. 1 is a flow chart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 1, the method may include:
S101, if the fact that the first virtual character is not matched with the virtual character in the first game mode is detected, determining that the virtual character with the attribute parameter meeting the preset matching condition is a second virtual character from a plurality of other virtual characters in the public character pool according to the attribute parameter of the first virtual character and the attribute parameters of other virtual characters in the public character pool.
The first game mode may be a game mode requested by the first virtual character. The first virtual character preferentially matches the virtual character in the first game mode, i.e., preferentially matches the virtual character that also requested the first game mode.
It should be noted that when the virtual character does not match the virtual character in the requested game mode, the virtual character may be added to the public character pool. That is, the virtual characters in the common character pool are each virtual characters in the game mode that do not preferentially match their requests. The pool of public characters may include virtual characters that match in a plurality of different game modes. The game patterns requested by the game characters in the common character pool are different, such as a match pattern, a rank pattern, a ladder pattern, an entertainment pattern, etc.
In the embodiment of the application, when the first virtual character is not matched with the virtual character in the first game mode, the second virtual character is matched with the first virtual character from the public character pool, wherein the public character pool comprises a plurality of virtual characters matched in different game modes, more virtual characters are contained, and the matching of the virtual characters across the game modes can be realized.
In addition, the first virtual character can be added in the public character pool, after the first virtual character is added, the first virtual character can have corresponding attribute parameters, and each other virtual character originally in the public character pool also has corresponding attribute parameters. Wherein the attribute parameters may be used to characterize the degree of matching between the virtual characters.
S102, controlling the first virtual character and the second virtual character to play the game, and obtaining a game play result.
The first game mode requested by the first virtual character and the second game mode requested by the second virtual character may be the same game mode or different game modes.
In some embodiments, the server may control the game play between the first virtual character and the second virtual character to obtain a game play result. The game play result may be used to indicate that the first virtual character has won the second virtual character, or that the second virtual character has won the first virtual character, or that a tie is made between the second virtual character and the first virtual character.
Alternatively, the game may be a football game, and the game play between the first virtual character and the second virtual character may be a football game play. Of course, other types of games for competition or battle between two virtual characters are also possible, and the embodiment of the present application is not particularly limited.
And S103, updating the competition score of the first virtual character in the first game mode and updating the competition score of the second virtual character in the second game mode according to the game competition result.
In the embodiment of the application, the server can update the competition score of the first virtual character in the first game mode according to the game competition result, wherein the competition score in the first game mode can be the ranking or grade in the first game mode.
Similarly, the server may update the game score for the second virtual character in the second game mode, which may be a ranking or level in the second game mode.
In summary, the embodiment of the application provides a matching method in a game, which comprises the steps of determining a virtual character with attribute parameters meeting preset matching conditions from a plurality of other virtual characters in a public character pool as a second virtual character according to attribute parameters of a first virtual character and attribute parameters of other virtual characters in the public character pool if the fact that the first virtual character is not matched with the virtual character in a first game mode is detected, controlling the first virtual character and the second virtual character to play a game to obtain a game play result, updating a game score of the first virtual character in the first game mode according to the game play result, and updating a game score of the second virtual character in the second game mode. When the first virtual character is not matched with the virtual character in the first game mode, the second virtual character can be selected from the public character pool, the probability of matching the first virtual character with the virtual character is improved, and player experience is improved.
Optionally, fig. 2 is a flow chart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 2, a process of determining, in S101, from a plurality of other virtual roles in a public role pool, that a virtual role whose attribute parameter meets a preset matching condition is a second virtual role according to an attribute parameter of a first virtual role and an attribute parameter of each other virtual role in the public role pool may include:
and S201, if the fact that the first virtual character is not matched with the virtual character in the first game mode is detected, the first virtual character is added into the public character pool, and the matching score of the first virtual character is obtained.
Wherein other virtual roles in the public role pool have corresponding matching scores.
It should be noted that, the virtual roles newly added to the public role pool may have corresponding matching scores, where the matching scores may be preset identical matching scores, or may be matching scores determined based on historical game data of the virtual roles, which is not specifically limited in the embodiment of the present application.
Similarly, the corresponding matching score may also be obtained for the first virtual character newly added to the public character pool.
S202, according to the matching score of the first virtual character and the matching scores of the other virtual characters, determining the virtual character with the matching score meeting the preset matching condition from the other virtual characters as the second virtual character.
In the embodiment of the application, the server can sequentially determine whether the matching score of the first virtual character and the matching scores of the other virtual characters meet the preset matching condition, or of course, can also determine whether the matching score of the first virtual character and the matching score of the other virtual characters meet the preset matching condition at the same time, and the embodiment of the application is not particularly limited.
In summary, based on the matching scores of the virtual roles in the public role pool, the matching process is more efficient and convenient for the first virtual role to match with the second virtual role whose matching score meets the preset matching condition.
Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the historical competition results of the other virtual characters on the basis of the preset basic matching score.
The matching scores of the virtual roles newly added to the public role pool can be preset basic matching scores. After the virtual characters in the public character pool participate in the game, the server can update the preset basic matching scores of the virtual characters according to the historical game results of the game, and the scores can be redetermined.
For example, the base match score may be 1200. Of course, the basic matching score needs to support a matching table, which can be set according to actual requirements, and the embodiment of the application does not limit the method specifically.
Optionally, the method may further include updating the matching score of the first virtual character and the matching score of the second virtual character, respectively, according to the game play result.
In some embodiments, the server may update the matching score of the first virtual character and the matching score of the second virtual character according to the winning or losing results of the first virtual character and the second virtual character in the game play result, respectively.
Optionally, fig. 3 is a flow chart of a matching method in a game provided by an embodiment of the present invention, as shown in fig. 3, a process for updating a matching score of a first virtual character and a matching score of a second virtual character according to a game result, respectively, may include:
and S301, updating the matching score of the first virtual character according to the game competition result and the expected competition result of the first virtual character.
The expected competition result of the first virtual character can be a winning or losing result of the first virtual character when the first virtual character and the second virtual character predicted by the server play a game.
S302, updating the matching score of the second virtual character according to the game competition result and the expected competition result of the second virtual character.
The expected competition result of the first virtual character can be a winning or losing result of the second virtual character when the first virtual character and the second virtual character predicted by the server play a game.
In some embodiments, the server may determine the expected match result of the first virtual character and the expected match result of the second virtual character according to the current match score of the first virtual character and the current match score of the second virtual character, respectively, using a preset formula.
For example, the current matching score of the first avatar may be represented by Ra and the current matching score of the second avatar may be represented by Rb, with Ea=1/(1+10 [ (Rb-Ra)/400 ]) for the expected outcome of the first avatar (the winning negative value of the first avatar) Eb=1/(1+10 [ (Ra-Rb)/400 ]).
In addition, the game play result may be referred to as an actual winning negative value, for example, winning=1, flat=0.5, negative=0.
Optionally, fig. 4 is a flowchart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 4, a process for updating a matching score of a first virtual character according to a game playing result and an expected playing result of the first virtual character in S301 may include:
S401, updating the matching score of the first virtual character according to the game competition result, the expected competition result of the first virtual character and the growth coefficient corresponding to the matching score of the first virtual character.
In some embodiments, the server may determine the growth coefficient corresponding to the matching score of the first virtual character according to the preset first matching correction coefficient, the preset second matching correction coefficient, and the matching score of the first virtual character.
The first matching correction coefficient and the second matching correction coefficient are preset, the matching table is required to be supported, and the matching table can be set according to actual requirements.
In the embodiment of the present application, the preset first matching correction coefficient may be represented by K1, the preset second matching correction coefficient may be represented by K2, the matching score of the first virtual character may be represented by Ra, the growth coefficient k= (K1-Ra)/K2 corresponding to the matching score of the first virtual character has a minimum value, and the minimum value may be set according to an actual requirement or an empirical value, for example, the K minimum value may be 20.
The process of updating the matching score of the second virtual character according to the game play result and the expected play result of the second virtual character in S302 may include:
S402, updating the matching score of the second virtual character according to the game competition result, the expected competition result of the second virtual character and the growth coefficient corresponding to the matching score of the second virtual character.
Similarly, the server may determine a growth coefficient corresponding to the matching score of the second virtual character according to the preset first matching correction coefficient, the preset second matching correction coefficient, and the matching score of the second virtual character.
In the embodiment of the application, the preset first matching correction coefficient may be represented by K1, the preset second matching correction coefficient may be represented by K2, the matching score of the second virtual character may be represented by Rb, and the growth coefficient k= (K1-Rb)/K2 corresponding to the matching score of the second virtual character.
For example, K1 may be 3200 and K2 may be 50.
Optionally, fig. 5 is a flowchart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 5, a process of updating a matching score of a first virtual character according to a game play result, an expected play result of the first virtual character, and a growth coefficient corresponding to the matching score of the first virtual character in S401 may include:
S501, updating the matching score of the first virtual character according to the game competition result, the expected competition result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character and the preset parameter corresponding to the first game mode.
The preset parameters corresponding to different game modes are different, and the preset parameters need to support the configuration table and can be set according to actual requirements.
For example, if the first game mode is a rank match mode, the preset parameter may be 0.55, if the first game mode is a master tournament mode, the preset parameter may be 0.35, and if the first game mode is a friendship match mode, the preset parameter may be 0.1.
In some embodiments, the updated matching score R' a=ra+k (Sa-Ea) of the first virtual character is Y, where Ra represents the matching score of the first virtual character, K represents a growth coefficient corresponding to the matching score of the first virtual character, sa represents a game play result (actual winning value of the first virtual character), ea represents an expected play result of the first virtual character (expected winning value of the first virtual character), and Y represents a preset parameter corresponding to the first game mode.
The step of updating the matching score of the second virtual character according to the game play result, the expected play result of the second virtual character, and the growth coefficient corresponding to the matching score of the second virtual character in S402 may include:
s502, updating the matching score of the second virtual character according to the game competition result, the expected competition result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character and the preset parameter corresponding to the second game mode.
In some embodiments, the updated matching score R' b=rb+k (Sb-Eb) of the second virtual character is Y, where Rb represents the matching score of the second virtual character, K represents a growth coefficient corresponding to the matching score of the second virtual character, sb represents a game play result (actual winning value of the second virtual character), eb represents an expected play result (expected winning value of the second virtual character) of the second virtual character, and Y represents a preset parameter corresponding to the first game mode.
Optionally, the determining, in S202, that the virtual character whose matching score meets the preset matching condition is the second virtual character from the plurality of other virtual characters according to the matching score of the first virtual character and the matching scores of the other virtual characters may include:
and determining the virtual character corresponding to the matching score with the smallest difference value of the matching scores of the first virtual character from the plurality of other virtual characters as a second virtual character according to the matching score of the first virtual character and the matching scores of the other virtual characters.
In some embodiments, the server may calculate a difference between the matching score of the first virtual character and the matching scores of the respective other virtual characters, and use the virtual character corresponding to the matching score with the smallest difference as the second virtual character.
Optionally, fig. 6 is a flowchart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 6, if it is detected in S101 that a first virtual character is not matched with a virtual character in a first game mode, before determining, from a plurality of other virtual characters in a public character pool, that a virtual character whose attribute parameter meets a preset matching condition is a second virtual character, according to an attribute parameter of the first virtual character and an attribute parameter of each other virtual character in the public character pool, the method may further include:
S601, matching the virtual character for the first virtual character from the virtual characters requesting the first game mode.
In some implementations, the server can determine a plurality of virtual characters requesting the first game mode and match the virtual character for the first virtual character from the plurality of virtual characters.
S602, if the first virtual character is not matched with the virtual character from the virtual characters requesting the first game mode within the first preset time period, determining that the first virtual character is not matched with the virtual character in the first game mode.
Wherein the first virtual character is not matched to the virtual character in the first game mode, and a second virtual character needs to be further matched for the first virtual character in a plurality of other virtual characters in the public character pool.
Optionally, fig. 7 is a flowchart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 7, a process of matching a virtual character for a first virtual character from virtual characters requesting a first game mode in S601 may include:
S701, determining a first preset duration according to a first game mode.
Wherein, the first preset time length corresponding to different game modes is different.
S702, matching the virtual character for the first virtual character from the virtual characters requesting the first game mode according to the matching rule corresponding to the first game mode within the first preset time.
In the embodiment of the present application, the first preset durations of the game mode 1, the game mode 2, and the game mode 3 are T1, T2, and T3. Game mode 1, game mode 2 game mode 3......game mode n is first conducted by T1, according to the matching rule of each specific mode: the times of T2, T3..tn were matched. If each game pattern is matched for too long or cannot be matched to a real player due to player number problems in the matching process, the matching logic enters a public character pool.
In summary, in the first preset duration, the virtual character is matched for the first virtual character from the virtual characters requesting the first game mode, so that the problem of overlong matching time in this stage is avoided, and the first preset duration can be set in an affordable time range. The matching rule corresponding to the first game mode can keep the original matching logic unchanged.
If the first game mode is a rank match mode:
On the basis of the basic matching rule of the ranking match, the segment similarity principle is added, namely, according to the ranking match segment of the virtual character, the virtual character which is similar to the segment is preferentially matched (the small segment bit difference is between plus or minus 2, for example, the grade A strong team IV is only matched with the virtual character between the grade B black horse II and the grade A strong team II, and the value can be flexibly regulated and controlled through a configuration table).
The battle force is similar in principle that the virtual roles can be preferentially matched with the virtual roles with positive and negative battle force of X1 percent, the virtual roles are rounded upwards (X1 is a ranking battle force parameter and is initially set to 10, and the value can be flexibly regulated and controlled through a configuration table).
And the near-future-achievement principle is that if the virtual character plays 10 games, the near-future-achievement score needs to be calculated, and if the virtual character does not fill 10 games, the near-future-achievement score is uniformly taken as S (basic-achievement score).
S1=s (virtual character is not full of 10 fields)
S1=s+30×a+10×b+c-D (virtual character has been filled with 10 fields)
S1, recent war score of virtual character, wherein the minimum value is 0
S, basic score is tentatively 300, and the allocation table is required to be supported
A, obtaining win numbers of virtual roles in the last 10 fields
B number of tie stops of virtual character in last 10 stops
And C, counting the parameters of the continuous peptide continuous loss, namely positive and negative continuous peptides, namely positive continuous peptides and negative continuous peptides continuous loss, wherein virtual character continuous peptides or continuous loss field times Ni are counted, and the situation that the continuous peptides continuous loss possibly exist in 10 fields is noted.
Active parameters, d=30 (number of days-7 that the avatar is not on line), maximum 300, minimum 0.
The virtual character can be preferentially matched with the virtual character with the positive and negative values E of the recent score, E is a score parameter, the initial value can be 150, and the matching table is required to be supported.
If the first game mode is a master tournament mode:
the tournament rank agreement principle is that the virtual characters can be preferentially matched with the virtual characters of the tournament of the same rank (note: the virtual characters are divided into super, first level and second level, and a plurality of large groups are arranged).
The battle principle is similar, namely players can be preferentially matched with the players with positive and negative battle of X2 percent, and the players are rounded upwards (X2 is a ranking battle parameter and is initially 10).
If the first game mode is a friendship mode:
The battle principle is similar, namely players can be preferentially matched with the players with positive and negative battle of X3 percent, and the players are rounded upwards (X3 is a ranking battle parameter and is initially 10).
Optionally, the method may further include:
And updating the matching scores of the virtual roles according to the liveness of the virtual roles in the public role pool, the basic matching scores of the virtual roles and the preset liveness adjustment coefficient.
The activity of the virtual character may be a duration of non-presence, for example, may be a number of days of non-presence. The activity adjustment coefficient and the basic matching score are preset, and the table is required to be supported, so that the table can be set according to actual requirements.
In some embodiments, the updated matching score rx=ra- (D-R)/7/X for the avatar, where Ra represents the previous matching score for the player, D represents the number of days the player is not online, and is rounded, R represents the base matching score, and X represents the preset liveness adjustment factor. For example, R may be 1200 and X may be 50.
Optionally, fig. 8 is a schematic flow chart of a matching method in a game according to an embodiment of the present invention, as shown in fig. 8, the method may further include:
S801, determining a second preset duration according to the first game mode.
Wherein the second preset time periods corresponding to different game modes are different.
It should be noted that, the second preset duration is a limiting duration when the second virtual character is matched in the public character pool, so as to avoid a situation that the second virtual character is not matched in the public character pool for a long time. Different game modes are requested, and the corresponding second preset time periods can be the same or different.
S802, if the first virtual character is not matched with the second virtual character in the public character pool within the second preset time period, the non-player virtual character is matched with the first virtual character.
Wherein the non-player character may be an AI (ARTIFICIAL INTELLIGENCE ) character and the game pattern of the matching non-player character may be the same as the game pattern of the first character.
In the embodiment of the application, for different game modes, such as a ranking game mode, a master tournament mode and a friendship game mode, after the non-player virtual character is matched for the first virtual character, the match score of the first virtual character is not influenced by the match result between the first virtual character and the non-player virtual character.
In summary, the embodiment of the application provides a matching method in a game, which comprises the steps of determining a virtual character with attribute parameters meeting preset matching conditions from a plurality of other virtual characters in a public character pool as a second virtual character according to attribute parameters of a first virtual character and attribute parameters of other virtual characters in the public character pool if the fact that the first virtual character is not matched with the virtual character in a first game mode is detected, controlling the first virtual character and the second virtual character to play a game to obtain a game play result, updating a game score of the first virtual character in the first game mode according to the game play result, and updating a game score of the second virtual character in the second game mode. When the first virtual character is not matched with the virtual character in the first game mode, the second virtual character can be selected from the public character pool, the probability of matching the first virtual character with the virtual character is improved, and player experience is improved.
The following describes an in-game matching device, a server, a storage medium, etc. for executing the in-game matching method provided by the present application, and specific implementation processes and technical effects thereof refer to relevant contents of the in-game matching method, and are not described in detail below.
Fig. 9 is a schematic structural diagram of a matching device in a game according to an embodiment of the present invention, and as shown in fig. 9, the device may include:
A determining module 901, configured to determine, if it is detected that a first virtual character does not match with a virtual character in a first game mode, that a virtual character whose attribute parameter meets a preset matching condition is a second virtual character from a plurality of other virtual characters in a public character pool according to an attribute parameter of the first virtual character and an attribute parameter of each other virtual character in the public character pool;
The control module 902 is configured to control the first virtual character and the second virtual character to play a game, so as to obtain a game result;
And the updating module 903 is configured to update a game score of the first virtual character in the first game mode and update a game score of the second virtual character in the second game mode according to the game result.
Optionally, the determining module 901 is further configured to, if it is detected that the first virtual character is not matched with a virtual character in the first game mode, add the first virtual character to the public character pool to obtain a matching score of the first virtual character, where other virtual characters in the public character pool have corresponding matching scores, and determine, from the plurality of other virtual characters, a virtual character whose matching score satisfies the preset matching condition as the second virtual character according to the matching score of the first virtual character and the matching scores of the other virtual characters.
Optionally, the matching score of the first virtual character is a preset basic matching score, and the matching scores of the other virtual characters are scores determined based on the historical competition results of the other virtual characters on the basis of the preset basic matching score.
Optionally, the apparatus further includes:
And the first updating module is used for respectively updating the matching score of the first virtual character and the matching score of the second virtual character according to the game competition result.
Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game play result and the expected play result of the first virtual character, and update the matching score of the second virtual character according to the game play result and the expected play result of the second virtual character.
Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game play result, the expected play result of the first virtual character, and a growth coefficient corresponding to the matching score of the first virtual character;
the first updating module is further configured to update the matching score of the second virtual character according to the game play result, the expected play result of the second virtual character, and a growth coefficient corresponding to the matching score of the second virtual character.
Optionally, the first updating module is further configured to update the matching score of the first virtual character according to the game play result, the expected play result of the first virtual character, the growth coefficient corresponding to the matching score of the first virtual character, and the preset parameter corresponding to the first game mode;
The first updating module is further configured to update the matching score of the second virtual character according to the game play result, the expected play result of the second virtual character, the growth coefficient corresponding to the matching score of the second virtual character, and the preset parameter corresponding to the second game mode.
Optionally, the first updating module is further configured to determine, from the plurality of other virtual roles, a virtual role corresponding to a matching score with a smallest difference value between the matching scores of the first virtual role as the second virtual role according to the matching score of the first virtual role and the matching scores of the other virtual roles.
Optionally, the apparatus further includes:
A first matching module for matching a virtual character for the first virtual character from among virtual characters requesting the first game mode;
And the first determining module is used for determining that the first virtual character is not matched with the virtual character in the first game mode if the first virtual character is not matched with the virtual character in the first game mode in the first preset time.
Optionally, the first matching module is further configured to determine the first preset duration according to the first game mode, where the first preset durations corresponding to different game modes are different, and match, within the first preset duration, a virtual character for the first virtual character from among virtual characters requesting the first game mode according to a matching rule corresponding to the first game mode.
Optionally, the apparatus further includes:
and the second updating module is used for updating the matching scores of the virtual roles according to the liveness of the virtual roles in the public role pool, the basic matching scores of the virtual roles and a preset liveness adjustment coefficient.
Optionally, the apparatus further includes:
A second determining module, configured to determine the second preset duration according to the first game mode, where the second preset durations corresponding to different game modes are different;
And the second matching module is used for matching the non-player virtual roles for the first virtual role if the first virtual role is not matched with the second virtual role in the public role pool within the second preset time length.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The modules above may be one or more integrated circuits configured to implement the methods above, such as one or more Application SPECIFIC INTEGRATED Circuits (ASIC), or one or more microprocessors (DIGITAL SINGNAL processor, DSP), or one or more field programmable gate arrays (Field Programmable GATE ARRAY, FPGA), or the like. For another example, when a module is implemented in the form of a processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 10 is a schematic structural diagram of a matching device in a game according to an embodiment of the present invention, and as shown in fig. 10, the device includes a processor 1001 and a memory 1002. The memory 1002 is used for storing a program, and the processor 1001 calls the program stored in the memory 1002 to execute the above-described method embodiment. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present invention also provides a program product, such as a computer readable storage medium, comprising a program for performing the above-described method embodiments when being executed by a processor.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the invention. The storage medium includes various media capable of storing program codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.