Game friend recommendation method and device and electronic equipment
By generating game account characteristics and interaction data to determine recommendation matching degree, the problem of insufficient social motivation between users and teammates is solved, and the success rate of friend recommendations is improved.
Patent Information
- Application Number
- CN202511307933.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-12
- Publication Date
- 2025-12-12
AI Technical Summary
In existing technologies, game systems recommend the best-performing teammates to users after a game ends, which leads to insufficient social motivation between users and teammates and reduces the success rate of friend recommendations.
By generating account characteristics for game accounts, the system determines the matching degree based on account characteristics and interaction data in game matches, and recommends accounts with high matching degree as friends to users. Account characteristics include historical data and current game data, and interaction data includes healing, cooperative kills, etc.
It increased users' social motivation, increased the probability of becoming friends, and improved the success rate of friend recommendations.
Smart Images

Figure CN121102902A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the game technical field, and particularly to a game friend recommendation method, device and electronic equipment. BACKGROUND
[0002] After a game match ends, a game system recommends friends to a user. In related technologies, the game system usually recommends a teammate with the best performance in the game match to the user. The user and the teammate usually have a low probability of becoming friends due to insufficient social motivation, which reduces the success rate of friend recommendation. SUMMARY
[0003] Therefore, the present application aims to provide a game friend recommendation method, device and electronic equipment to increase the probability of users becoming friends and increase the success rate of friend recommendation.
[0004] In a first aspect, an embodiment of the present application provides a game friend recommendation method, which includes: determining a plurality of game accounts from a game match in response to the game match ending; wherein the game accounts include a first account and a second account; generating account features of the game accounts based on historical data of the game accounts and current match data of the game accounts in the game match; determining a recommendation matching degree of the second account based on the account features and interaction data between the second account and the first account in the game match; wherein the recommendation matching degree is used to indicate the matching degree of the second account and the first account; determining a recommended account from the second account based on the recommendation matching degree, and providing the recommended account to the first account.
[0005] In a second aspect, an embodiment of the present application provides a game friend recommendation device, which includes: an account determination module configured to determine a plurality of game accounts from a game match in response to the game match ending; wherein the game accounts include a first account and a second account; a feature generation module configured to generate account features of the game accounts based on historical data of the game accounts and current match data of the game accounts in the game match; an account matching module configured to determine a recommendation matching degree of the second account based on the account features and interaction data between the second account and the first account in the game match; wherein the recommendation matching degree is used to indicate the matching degree of the second account and the first account; and an account recommendation module configured to determine a recommended account from the second account based on the recommendation matching degree, and provide the recommended account to the first account.
[0006] In a third aspect, an embodiment of the present application provides an electronic device including a processor and a memory, the memory storing computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the game friend recommendation method described above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores computer executable instructions. When the computer executable instructions are invoked and executed by a processor, the computer executable instructions cause the processor to implement the game friend recommendation method described above.
[0008] The embodiments of the present application bring the following beneficial effects: The game friend recommendation method, device and electronic equipment described above determine a plurality of game accounts from a game match in response to the end of the game match, wherein the game accounts include a first account and a second account; generate account features of the game accounts based on historical data of the game accounts and current match data of the game accounts in the game match; determine a recommendation matching degree of the second account based on the account features and interaction data between the second account and the first account in the game match, wherein the recommendation matching degree is used to indicate the matching degree of the second account and the first account; and determine a recommended account from the second account based on the recommendation matching degree and provide the recommended account to the first account.
[0009] In the above manner, the account features are generated based on the historical data of the game accounts and the current match data, and the recommendation matching degree is determined based on the account features and the match interaction data. The recommended account determined in this manner has a high matching degree and strong interaction with the user, which increases the social motivation between the users and further improves the probability of becoming friends and the success rate of friend recommendation.
[0010] Other features and advantages of the present application will be set forth in the descriptions below, and in part will become apparent to those skilled in the art, or will be learned by practice of the present application. The objects and other advantages of the present application will be realized and attained by the structure particularly pointed out in the specification, claims and drawings.
[0011] In order to make the above objectives, features and advantages of the present application more apparent, the following will describe preferred embodiments in detail, and the accompanying drawings will be described as follows. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings described below are some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.
[0013] Figure 1 A flowchart of a game friend recommendation method provided by an embodiment of the present application; Figure 2 A flowchart of another game friend recommendation method provided by an embodiment of the present application; Figure 3 A schematic diagram of a game friend recommendation device provided by an embodiment of the present application; Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0014] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be described below in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0015] In the related art, after a game match ends, a game system usually recommends a user a team member with the best performance in the game match. The inventor has found in the research process that the team member with the best performance and the user do not necessarily interact in the game match; for example, in a team-based game, the team member with the best performance can be in the upper lane, and the user can be in the middle lane or the lower lane; the team member and the user have little interactive experience. In some games, the number of times that the team member and the user kill an enemy together can be displayed, but the number of times is only the sum of the number of times that the team member kills the enemy alone and the number of times that the user kills the enemy alone, and is not the number of times that the team member and the user kill the enemy together. The user and the team member have a low probability of becoming friends due to lack of social motivation, which reduces the success rate of game friend recommendation.
[0016] Therefore, the game friend recommendation method, device and electronic device provided by the embodiments of the present application can be applied to various games, for example, games in which multiple users participate in a match or a team participates in a match.
[0017] The game friend recommendation method in one of the embodiments of the present application can run on a local terminal device or a server. When the game friend recommendation method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes the server and a client device.
[0018] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud gaming. Taking cloud gaming as an example, cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the game friend recommendation method are completed on the cloud gaming server. The client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the cloud gaming server in the cloud end performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server, the cloud gaming server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0019] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is used for presenting a game picture. The local terminal device is used for interacting with the player through a graphical user interface, that is, a conventional game program is downloaded and installed on an electronic device and is run. The way in which the local terminal device provides the graphical user interface to the player can include various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen used for presenting a graphical user interface including a game picture and a processor used for running the game, generating the graphical user interface and controlling the display of the graphical user interface on the display screen.
[0020] In a possible embodiment, the embodiment of the present application provides a game friend recommendation method, which provides a graphical user interface through a terminal device. The terminal device can be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system. The graphical user interface can be used to display a game session picture of a game session or a game system picture outside the game session.
[0021] As shown in Figure 1 the game friend recommendation method includes the following steps: Step S102, in response to the end of the game session, determining a plurality of game accounts from the game session; wherein the game accounts include a first account and a second account; The game session is participated in by the plurality of game accounts simultaneously, and different game accounts control at least one virtual character to enter a session scene of the game session. Among the game accounts participating in the game session, each game account can participate in the game session alone, or a certain number of game accounts can form a team to participate in the game session.
[0022] The multiple game accounts in the foregoing step can be game accounts in the same team, game accounts in different teams, or game accounts without team relationship. In order to increase the social stickiness between the game accounts, the game system recommends friends to each game account after the game match ends.
[0023] Specifically, the first account is a game account to be recommended friends, and the first account can be any game account in the game match; the second account is an alternative friend account that can be recommended to the first account, and the second account can be any game account in the game match except the first account or a game account in the same team as the first account.
[0024] In step S104, account features of the game accounts are generated based on historical data of the game accounts and current match data of the game accounts in the game match; The account features of each game account can be generated by the step. The historical data of the game account can include match data generated by the game account in historical game matches, such as a game character used, a character type, a match result, a match time, etc. The historical game matches do not include the game match just ended. The current match data of the game account in the game match is the game character used, the character type, the match result, the match time, etc. in the game match just ended.
[0025] The account features of the game account can include a commonly used character type, a commonly used character name, an active time, a current character type, a current character name, a current character result, etc. of the game account; the account features can be extracted from the historical data and the current match data, or be obtained by statistics on the historical data and the current match data. The account features can indicate the match behavior features of the game account, and serve as basis data for matching the recommended accounts in the subsequent step.
[0026] In step S106, a recommendation matching degree of the second account is determined based on the account features and interaction data between the second account and the first account in the game match; the recommendation matching degree is used to indicate a matching degree between the second account and the first account. For the account features, a recommendation matching degree corresponding to a feature relationship between the account features of the second account and the first account can be set in advance; specifically, for each account feature, a matching parameter corresponding to the feature relationship of the account feature of the second account and the first account can be set; the feature relationship can include a same relationship, a complementary relationship, an overlapping relationship, etc.; the matching parameters corresponding to different feature relationships are different; after the matching parameters corresponding to the account features are queried, the matching parameters corresponding to the account features are operated, and the recommendation matching degree is obtained.
[0027] For example, the account feature includes a common role type. When the common role type of the second account and the common role type of the first account have a preset complementary relationship, a higher matching parameter can be obtained, and then the recommendation matching degree can be increased. When the common role type of the second account and the common role type of the first account are the same, that is, do not have a preset complementary relationship, a lower matching parameter can be obtained, and then the recommendation matching degree can be reduced, or the second account can be directly excluded when determining the recommended account.
[0028] In determining the recommendation matching degree of the second account, in addition to referring to the account features in the foregoing steps, the interaction data between the second account and the first account in the game match is also needed to be referred to. The interaction data can include treatment data, cooperative kill data, and prop gifting data between the second account and the first account. It can be understood that the interaction data indicates the interaction degree of the second account and the first account in the game match. The more the types of interaction data or the larger the data value of the interaction data, the higher the interaction degree of the second account and the first account, and the greater the probability that the second account and the first account become friends subsequently.
[0029] The more the types of the above-mentioned interaction data or the larger the data value of the interaction data, the larger the matching parameter corresponding to the interaction data, and then the recommendation matching degree can be increased. The fewer the types of the above-mentioned interaction data or the smaller the data value of the interaction data, the smaller the matching parameter corresponding to the interaction data, and then the recommendation matching degree can be reduced. Or, when the first account and the second account have no interaction, that is, the interaction data does not exist, the second account can be directly excluded when determining the recommended account.
[0030] The above-mentioned recommendation matching degree can be realized in the form of a matching score, a matching parameter, etc. The higher the recommendation matching degree, the higher the matching degree of the second account and the first account, and the greater the probability that the second account is determined as the recommended account. When the second account includes multiple accounts, the recommendation matching degree corresponding to each second account can be obtained through the above-mentioned steps.
[0031] In step S108, the recommended account is determined from the second account based on the recommendation matching degree, and the recommended account is provided to the first account.
[0032] For example, the second account with the highest recommendation matching degree is determined as the recommended account, or a preset matching degree threshold is provided, and the second account with a recommendation matching degree satisfying the matching degree threshold is determined as the recommended account. The account avatar, name, etc. of the recommended account are displayed in the graphical user interface of the first account, and a trigger control for adding a friend is provided.
[0033] The game friend recommendation method determines a plurality of game accounts from a game match in response to the game match being ended, wherein the game accounts include a first account and a second account; generates account features of the game accounts based on historical data of the game accounts and current match data of the game accounts in the game match; determines a recommendation matching degree of the second account based on the account features and interaction data between the second account and the first account in the game match, wherein the recommendation matching degree is used to indicate a matching degree between the second account and the first account; and determines a recommended account from the second account based on the recommendation matching degree and provides the recommended account to the first account.
[0034] In the above manner, the account features are generated based on the historical data of the game accounts and the current match data, and the recommendation matching degree is determined based on the account features and the match interaction data. The recommended account determined in this manner has a high matching degree and strong interaction with the user, increases the social motivation between users, and further increases the probability of becoming friends and the success rate of friend recommendation.
[0035] In a specific implementation manner, the account features include a first role type of the game account; a role type used by the game account and a first use duration corresponding to each used role type are obtained from the historical data of the game account; and the first role type is determined from the used role types of the game account based on the first use duration.
[0036] The first role type can be understood as a commonly used role type or a mainly used role type of the game account in historical game matches, and the first role type can indicate the use characteristics of the game account for the role type. The role type can be divided by the responsibility, species, and territory of the game role. The total duration of each role type used by the game account, i.e., the first use duration, can be counted, and the role type with the longest first use duration is determined as the first role type, or the role type with the first use duration reaching a preset duration threshold is determined as the first role type.
[0037] For example, the role types used by the game account include an auxiliary type and an output type, wherein the first use duration of the auxiliary type is 14 hours, and the first use duration of the output type is 2 hours, and the first role type is the auxiliary type.
[0038] If multiple virtual roles of the game account belong to the same role type, the first use duration of the role type is equal to the total duration of the multiple virtual roles of the game account that belong to the role type.
[0039] Further, the account feature further includes: a first virtual character of the game account; obtaining, from historical data of the game account, a virtual character of a first character type used by the game account, and a second use duration corresponding to each virtual character of the first character type; and determining the first virtual character from the virtual characters of the first character type based on the second use duration.
[0040] The first virtual character can be understood as a virtual character commonly used or mainly used by the game account in historical game matches, and the first virtual character can indicate the use characteristics of the game account for virtual characters. In the game system, a plurality of character types can be pre-set, and each character type includes at least one virtual character. The use duration of each virtual character of the first character type used by the game account can be counted, i.e., the second use duration of each virtual character of the first character type, and the virtual character with the longest second use duration is determined as the first virtual character. Alternatively, the virtual character with a second use duration reaching a preset duration threshold is determined as the first virtual character.
[0041] For example, the first character type used by the game account is an auxiliary type, and the virtual characters of the auxiliary type include character A and character B, wherein the total use duration of character A by the game account is 6 hours, and the total use duration of character B is 8 hours, and character B is the first virtual character.
[0042] In the above manner, by counting the character types and virtual characters used by the game account, the use habit characteristics of the game account for character types and specific characters can be known, which helps to recommend friend matching based on commonly used character types and commonly used characters, and improves the matching degree between recommended friends and users in terms of character types and specific characters.
[0043] In an implementation manner, the account feature includes: a current character type of the game account; obtaining, from current match data of the game account in a game match, a character type used by the game account in the current match and a third use duration corresponding to each character type used in the current match; and determining the current character type from the character types used by the game account in the current match based on the third use duration.
[0044] The above-mentioned session role type can be understood as a role type used by the game account in the just-ended game session or a role type mainly used by the game account. The session role type can indicate the use characteristics of the game account for the role type in the session. In the game session, the game account can use one or more types of role types to participate in the session. The time length of each role type used by the game account in the game session, i.e., the third use time length, can be counted. The role type with the longest third use time length is determined as the session role type. Alternatively, the role type with the third use time length reaching a preset time length threshold is determined as the session role type, or the role type with the third use time length exceeding a specified percentage of the total time length of the game session is determined as the session role type.
[0045] If there are multiple virtual characters belonging to the same role type in the virtual characters used by the game account, the third use time length of the role type is equal to the total time length of the multiple virtual characters of the role type used by the game account.
[0046] For example, the role types used by the game account in the game session include the auxiliary class and the output class. The total time length of the auxiliary class used is 20 minutes, and the total time length of the output class used is 5 minutes. The session role type is the auxiliary class.
[0047] Further, the above-mentioned account characteristics further include: a session target character of the game account; obtaining, from the current session data of the game account in the game session, virtual characters of the session role type used by the game account and a fourth use time length corresponding to each virtual character of the session role type; and determining the session target character from the virtual characters of the session role type based on the fourth use time length.
[0048] The above-mentioned session target character can be understood as a virtual character used by the game account in the just-ended game session or a virtual character mainly used by the game account. The session target character can indicate the use characteristics of the game account for the virtual character in the session. The time length of each virtual character in the session role type used by the game account, i.e., the fourth use time length of each virtual character in the session role type, can be counted. The virtual character with the longest fourth use time length is determined as the session target character. Alternatively, the virtual character with the fourth use time length reaching a preset time length threshold is determined as the session target character.
[0049] For example, the session role type of the game account is the auxiliary class. The virtual characters of the auxiliary class used by the game account in the game session include character A and character B. The total time length of the game account using character A is 15 minutes, and the total time length of the game account using character B is 5 minutes. Character A is the session target character.
[0050] In the above manner, by counting the role types and virtual roles used by the game account in the current game session, the use habit characteristics of the game account in the current game session for the role types and specific roles can be known, which helps to perform the recommended friend matching based on the role types and specific roles in the current game session, and improve the matching degree between the recommended friend and the user in terms of the role types and specific roles in the game session.
[0051] In the above manner, by counting the role types and virtual roles used by the game account in the current game session, the use habit characteristics of the game account in the current game session for the role types and specific roles can be known, which helps to perform the recommended friend matching based on the role types and specific roles in the current game session, and improve the matching degree between the recommended friend and the user in terms of the role types and specific roles in the game session.
[0052] In another manner, the account characteristics include: an active time period of the game account; the online time period of the game account is obtained from the historical data of the game account; the target time period with an occurrence frequency greater than a preset frequency threshold is obtained from the online time period, and the target time period is determined as the active time period of the game account.
[0053] The active time period can be understood as a time period in which the game account is often online; the login time and the logout time of the game account are recorded in the historical data of the game account, and the time period between the login time and the logout time is the online time period. Specifically, the online time period of the game account each day can be obtained from the historical data, and then the online time periods are counted. If a certain time period has a high occurrence frequency in the online time periods, for example, greater than 60%, the time period is determined as the target time period, i.e., the active time period of the game account.
[0054] It can be understood that the higher the overlap degree between the active time period of the second account and the active time period of the first account, the greater the probability that the second account and the first account are online at the same time, and the greater the recommended matching degree between the second account and the first account. By counting the active time period of the game account, the online time characteristics of the game account can be known, which helps to perform the recommended friend matching based on the online time factor, and improve the matching degree between the recommended friend and the user in terms of the role types and specific roles in the game session.
[0055] The following embodiments provide specific implementation manners of determining the recommended matching degree based on the account characteristics and the interaction data. In one manner, the account characteristics include: a first role type of the game account; the recommended matching degree includes: a type matching parameter of the first role type; the type matching parameter indicates the matching degree between the first account and the second account in terms of the first role type. The type matching parameter of the first role type is determined based on the type relationship between the first role type of the first account and the first role type of the second account.
[0056] In actual implementation, the type relationship between the character types can be pre-set in the game system, and the type matching parameter corresponding to the type relationship can be set. For example, the type relationship includes complementary relationship, mutual generation relationship, and mutual restraint relationship, etc. The type matching parameter corresponding to the complementary relationship is 1, the type matching parameter corresponding to the mutual generation relationship is 2, and the type matching parameter corresponding to the mutual restraint relationship is 0, etc. When the first character type of the first account and the first character type of the second account are obtained, the type relationship between the two can be queried, and then the type matching parameter can be queried.
[0057] Specifically, if the first character type of the first account and the first character type of the second account have a first preset relationship, a first type matching parameter is set for the second account; wherein the first type matching parameter indicates that the first character types of the first account and the second account match; the first preset relationship can include one or more relationships, such as mutual generation relationship, complementary relationship, etc. When the first character types of the first account and the second account have any one of the first preset relationships, the first type matching parameter is set for the second account to represent that the first character types of the first account and the second account match. For example, the first type matching parameter is 1.
[0058] In actual implementation, it can be set that as long as the first character types of the first account and the second account are different, the first character types of the first account and the second account have a complementary relationship, and then the first type matching parameter is set for the second account.
[0059] If the first character type of the first account and the first character type of the second account do not have the first preset relationship, a second type matching parameter is set for the second account; wherein the second type matching parameter indicates that the first character types of the first account and the second account do not match; when determining the recommended account, the second account with the second type matching parameter is excluded.
[0060] When the first character types of the first account and the second account do not have any one of the first preset relationships, the second type matching parameter is set for the second account to represent that the first character types of the first account and the second account do not match. For example, the second type matching parameter can be 0, and when the second account appears in the recommended matching degree with a parameter value of 0, the second account is excluded and will not be a recommended account.
[0061] In actual implementation, it can be set that when the first character types of the first account and the second account are the same, the first character types of the first account and the second account do not have a complementary relationship, and the second type matching parameter is set for the second account.
[0062] In the above manner, the second account with a common character type that does not match the first account can be excluded, which helps to recommend friend matching based on character types and improve the matching degree between the recommended friend and the user in terms of character types.
[0063] In another implementation, the account features include: a first character type and a current character type of the game account; the recommendation matching degree includes: a current type parameter; the current type parameter indicates a matching degree between a commonly used character type of the game account and the character type used in the current game session. The current type parameter of the second account is determined based on a type relationship between the first character type and the current character type of the second account.
[0064] The type relationship can be a same relationship, a related relationship, an unrelated relationship, etc. When the type relationship between the first character type and the current character type of the second account is the same relationship or the related relationship, it can be understood that the character type used by the second account in the game session conforms to the commonly used character type of the second account, and the second account has a value in recommending friends to the first account in terms of the current character type.
[0065] The type relationship between the first character type and the current character type can be pre-set in the game system, and the current type parameter corresponding to the type relationship can be set. For example, the type relationship can be a same relationship, a related relationship, an unrelated relationship, etc. The current type parameter corresponding to the same relationship is 1, the current type parameter corresponding to the related relationship is 0.5, the current type parameter corresponding to the unrelated relationship is 0, etc. When the first character type and the current character type of the second account are obtained, the type relationship between the two can be queried, and then the current type parameter can be queried.
[0066] Specifically, if the first character type and the current character type of the second account satisfy a second preset relationship, a first current type parameter of the second account is set; the first current type parameter indicates that the first character type and the current character type of the second account match; the second preset relationship can include one or more relationships, such as a same relationship, a related relationship, etc. When the first character type and the current character type have any one of the second preset relationships, the first current type parameter of the second account is set to represent that the first character type and the current character type of the second account match. For example, the first current type parameter is 1.
[0067] In actual implementation, the second preset relationship can only include the same relationship. When the first character type and the current character type of the second account are the same, the first current type parameter of the second account is set.
[0068] Further, when the first current type parameter of the second account is set, a target character used by the second account in the current game session and a fifth usage duration of the target character are obtained from current game session data of the second account in the game session; based on the fifth usage duration, the first current type parameter of the second account is set.
[0069] The fifth use duration represents the contribution or value of the authority target role in the game match, and in one way, the longer the fifth use duration is, the greater the first authority type parameter is, which is conducive to improving the recommended matching degree of the second account. Alternatively, a plurality of duration intervals and the first authority type parameters corresponding to the duration intervals are pre-set, the duration interval to which the fifth use duration belongs is queried, and the first authority type parameter corresponding to the duration interval is the first authority type parameter of the second account.
[0070] In another way, when setting the first authority type parameter of the second account, the authority target roles used by the second account and the match results of the authority target roles are obtained from the current match data of the game match of the second account; and the first authority type parameter of the second account is set based on the match results.
[0071] The match result can be the kill amount or the treatment providing amount of the authority target role, and the match result represents the contribution or value of the authority target role in the game match, and in one way, the better the match result is, the greater the first authority type parameter is, which is conducive to improving the recommended matching degree of the second account. Alternatively, a plurality of result intervals and the first authority type parameters corresponding to the result intervals are pre-set, the result interval to which the aforementioned match result belongs is queried, and the first authority type parameter corresponding to the result interval is the first authority type parameter of the second account.
[0072] If the first role type of the second account and the authority role type do not satisfy the second preset relationship, a second authority type parameter of the second account is set; wherein the second authority type parameter indicates that the first role type of the second account and the authority role type do not match, and when determining the recommended account, the second account with the second authority type parameter is excluded.
[0073] When the first role type of the second account and the authority role type do not have the second preset relationship, a second authority type parameter of the second account is set to represent that the first role type of the second account and the authority role type do not match. For example, the second type matching parameter can be 0, and when the recommended matching degree of the second account includes a parameter with a value of 0, the second account is excluded and will not be a recommended account.
[0074] In actual implementation, when the first role type of the first account and the second account is different, the first role type of the second account and the authority role type do not match, and the second type matching parameter of the second account is set.
[0075] In the above way, the second account with a mismatch between the commonly used role type and the authority role type can be excluded, which is helpful to further recommend friend matching based on the role type and improve the matching degree between the recommended friend and the user in terms of the role type.
[0076] In a specific implementation, the recommendation matching degree further includes an interaction matching parameter, the interaction matching parameter indicating an interaction degree of the second account with the first account in the game match, obtaining interaction data of the second account with the first account from current match data of the second account in the game match, and setting the interaction matching parameter for the second account based on the interaction data.
[0077] The interaction data can include a healing interaction amount, a drug supply amount, a cooperative kill amount, etc. between the second account and the first account. The interaction data can only include interaction data of one-way interaction of the second account to the first account, such as a healing amount provided by the second account to the first account, an energy supply amount provided by the second account to the first account, etc. The interaction data can also only include interaction data of one-way interaction of the first account to the second account, such as a healing amount provided by the first account to the second account, an energy supply amount provided by the first account to the second account, etc. The interaction data can also include interaction data of one-way interaction of the first account to the second account and one-way interaction of the second account to the first account.
[0078] In actual implementation, in order to recommend more valuable friends to the first account and improve the success rate of friends, the aforementioned interaction data can be set to only include interaction data of one-way interaction of the second account to the first account. The interaction data can reflect the value of the second account to the first account. The greater the interaction data, the higher the value of the second account to the first account, and the greater the success rate of the second account to become a friend of the first account.
[0079] Therefore, in actual implementation, the more types of the aforementioned interaction data and the greater the amount of data, the greater the interaction matching parameter set for the second account, which is conducive to improving the recommendation matching degree of the second account. Specifically, the greater the aforementioned interaction data, the greater the interaction matching parameter; or the higher the ranking position of the interaction data of the second account in the account level to which the second account belongs, the greater the interaction matching parameter.
[0080] There is another way to set the interaction matching parameter for the second account if the interaction data meets a preset data condition. Only when the interaction data meets the preset data condition, the interaction matching parameter is set for the second account, which affects the recommendation matching degree of the second account. If the interaction data does not meet the preset data condition, the second account can be excluded when determining the recommended account.
[0081] The aforementioned preset data condition includes that the aforementioned interaction data reaches a specified position interval in the interaction data ranking of the account level to which the second account belongs; and / or the second account and the first account belong to the same account level, and the interaction data of the second account and the interaction data of the first account are both located in the specified position interval.
[0082] In the game system, for each account level, the game accounts in the account level are ranked according to the interaction data, and the larger the interaction data is, the higher the ranking position is. The aforementioned specified position interval can be pre-set, for example, the top 50%, the top 60%, etc.; when the interaction data of the second account reaches the specified position interval in the interaction data ranking of the same account level, it means that the interaction data of the second account has high value to the first account, and the second account sets the interaction matching parameter, thereby improving the recommendation matching degree of the second account.
[0083] If the interaction data of the second account does not reach the specified position interval in the interaction data ranking of the same account level, such as not reaching the top 50%, it means that the interaction data of the second account has low or no value to the first account, and no interaction matching parameter is set, and the second account does not recommend to the first account.
[0084] In the above manner, the recommendation matching degree is determined according to the interaction data, and the user with high in-game interaction degree is recommended to the user as a friend, which increases the social motivation between users and further improves the probability of becoming a friend, thereby increasing the success rate of friend recommendation.
[0085] In an implementation manner, the account feature includes a first virtual character of the game account, and the recommendation matching degree includes a character relationship matching parameter. As known from the foregoing embodiments, the first virtual character is a virtual character mainly used by the game account in the historical game. In the game system, the character relationship between the virtual characters can be pre-set, for example, a cooperative relationship, a same-door relationship, an ally relationship, etc.; and the character relationship matching parameter indicates the closeness of the character relationship between the game accounts.
[0086] Specifically, the number of relationships between the first virtual character of the first account and the first virtual character of the second account is determined, and the character relationship matching parameter of the second account is determined based on the number of relationships.
[0087] The first virtual character of the game account can include one or more. If the first virtual character of the first account is only one, and the first virtual character of the second account is only one, the two first virtual characters can have no preset character relationship, can have one preset character relationship, or can have multiple preset character relationships. For example, the first virtual character of the first account and the first virtual character of the second account are in a cooperative relationship; for another example, the first virtual character of the first account and the first virtual character of the second account are in a cooperative relationship and a same-door relationship.
[0088] If the first virtual character of the first account includes multiple, or the first virtual character of the second account includes multiple, each first virtual character of the first account can be compared with each first virtual character of the second account to obtain the total number of relationships.
[0089] For example, the preset role relationship includes a buddy relationship and a same-door relationship, the first virtual role of the first account includes a role A and a role B, and the first virtual role of the second account includes a role C and a role D; wherein the role A and the role C have a buddy relationship, the role A and the role D have a same-door relationship, and the role B and the role C have a buddy relationship, and the number of the preset role relationship between the first virtual role of the first account and the first virtual role of the second account is 3.
[0090] In actual implementation, the more the aforementioned association number is, the greater the role relationship matching parameter of the second account is, thereby improving the recommendation matching degree and improving the probability that the second account becomes the recommended account.
[0091] In the above manner, the recommendation matching degree is determined according to the local interaction data, and a user with a higher local interaction degree is recommended to the user as a friend, thereby increasing the social motive between users and improving the probability of becoming friends and increasing the success rate of friend recommendation.
[0092] In an implementation manner, the account feature includes an active time period of the game account, the recommendation matching degree includes a time period matching parameter, and the time period matching parameter indicates an overlap degree of the active time period of the game account. A time period overlap degree between the active time period of the second account and the active time period of the first account is obtained, and a time period matching parameter of the second account is determined based on the time period overlap degree.
[0093] Specifically, an intersection time period of the active time period of the second account and the active time period of the first account can be calculated first, and a union time period of the active time period of the second account and the active time period of the first account can be calculated; a ratio of the intersection time period to the union time period is the aforementioned time period overlap degree. Alternatively, an intersection time period of the active time period of the second account and the active time period of the first account can be calculated first, and a ratio of the intersection time period to the active time period of the first account is the aforementioned time period overlap degree.
[0094] It can be understood that the higher the time period overlap degree is, the greater the time period matching parameter of the second account is, thereby improving the recommendation matching degree and improving the probability that the second account becomes the recommended account.
[0095] Further, if the time period overlap degree is lower than a preset overlap threshold, a first time period matching parameter is set for the second account; wherein the first time period matching parameter indicates that the active time periods of the first account and the second account are not matched; and in determining the recommended account, the second account with the first time period matching parameter is excluded. The overlap threshold can be preset, for example, 10%, 20%, etc.; when the time period overlap is lower than the preset overlap threshold, it can be understood that the probability of the first account and the second account being online at the same time is low, and the interactivity of the first account and the second account is weak. Thus, the first time period matching parameter of the second account is set to 0, indicating that the active time period of the first account and the second account does not match, and the second account will not be a recommended account.
[0096] If the time period overlap reaches the preset overlap threshold, the second time period matching parameter of the second account is set; wherein the greater the time period overlap, the greater the second time period matching parameter. The second time period matching parameter can increase the recommendation matching degree of the second account and improve the probability of the second account becoming a recommended account.
[0097] In the above manner, the second account with low active time period overlap can be excluded, which helps to recommend friends based on active time period, improves the matching degree between recommended friends and users in active time period, and further improves the interactive stickiness between users.
[0098] Through the above embodiments, various recommendation matching parameters can be obtained, and the recommended account can be determined by multiple parameters. Specifically, the recommendation matching degree includes: type matching parameter, local type parameter, interaction matching parameter, role relationship matching parameter and time period matching parameter; the type matching parameter, the local type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter are preset to obtain the recommendation matching parameter; the preset operation can be parameter addition, parameter multiplication, or each parameter can be set to weight for weighted operation.
[0099] After the preset operation, each second account obtains a corresponding recommendation matching parameter. Then, the second account whose recommendation matching parameter meets the preset parameter condition is determined as a recommended account; wherein the preset parameter condition includes: the highest recommendation matching parameter, and / or the recommendation matching parameter reaches a preset parameter threshold.
[0100] Among them, the second account with the highest recommendation matching parameter can be determined as the recommended account, at this time, there is at least one second account as the recommended account, when multiple second accounts have the highest recommendation matching parameter at the same time, the recommended account includes multiple. The second account whose recommendation matching parameter reaches the preset parameter threshold can also be determined as the recommended account, in this case, the recommended account may not exist, may exist only one, or may exist multiple. That is, as long as the recommendation matching parameter reaches the preset parameter threshold, the second account is a recommended account, if the recommendation matching parameter of all second accounts does not reach the preset parameter threshold, it means that there is no account in the second account with high matching degree with the first account, and there is no recommended account, thereby avoiding invalid recommendation.
[0101] In addition, the preset parameter condition can simultaneously include that the recommended matching parameter is the highest and the recommended matching parameter reaches a preset parameter threshold, and the second account satisfying both conditions simultaneously is the recommended account.
[0102] It should be noted that, according to the foregoing embodiments, the type matching parameter, the current session type parameter, and the time period matching parameter in the recommended matching degree can cause some second accounts to be excluded when determining the recommended account. If all second accounts are excluded, there is no recommended account.
[0103] Referring to Figure 2 Another game friend recommendation method is shown in the figure, which includes the following steps: Step S202, in response to the end of the game session, determining a plurality of game accounts from the game session; wherein the game accounts include a first account and a second account; Step S204, determining the first character type, the first virtual character, and the active time period of the game account according to the historical data of the game account; Step S206, determining the current session character type and the current session target character of the game account based on the current session data of the game account in the game session; Step S208, determining the type matching parameter of the first character type based on the type relationship between the first character type of the first account and the first character type of the second account; Step S210, determining the current session type parameter of the second account based on the type relationship between the first character type of the second account and the current session character type; Step S212, setting an interaction matching parameter for the second account based on the interaction data between the second account and the first account; Step S214, determining the character relationship matching parameter of the second account based on the relationship quantity of the preset character relationship between the first virtual character of the first account and the first virtual character of the second account; Step S216, determining the time period matching parameter of the second account based on the time period overlap between the active time period of the second account and the active time period of the first account; Step S218, performing a preset operation on the type matching parameter, the current session type parameter, the interaction matching parameter, the character relationship matching parameter, and the time period matching parameter to obtain a recommended matching parameter; Step S220, determining the second account whose recommended matching parameter satisfies a preset parameter condition as a recommended account, and providing the recommended account to the first account.
[0104] The above manner collects both the out-of-game data and the in-game data of the game account when determining the recommended account, and records the data as the basic data of the recommended account, so that the basic data is more detailed and rich, and the finally determined recommended account is more in line with the friend demand of the group competitive game user, the social motivation between users is increased, and the probability of becoming friends is improved, and the success rate of friend recommendation is increased.
[0105] The embodiment also provides a specific example of a game friend recommendation method.
[0106] Suppose that in the just ended game session, a team includes six game accounts, which are account A, account B, account C, account D, account E and account F; when determining the recommended account for the account A, the account A is the first account, and the account B, the account C, the account D, the account E and the account F are the second accounts.
[0107] In the first step, the first role type of each game account is determined according to the historical data of each game account, that is, the main used role type of the game account; specifically, the first role type of the account A is a tank, the first role type of the account B is a tank, the first role type of the account C is an output, the first role type of the account D is an auxiliary, the first role type of the account E is an auxiliary, and the first role type of the account F is an output.
[0108] Correspondingly, the type matching parameter of the account B is 0, the type matching parameter of the account C is 1, the type matching parameter of the account D is 1, the type matching parameter of the account E is 1, and the type matching parameter of the account F is 1. Here, the first role type of the account B is the same as that of the account A, and the account B does not have a complementary relationship, so the type matching parameter of the account B is 0, and the account B is excluded.
[0109] In the second step, the in-game role type of each game account is determined according to the current game session data of each game account, that is, the main used role type of the game account in the game session; specifically, the in-game role type of the account A is a tank, the in-game role type of the account B is a tank, the in-game role type of the account C is an auxiliary, the in-game role type of the account D is an auxiliary, the in-game role type of the account E is an auxiliary, and the in-game role type of the account F is an output.
[0110] Among them, the in-game role type of the account C is different from the first role type of the account C, so the in-game type parameter of the account C is 0, the in-game type parameter of the account D is 1.8, the in-game type parameter of the account E is 2.9, and the in-game type parameter of the account F is 2.4. The account C is excluded, and the in-game type parameters of the account D, the account E and the account F are determined according to the use time length of the in-game target role of each game account in the game session, and the longer the use time length is, the higher the in-game type parameter is.
[0111] Thirdly, the interaction data of account B, account C, account D, account E and account F with account A are obtained from the current game data, and the interaction matching parameters are determined; wherein the interaction data of account B with account A is 2 times of combined force kill, and the corresponding interaction matching parameter is 1.6; the interaction data of account C with account A is 3 times of providing treatment, and the corresponding interaction matching parameter is 2.1; the interaction data of account D with account A is 500 times of providing blood, and the corresponding interaction matching parameter is 2.6; the interaction data of account E with account A is 30 seconds of combined force point occupation, and the corresponding interaction matching parameter is 2.1; the interaction data of account F with account A is 3 times of combined force kill, and the corresponding interaction matching parameter is 2.2; the corresponding relationship between the interaction data and the interaction matching parameter can be set in advance.
[0112] Fourthly, the number of cooperative relationship of the first virtual role of account A with account B, account C, account D, account E and account F is counted, and the corresponding role relationship matching parameter is determined. Specifically, the number of cooperative relationship of account B with account A is 1, and the corresponding role relationship matching parameter is 1.2; the number of cooperative relationship of account C with account A is 1, and the corresponding role relationship matching parameter is 1.2; the number of cooperative relationship of account D with account A is 2, and the corresponding role relationship matching parameter is 1.5; the number of cooperative relationship of account E with account A is 0, and the corresponding role relationship matching parameter is 1; the number of cooperative relationship of account F with account A is 2, and the corresponding role relationship matching parameter is 1.5. Fourthly, the overlap degree of active time period of account A with account B, account C, account D, account E and account F is counted; wherein the overlap degree of active time period of account B with account A is 60%, and the corresponding time period matching parameter is 0.51; the overlap degree of active time period of account C with account A is 0, and the corresponding time period matching parameter is 0; the overlap degree of active time period of account D with account A is 30%, and the corresponding time period matching parameter is 0.24; the overlap degree of active time period of account E with account A is 60%, and the corresponding time period matching parameter is 0.51; the overlap degree of active time period of account F with account A is 80%, and the corresponding time period matching parameter is 0.67.
[0113] In the fifth step, for each game account in the account B, the account C, the account D, the account E and the account F, the type matching parameter, the authority type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter of the game account are multiplied to obtain a recommended matching parameter of the game account; wherein the recommended matching parameter of the account B = 0*0*1.6*1.2*0.51 = 0, the recommended matching parameter of the account C = 1*0*2.1*1.2*0 = 0, the recommended matching parameter of the account D = 1*1.8*2.6*1.5*0.24 = 1.68, the recommended matching parameter of the account E = 1*2.9*2.1*1*0.51 = 3.11, and the recommended matching parameter of the account F = 1*2.4*2.2*1.5*0.67 = 5.31.
[0114] When the preset parameter threshold is equal to 1, the recommended matching parameters of the account D, the account E and the account F all reach the preset parameter threshold, wherein the recommended matching parameter of the account F is the highest, and the account F is the recommended account of the account A.
[0115] In the fifth step, the weights of the type matching parameter, the authority type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter are the same, and the weights of the respective parameters can also be set to realize weighted multiplication of the type matching parameter, the authority type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter.
[0116] Referring to FIG. 1, Figure 3 FIG. 1 shows a schematic diagram of a game friend recommendation device, which comprises: An account determination module 30 is configured to determine a plurality of game accounts from a game match in response to the end of the game match; wherein the game accounts comprise a first account and a second account; A feature generation module 32 is configured to generate account features of the game accounts based on historical data of the game accounts and current match data of the game accounts in the game match; An account matching module 34 is configured to determine a recommended matching degree of the second account based on the account features and interaction data between the second account and the first account in the game match; wherein the recommended matching degree is used to indicate a matching degree between the second account and the first account; An account recommendation module 36 is configured to determine a recommended account from the second account based on the recommended matching degree, and provide the recommended account to the first account.
[0117] The game friend recommendation device determines a plurality of game accounts from a game match in response to the game match being over, wherein the game accounts include a first account and a second account; generates account features of the game accounts based on historical data of the game accounts and current match data of the game accounts in the game match; determines a recommendation matching degree of the second account based on the account features and interaction data between the second account and the first account in the game match, wherein the recommendation matching degree is used to indicate a matching degree between the second account and the first account; and determines a recommended account from the second account based on the recommendation matching degree and provides the recommended account to the first account.
[0118] In the above manner, the account features are generated based on the historical data of the game accounts and the current match data, and the recommendation matching degree is determined based on the account features and the current match interaction data. The recommended account determined in this manner has a higher matching degree and stronger interaction with the user, increases the social motivation between the users, and further increases the probability of becoming friends and the success rate of friend recommendation.
[0119] The account features include a first character type of the game account, and the feature generation module is configured to: obtain, from the historical data of the game account, character types used by the game account and first use durations corresponding to each of the used character types; and determine the first character type from the used character types of the game account based on the first use durations.
[0120] The account features further include a first virtual character of the game account, and the device further includes a first character determination module configured to: obtain, from the historical data of the game account, virtual characters of the first character type used by the game account and second use durations corresponding to each of the virtual characters of the first character type; and determine the first virtual character from the virtual characters of the first character type based on the second use durations.
[0121] The account features include a current match character type of the game account, and the feature generation module is configured to: obtain, from the current match data of the game account in the game match, character types used by the game account in the current match and third use durations corresponding to each of the used character types in the current match; and determine the current match character type from the used character types of the game account in the current match based on the third use durations.
[0122] The account features further include a current match target character of the game account, and the device further includes a current match character determination module configured to: obtain, from the current match data of the game account in the game match, virtual characters of the current match character type used by the game account and fourth use durations corresponding to each of the virtual characters of the current match character type; and determine the current match target character from the virtual characters of the current match character type based on the fourth use durations.
[0123] The account feature includes an active time period of the game account, and the feature generation module is configured to: acquire an online time period of the game account from historical data of the game account; acquire a target time period with an occurrence frequency greater than a preset frequency threshold from the online time period, and determine the target time period as the active time period of the game account.
[0124] The account feature includes a first role type of the game account, and the recommendation matching degree includes a type matching parameter of the first role type, and the account matching module is configured to: determine the type matching parameter of the first role type based on a type relationship between the first role type of the first account and the first role type of the second account.
[0125] The account matching module is configured to: set a first type matching parameter for the second account if the first role type of the first account and the first role type of the second account have a first preset relationship, wherein the first type matching parameter indicates that the first role type of the first account and the first role type of the second account match; set a second type matching parameter for the second account if the first role type of the first account and the first role type of the second account do not have the first preset relationship, wherein the second type matching parameter indicates that the first role type of the first account and the first role type of the second account do not match; and exclude the second account with the second type matching parameter when determining the recommended account.
[0126] The account feature includes a first role type and a position role type of the game account, and the recommendation matching degree includes a position type parameter, and the account matching module is configured to: determine the position type parameter of the second account based on a type relationship between the first role type and the position role type of the second account.
[0127] The account matching module is configured to: set a first position type parameter for the second account if the first role type and the position role type of the second account satisfy a second preset relationship, wherein the first position type parameter indicates that the first role type and the position role type of the second account match; set a second position type parameter for the second account if the first role type and the position role type of the second account do not satisfy the second preset relationship, wherein the second position type parameter indicates that the first role type and the position role type of the second account do not match; and exclude the second account with the second position type parameter when determining the recommended account.
[0128] The account matching module is configured to: acquire a target position role used by the second account and a fifth use time length of the target position role from current game session data of the game session of the second account; and set the first position type parameter of the second account based on the fifth use time length.
[0129] The recommendation matching degree further includes an interaction matching parameter; and the account matching module is configured to: obtain interaction data of the second account and the first account from current game session data of the second account in a game session; and set the interaction matching parameter for the second account based on the interaction data.
[0130] The account matching module is configured to: set the interaction matching parameter for the second account if the interaction data meets a preset data condition; and the preset data condition includes: the interaction data of the second account meets a specified position interval in an interaction data ranking of an account level to which the second account belongs; and / or the second account and the first account belong to the same account level, and the interaction data of the second account and the interaction data of the first account are both located in the specified position interval.
[0131] The account feature includes a first virtual role of a game account; the recommendation matching degree includes a role relationship matching parameter; and the account matching module is configured to: determine a relationship quantity of a preset role relationship between the first virtual role of the first account and the first virtual role of the second account; and determine the role relationship matching parameter of the second account based on the relationship quantity.
[0132] The account feature includes an active time period of a game account; the recommendation matching degree includes a time period matching parameter; and the account matching module is configured to: obtain a time period overlap degree between the active time period of the second account and the active time period of the first account; and determine the time period matching parameter of the second account based on the time period overlap degree.
[0133] The account matching module is configured to: set a first time period matching parameter for the second account if the time period overlap degree is lower than a preset overlap degree threshold; wherein the first time period matching parameter indicates that the active time periods of the first account and the second account are not matched; and the second account with the first time period matching parameter is excluded when determining the recommended account; and set a second time period matching parameter for the second account if the time period overlap degree meets the preset overlap degree threshold; wherein the greater the time period overlap degree, the greater the second time period matching parameter.
[0134] The recommendation matching degree includes a type matching parameter, a session type parameter, an interaction matching parameter, a role relationship matching parameter and a time period matching parameter; and the account recommendation module is configured to: perform a preset operation on the type matching parameter, the session type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter to obtain a recommendation matching parameter; and determine the second account whose recommendation matching parameter meets a preset parameter condition as the recommended account; wherein the preset parameter condition includes that the recommendation matching parameter is the highest, and / or the recommendation matching parameter meets a preset parameter threshold.
[0135] The embodiment also provides an electronic device, comprising a processor and a memory, the memory storing computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the game friend recommendation method. The electronic device can be a server or a terminal device.
[0136] Referring to Figure 4 The electronic device shown in the figure comprises a processor 100 and a memory 101, the memory 101 storing computer executable instructions capable of being executed by the processor 100, and the processor 100 executes the computer executable instructions to implement the game friend recommendation method.
[0137] Further, Figure 4 The electronic device shown in the figure further comprises a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
[0138] The memory 101 can contain a high-speed random access memory (RAM), and can also include a non-volatile memory, for example, at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the figure to represent the bus, but it does not mean that there is only one bus or only one type of bus.
[0139] The processor 100 can be an integrated circuit chip with a processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 100 or the instruction in the form of software. The processor 100 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Each method, step and logic block disclosed in the embodiment of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiment of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, etc. The storage medium in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101, and combines the hardware to complete the steps of the method of the above embodiment.
[0140] The processor in the above electronic device can implement the following operations in the game friend recommendation method by executing computer executable instructions: A game friend recommendation method, in response to the end of a game match, determining a plurality of game accounts from the game match; wherein the game account includes a first account and a second account; generating an account feature of the game account based on the historical data of the game account and the current match data of the game account in the game match; determining the recommendation matching degree of the second account based on the account feature and the interaction data between the second account and the first account in the game match; wherein the recommendation matching degree is used to indicate the matching degree of the second account and the first account; determining the recommended account from the second account based on the recommendation matching degree, and providing the recommended account to the first account.
[0141] The account feature includes: a first role type of the game account; obtaining the role types used by the game account and the first use time corresponding to each used role type from the historical data of the game account; determining the first role type from the role types used by the game account based on the first use time.
[0142] The account feature further includes: a first virtual role of the game account; obtaining, from historical data of the game account, a virtual role of a first role type used by the game account, and a second use duration corresponding to each virtual role of the first role type; determining the first virtual role from the virtual roles of the first role type based on the second use duration.
[0143] The account feature includes: a current role type of the game account; obtaining, from current game session data of the game account in a game session, a role type used by the game account in the current game session and a third use duration corresponding to each role type used by the game account in the current game session; determining the current role type from the role types used by the game account in the current game session based on the third use duration.
[0144] The account feature further includes: a target role of the game account in the current game session; obtaining, from current game session data of the game account in the game session, a virtual role of a role type used by the game account in the current game session, and a fourth use duration corresponding to each virtual role of the role type; determining the target role from the virtual roles of the role type based on the fourth use duration.
[0145] The account feature includes: an active time period of the game account; obtaining, from historical data of the game account, an online time period of the game account; obtaining, from the online time period, a target time period with a frequency greater than a preset frequency threshold, and determining the target time period as the active time period of the game account.
[0146] The account feature includes: a first role type of the game account; the recommendation matching degree includes: a type matching parameter of the first role type; determining the type matching parameter of the first role type based on the type relationship between the first role type of the first account and the first role type of the second account.
[0147] If the first role type of the first account and the first role type of the second account have a first preset relationship, set a first type matching parameter for the second account; wherein the first type matching parameter indicates that the first role types of the first account and the second account match; if the first role type of the first account and the first role type of the second account do not have the first preset relationship, set a second type matching parameter for the second account; wherein the second type matching parameter indicates that the first role types of the first account and the second account do not match; in determining the recommended account, the second account with the second type matching parameter is excluded.
[0148] The account feature includes: a first role type and a current role type of the game account; the recommendation matching degree includes: a current type parameter; determining the current type parameter of the second account based on the type relationship between the first role type and the current role type of the second account.
[0149] If the first role type of the second account and the authority role type satisfy a second preset relationship, a first authority type parameter is set for the second account; the first authority type parameter indicates that the first role type of the second account and the authority role type match; if the first role type of the second account and the authority role type do not satisfy the second preset relationship, a second authority type parameter is set for the second account; the second authority type parameter indicates that the first role type of the second account and the authority role type do not match, and the second account with the second authority type parameter is excluded when the recommended account is determined.
[0150] The first authority type parameter of the second account is set based on the fifth use duration of the authority target role.
[0151] The recommendation matching degree further includes an interaction matching parameter; interaction data of the second account and the first account is obtained from current match data of the second account in the game match; and the interaction matching parameter of the second account is set based on the interaction data.
[0152] If the interaction data meets a preset data condition, the interaction matching parameter of the second account is set; the preset data condition includes that the interaction data meets a specified position interval in an interaction data ranking of an account level to which the second account belongs; and / or the second account and the first account belong to the same account level, and the interaction data of the second account and the interaction data of the first account are both located in the specified position interval.
[0153] The account feature includes a first virtual role of a game account; the recommendation matching degree includes a role relationship matching parameter; a relationship quantity of a preset role relationship between the first virtual role of the first account and the first virtual role of the second account is determined; and the role relationship matching parameter of the second account is determined based on the relationship quantity.
[0154] The account feature includes an active time period of a game account; the recommendation matching degree includes a time period matching parameter; a time period overlap degree between the active time period of the second account and the active time period of the first account is obtained; and the time period matching parameter of the second account is determined based on the time period overlap degree.
[0155] If the time period overlap degree is lower than a preset overlap threshold, a first time period matching parameter is set for the second account; the first time period matching parameter indicates that the active time periods of the first account and the second account do not match; the second account with the first time period matching parameter is excluded when the recommended account is determined; if the time period overlap degree meets the preset overlap threshold, a second time period matching parameter is set for the second account; the greater the time period overlap degree is, the greater the second time period matching parameter is.
[0156] The recommendation matching degree comprises a type matching parameter, a current type parameter, an interaction matching parameter, a role relationship matching parameter and a time period matching parameter; the type matching parameter, the current type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter are subjected to preset operations to obtain a recommendation matching parameter; the second account satisfying a preset parameter condition of the recommendation matching parameter is determined as a recommended account; wherein the preset parameter condition comprises that the recommendation matching parameter is the highest and / or the recommendation matching parameter reaches a preset parameter threshold.
[0157] In the above manner, the account features are generated according to the historical data and the current data of the game accounts, and the recommendation matching degree is determined based on the account features and the interaction data in the game session, so that the recommended account determined in this manner has a higher matching degree and stronger interaction with the user, the social motivation between the users is increased, and the probability of becoming friends is improved, thereby increasing the success rate of friend recommendation.
[0158] The embodiment also provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions, when called and executed by a processor, cause the processor to implement the game friend recommendation method.
[0159] The computer executable instructions stored in the above computer readable storage medium can implement the following operations in the game friend recommendation method by executing the computer executable instructions: A game friend recommendation method, in response to the end of a game session, determines a plurality of game accounts from the game session; wherein the game accounts comprise a first account and a second account; generates account features of the game accounts based on historical data of the game accounts and current session data of the game accounts in the game session; determines a recommendation matching degree of the second account based on the account features and interaction data between the second account and the first account in the game session; wherein the recommendation matching degree is used to indicate the matching degree between the second account and the first account; determines a recommended account from the second account based on the recommendation matching degree, and provides the recommended account to the first account.
[0160] The account features comprise a first role type of the game account; the role types used by the game account and first use time lengths corresponding to each used role type are obtained from the historical data of the game account; the first role type is determined from the used role types of the game account based on the first use time lengths.
[0161] The account features further comprise a first virtual role of the game account; the virtual roles of the first role type used by the game account and second use time lengths corresponding to each virtual role of the first role type are obtained from the historical data of the game account; the first virtual role is determined from the virtual roles belonging to the first role type based on the second use time lengths.
[0162] The account feature includes a role type of a current game session of the game account; a third usage duration of each role type used by the game account in the current game session is obtained from the current game session data of the game account; and the role type of the current game session is determined from the role types used by the game account based on the third usage duration.
[0163] The account feature further includes a target role type of the game account; a fourth usage duration of each virtual role of the role type used by the game account is obtained from the current game session data of the game account in the game session; and the target role type is determined from the virtual roles of the role type based on the fourth usage duration.
[0164] The account feature includes an active time period of the game account; an online time period of the game account is obtained from the historical data of the game account; a target time period with a frequency greater than a preset frequency threshold is obtained from the online time period, and the target time period is determined as the active time period of the game account.
[0165] The account feature includes a first role type of the game account; the recommendation matching degree includes a type matching parameter of the first role type; and the type matching parameter of the first role type is determined based on a type relationship between the first role type of the first account and the first role type of the second account.
[0166] If the first role type of the first account and the first role type of the second account have a first preset relationship, a first type matching parameter is set for the second account; wherein the first type matching parameter indicates that the first role types of the first account and the second account match; if the first role type of the first account and the first role type of the second account do not have the first preset relationship, a second type matching parameter is set for the second account; wherein the second type matching parameter indicates that the first role types of the first account and the second account do not match; and in determining the recommended account, the second account with the second type matching parameter is excluded.
[0167] The account feature includes a first role type and a role type of the game account; the recommendation matching degree includes a role type parameter of the second account; and the role type parameter of the second account is determined based on a type relationship between the first role type and the role type of the second account.
[0168] If the first role type of the second account and the authority role type satisfy a second preset relationship, a first authority type parameter is set for the second account; the first authority type parameter indicates that the first role type of the second account and the authority role type match; if the first role type of the second account and the authority role type do not satisfy the second preset relationship, a second authority type parameter is set for the second account; the second authority type parameter indicates that the first role type of the second account and the authority role type do not match, and the second account with the second authority type parameter is excluded when the recommended account is determined.
[0169] The first authority type parameter of the second account is set based on the fifth use duration of the authority target role.
[0170] The recommendation matching degree further includes an interaction matching parameter; interaction data of the second account and the first account is obtained from current match data of the second account in the game match; and the interaction matching parameter of the second account is set based on the interaction data.
[0171] If the interaction data meets a preset data condition, the interaction matching parameter of the second account is set; the preset data condition includes that the interaction data meets a specified position interval in an interaction data ranking of an account level to which the second account belongs; and / or the second account and the first account belong to the same account level, and the interaction data of the second account and the interaction data of the first account are both located in the specified position interval.
[0172] The account feature includes a first virtual role of a game account; the recommendation matching degree includes a role relationship matching parameter; a relationship quantity of a preset role relationship between the first virtual role of the first account and the first virtual role of the second account is determined; and the role relationship matching parameter of the second account is determined based on the relationship quantity.
[0173] The account feature includes an active time period of a game account; the recommendation matching degree includes a time period matching parameter; a time period overlap degree between the active time period of the second account and the active time period of the first account is obtained; and the time period matching parameter of the second account is determined based on the time period overlap degree.
[0174] If the time period overlap degree is lower than a preset overlap threshold, a first time period matching parameter is set for the second account; the first time period matching parameter indicates that the active time periods of the first account and the second account do not match; the second account with the first time period matching parameter is excluded when the recommended account is determined; if the time period overlap degree meets the preset overlap threshold, a second time period matching parameter is set for the second account; the greater the time period overlap degree is, the greater the second time period matching parameter is.
[0175] The recommendation matching degree comprises a type matching parameter, a local type parameter, an interaction matching parameter, a role relationship matching parameter and a time period matching parameter; the type matching parameter, the local type parameter, the interaction matching parameter, the role relationship matching parameter and the time period matching parameter are subjected to preset operation to obtain a recommendation matching parameter; the second account whose recommendation matching parameter satisfies a preset parameter condition is determined as a recommendation account; wherein the preset parameter condition comprises that the recommendation matching parameter is the highest and / or the recommendation matching parameter reaches a preset parameter threshold.
[0176] In the above manner, the account features are generated according to the historical data and the local data of the game account, and the recommendation matching degree is determined based on the account features and the local interaction data, so that the recommendation account determined by the manner has a higher matching degree and stronger interaction with the user, the social motivation between the users is increased, and thus the probability of becoming friends is improved, and the success rate of friend recommendation is increased.
[0177] The game friend recommendation method and device and the computer program product of the electronic equipment provided by the embodiment of the application include a computer readable storage medium storing program codes, the instructions included in the program codes can be used to execute the method described in the foregoing method embodiment, and the specific implementation can be referred to the method embodiment, and details are not described herein.
[0178] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and the device described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein.
[0179] In addition, in the description of the embodiment of the application, unless otherwise explicitly specified and limited, the terms "mounting", "connection" and "connection" should be understood in a broad sense, for example, can be fixedly connected, can be detachably connected, or integrally connected; can be mechanically connected, or electrically connected; can be directly connected, or indirectly connected through an intermediate medium; can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the application can be understood according to the specific circumstances.
[0180] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the present application that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of software products. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0181] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0182] Finally, it should be noted that: the above embodiments are only specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, and are not limited thereto, the protection scope of the present application is not limited thereto, although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art within the technical range disclosed by the present application can modify or easily think of changes to the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part of the technical features; and these modifications, changes or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for recommending game friends, characterized in that, The method includes: In response to the end of a game, multiple game accounts are identified from the game; wherein the game accounts include a first account and a second account; Based on the historical data of the game account and the current game data of the game account in the game, the account characteristics of the game account are generated; Based on the account characteristics and the interaction data between the second account and the first account in the game, the recommendation matching degree of the second account is determined; wherein, the recommendation matching degree is used to indicate the degree of matching between the second account and the first account; Based on the recommendation matching degree, a recommended account is determined from the second account and provided to the first account.
2. The method according to claim 1, characterized in that, The account characteristics include: the first character type of the game account; the step of generating the account characteristics of the game account based on the historical data of the game account includes: From the historical data of the game account, obtain the types of characters used by the game account and the first usage time corresponding to each type of character used; Based on the first usage duration, the first character type is determined from the character types used by the game account.
3. The method according to claim 2, characterized in that, The account features also include: the first virtual character of the game account; the method also includes: From the historical data of the game account, obtain the virtual characters of the first character type used by the game account, and the second usage time corresponding to each virtual character of the first character type; Based on the second usage duration, the first virtual character is determined from the virtual characters belonging to the first character type.
4. The method according to claim 1, characterized in that, The account characteristics include: the current role type of the game account; the step of generating the account characteristics of the game account based on the current game data of the game account in the game includes: From the current game data of the game account, obtain the types of characters used by the game account in the current game and the third usage time corresponding to each type of character used in the current game; Based on the third usage duration, the official role type is determined from the role types used by the official game account.
5. The method according to claim 4, characterized in that, The account characteristics also include: the target role of the game account; the method also includes: From the game account's current game data in the game, obtain the virtual characters of the current role type used by the game account, and the fourth usage duration corresponding to each virtual character of the current role type; Based on the fourth usage duration, the target role of the authorities is determined from the virtual roles of the authorities role type.
6. The method according to claim 1, characterized in that, The account characteristics include: the active time period of the game account; the step of generating the account characteristics of the game account based on the historical data of the game account includes: Obtain the online time period of the game account from the historical data of the game account; From the online time periods, a target time period with an occurrence frequency greater than a preset frequency threshold is obtained, and the target time period is determined as the active time period of the game account.
7. The method according to claim 1, characterized in that, The account features include: the first character type of the game account; the recommendation matching degree includes: the type matching parameter of the first character type; the step of determining the recommendation matching degree of the second account based on the account features includes: Based on the type relationship between the first role type of the first account and the first role type of the second account, the type matching parameters of the first role type are determined.
8. The method according to claim 7, characterized in that, The step of determining the type matching parameter of the first role type based on the type relationship between the first role type of the first account and the first role type of the second account includes: If the first role type of the first account and the first role type of the second account have a first preset relationship, a first type matching parameter is set for the second account; wherein, the first type matching parameter indicates that the first role types of the first account and the second account match; If the first role type of the first account and the first role type of the second account do not have a first preset relationship, a second type matching parameter is set for the second account; wherein, the second type matching parameter indicates that the first role types of the first account and the second account do not match; when determining the recommended account, the second account with the second type matching parameter is excluded.
9. The method according to claim 1, characterized in that, The account features include: the first character type and the current character type of the game account; the recommendation matching degree includes: the current character type parameter; the step of determining the recommendation matching degree of the second account based on the account features includes: Based on the type relationship between the first role type and the authority role type of the second account, the authority type parameter of the second account is determined.
10. The method according to claim 9, characterized in that, The steps for determining the authority type parameter of the second account based on the type relationship between the first role type and the authority role type of the second account include: If the first role type and the authority role type of the second account satisfy the second preset relationship, a first authority type parameter is set for the second account; wherein, the first authority type parameter indicates that the first role type and the authority role type of the second account match; If the first role type and the authority role type of the second account do not meet the second preset relationship, a second authority type parameter is set for the second account; wherein, the second authority type parameter indicates that the first role type and the authority role type of the second account do not match, and the second account with the second authority type parameter is excluded when determining the recommended account.
11. The method according to claim 10, characterized in that, The steps for setting the first authority type parameter for the second account include: From the current game data of the second account, obtain the target character used by the second account in the current game and the fifth usage time of the target character in the current game; Based on the fifth usage duration, the first authority type parameter of the second account is set.
12. The method according to claim 1, characterized in that, The recommendation matching degree further includes: interaction matching parameters; the step of determining the recommendation matching degree of the second account based on the interaction data between the second account and the first account in the game includes: From the current game data of the second account in the game, obtain the interaction data between the second account and the first account; Based on the interaction data, set interaction matching parameters for the second account.
13. The method according to claim 12, characterized in that, The step of setting interaction matching parameters for the second account based on the interaction data includes: If the interaction data meets preset data conditions, interaction matching parameters are set for the second account; wherein, the preset data conditions include: The interaction data reaches a specified rank range in the interaction data ranking of the account level to which the second account belongs; and / or, the second account and the first account belong to the same account level, and the interaction data of the second account and the interaction data of the first account are both located in the specified rank range.
14. The method according to claim 1, characterized in that, The account features include: the first virtual character of the game account; the recommendation matching degree includes: character relationship matching parameters; the step of determining the recommendation matching degree of the second account based on the account features includes: Determine the number of preset role relationships between the first virtual character of the first account and the first virtual character of the second account; Based on the number of relationships, the role relationship matching parameters for the second account are determined.
15. The method according to claim 1, characterized in that, The account characteristics include: the active time period of the game account; the recommendation matching degree includes: time period matching parameters; the step of determining the recommendation matching degree of the second account based on the account characteristics includes: Obtain the overlap between the active time periods of the second account and the active time periods of the first account; Based on the time period overlap, the time period matching parameters for the second account are determined.
16. The method according to claim 15, characterized in that, The step of determining the time period matching parameters of the second account based on the time period overlap includes: If the overlap of the time periods is lower than a preset overlap threshold, a first time period matching parameter is set for the second account; wherein, the first time period matching parameter indicates that the active time periods of the first account and the second account do not match; when determining the recommended account, the second account with the first time period matching parameter is excluded; If the overlap of the time periods reaches a preset overlap threshold, a second time period matching parameter is set for the second account; wherein, the greater the overlap of the time periods, the larger the second time period matching parameter.
17. The method according to claim 1, characterized in that, The recommendation matching degree includes: type matching parameter, current type parameter, interaction matching parameter, role relationship matching parameter, and time period matching parameter; the step of determining the recommended account from the second account based on the recommendation matching degree includes: The recommended matching parameters are obtained by performing preset calculations on the type matching parameters, the current type parameters, the interaction matching parameters, the role relationship matching parameters, and the time period matching parameters. The second account whose recommended matching parameters meet the preset parameter conditions is identified as the recommended account; wherein, the preset parameter conditions include: the recommended matching parameter is the highest, and / or, the recommended matching parameter reaches the preset parameter threshold.
18. A game friend recommendation device, characterized in that, The device includes: An account determination module is used to determine multiple game accounts from the game in response to the end of the game; wherein the game accounts include a first account and a second account; The feature generation module is used to generate account features of the game account based on the historical data of the game account and the current game data of the game account in the game. An account matching module is used to determine the recommended matching degree of the second account based on the account characteristics and the interaction data between the second account and the first account in the game; wherein, the recommended matching degree is used to indicate the degree of matching between the second account and the first account; The account recommendation module is used to determine a recommended account from the second account based on the recommendation matching degree, and to provide the recommended account to the first account.
19. An electronic device, characterized in that, The system includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the game friend recommendation method according to any one of claims 1-17.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the game friend recommendation method according to any one of claims 1-17.