Card set recommendation processing method and device, equipment, medium and product
By generating a feature string of card sets and querying high-win-rate deck recommendations, the high barrier to entry in card games is solved, enabling fast deck recommendations and efficient storage, thus improving the user experience.
Patent Information
- Application Number
- CN202310146302.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-02-20
AI Technical Summary
In existing card-based online games, players who are unfamiliar with card types and combinations need to spend a lot of time researching, resulting in a high barrier to entry, which is not conducive to attracting new players and affects the game's popularity.
By obtaining the user's play level and card set, a card set feature string is generated. The recommended card deck library is then queried to find card deck feature strings that match the play level and win rate, and high-win-rate card decks are recommended, thus lowering the barrier for users to build their own decks.
It effectively lowers the barrier to entry for card games, increases user numbers and activity, and improves the matching efficiency of deck recommendations and storage space utilization.
Smart Images

Figure CN116116013B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of network games, in particular to a card group recommendation processing method, and further relates to a device, equipment, nonvolatile storage medium and computer program product corresponding to the method. BACKGROUND
[0002] There are various types of network games in the existing Internet, and for network games of card types, before a player user carries out a card battle, the player user usually needs to match the game cards owned by the player user into a play card group of a limited number of cards, so as to use the play card group matched by the player user to carry out a card battle. However, when the player user is not familiar with the battle effect between various types of cards and card matching, the player user usually needs to spend a lot of time in studying various types of cards and card matching methods, which makes the network game of card types have a high play threshold, is not conducive to attracting more novice player users to play, and makes the game unable to maintain a high degree of popularity.
[0003] In view of the problems existing in the existing network game of card types about how to guide a user to match a card group, the present applicant makes corresponding exploration in consideration of solving the problems. SUMMARY
[0004] The present application aims to meet the needs of users and provide a card group recommendation processing method, and further relates to a device, equipment, nonvolatile storage medium and computer program product corresponding to the method.
[0005] In order to achieve the purpose of the present application, the following technical solutions are adopted:
[0006] A card group recommendation processing method proposed to achieve the purpose of the present application includes the following steps:
[0007] In response to a play card group recommendation instruction, a user play level corresponding to the card group recommendation instruction and a user card set are obtained;
[0008] Card feature strings corresponding to a plurality of card objects contained in the user card set are obtained, and the card feature strings are combined into a card set feature string;
[0009] One or more first card group feature string sets in a recommended card group library whose play levels do not exceed the user play level are queried out, the recommended card group library stores a plurality of card group feature string sets classified by play levels, and a card group feature string set contains card group feature strings sorted in descending order according to their play win rates;
[0010] starting from a first card group feature string set with a higher play level, traversing each card group feature string in the current first card group feature string set according to the card set feature string, querying whether there is a card group feature string in the current first card group feature string set with characters and character positions corresponding to the card set feature string, if there is, taking the play card group corresponding to the card group feature string first queried as the recommended card group.
[0011] In further embodiments, in the step of obtaining card set feature strings corresponding to a plurality of card objects contained in the user card set, and combining each card set feature string, the step includes the following steps:
[0012] Obtaining card names corresponding to a plurality of card objects contained in the user card set;
[0013] Querying target card feature strings corresponding to the card names in a card feature string library, the card feature string library storing a plurality of mapping relationship data composed of card names and card feature strings, wherein the number of characters of the card feature string is equal to the number of full-amount card objects;
[0014] Combining each target card feature string to generate a card set feature string containing characters possessed by each target card feature string.
[0015] In further embodiments, in the step of starting from a first card group feature string set with a higher play level, traversing each card group feature string in the current first card group feature string set according to the card set feature string, querying whether there is a card group feature string in the current first card group feature string set with characters and character positions corresponding to the card set feature string, if there is, taking the play card group corresponding to the card group feature string first queried as the recommended card group, the step includes the following steps:
[0016] Obtaining a current first card group feature string set with the highest current play level, and traversing and querying each card feature string of the first card group feature string set according to the characters possessed by the card set feature string;
[0017] When traversing to a card group feature string in the current first card set feature string set with characters and character positions corresponding to the card set feature string, taking the play card group corresponding to the first card feature string as the recommended card group;
[0018] If there is no card group feature string in the current first card group feature string set with characters and character positions corresponding to the card set feature string, then obtaining other first card group feature string sets with lower play levels than the current first card group feature string set for traversal and query.
[0019] In a further embodiment, the step of querying whether there is a card group feature string in the current first card group feature string set that has characters and character positions corresponding to the card group feature string of the card set includes the following steps:
[0020] Comparing the characters in the current card group feature string and the card set feature string in order, starting from the first character of each of the current card group feature string and the card set feature string, wherein the characters in the card group feature string and the card set feature string are divided into first characters and second characters;
[0021] When the number of times that the current card group feature string and the card set feature string are both first characters at the same character position exceeds a predetermined threshold, the playing card group corresponding to the current card group feature string is taken as the recommended card group, wherein the predetermined threshold is determined according to the limited number of cards of the playing card.
[0022] In a further embodiment, before the step of obtaining the user playing level and the user card set corresponding to the card group recommendation instruction, the following steps are included:
[0023] Obtaining a full card set, wherein the full card set stores all card objects possessed by the card game service;
[0024] Generating an initial card feature string with a string length equal to the number of card objects in the full card set;
[0025] According to the storage order of the current card object acting on the full card set, modifying the characters in the initial card feature string corresponding to the character positions of the storage order to predetermined characters, and taking the modified initial card feature string as the card feature string of the current card object.
[0026] In a further embodiment, after the step of querying whether there is a card group feature string in the current first card group feature string set that has characters and character positions corresponding to the card set feature string, starting from the first card group feature string set of the higher playing level, and traversing each card group feature string in the current first card group feature string set according to the card set feature string, if there is, taking the first queried card group feature string corresponding to the playing card group as the recommended card group, the following steps are included:
[0027] When there is no card group feature string in each of the first card group feature string set that has characters and character positions corresponding to the card set feature string, taking one or more card group feature strings in the first card group feature string set of the higher playing level that contain the same characters and have the most character positions as the second card group feature string;
[0028] determining a second deck feature string with the highest win rate among the second deck feature strings, and determining characters and positions of the characters that are missing in the card set feature string compared with the second deck feature string;
[0029] determining card feature strings corresponding to the characters based on a card feature string library according to the characters and the positions of the characters, and recommending the card objects corresponding to the card feature strings as recommended cards.
[0030] A deck recommendation processing device is provided for the purpose of the present application, comprising:
[0031] a card recommendation response module configured to respond to a game deck recommendation instruction, and obtain a user game level and a user card set corresponding to the game deck recommendation instruction;
[0032] a feature string generation module configured to obtain card feature strings corresponding to a plurality of card objects included in the user card set, and combine the card feature strings into a card set feature string;
[0033] a deck set query module configured to query one or more first deck feature string sets in a recommended deck library, the user game level of which does not exceed the user game level, the recommended deck library storing a plurality of deck feature string sets classified by game levels, and each deck feature string set including deck feature strings sorted in descending order of win rates;
[0034] a recommended deck determination module configured to start from a first deck feature string set with a higher game level, traverse each deck feature string in the current first deck feature string set according to the card set feature string, and query whether there is a deck feature string in the current first deck feature string set, the characters and positions of the characters of which correspond to the card set feature string, and if so, recommend a game deck corresponding to the first deck feature string as a recommended deck.
[0035] In further embodiments, the feature string generation module comprises:
[0036] a card name acquisition submodule configured to obtain card names corresponding to a plurality of card objects included in the user card set;
[0037] a card feature string query submodule configured to query a target card feature string corresponding to the card name in a card feature string library, the card feature string library storing a plurality of mapping relationship data composed of card names and card feature strings, wherein the number of characters of the card feature string is equal to the number of full-amount card objects;
[0038] The card set feature string generation submodule is configured to combine the target card feature strings to generate a card set feature string containing characters in the target card feature strings.
[0039] In further embodiments, the recommended card set determination module comprises:
[0040] The feature string traversal submodule is configured to obtain a current first card set feature string set of the highest play level, and traverse and query each card feature string in the first card set feature string set according to the characters in the card set feature string.
[0041] The recommended card set acquisition submodule is configured to, when a card set feature string having characters and character positions corresponding to the card set feature string is found in the current first card set feature string, acquire a play card set corresponding to the first card feature string as the recommended card set.
[0042] The new set traversal submodule is configured to, if no card set feature string having characters and character positions corresponding to the card set feature string is found in the current first card set feature string set, acquire other first card set feature string sets of lower play levels than the current first card set feature string set for traversal and query.
[0043] In preferred embodiments, the recommended card set determination module further comprises:
[0044] The feature string comparison submodule is configured to compare characters in the current card set feature string and the card set feature string in sequence from the first characters of the current card set feature string and the card set feature string, wherein the characters in the card set feature string and the card set feature string are divided into first characters and second characters.
[0045] The recommended card set determination submodule is configured to, when the number of times that the same character positions in the current card set feature string and the card set feature string are first characters exceeds a preset threshold, acquire a play card set corresponding to the current card set feature string as the recommended card set, wherein the preset threshold is determined according to the limited number of cards in the play card.
[0046] To solve the above technical problems, the embodiments of the present application further provide a computer device comprising a memory and a processor, the memory stores computer readable instructions, and the computer readable instructions are executed by the processor to make the processor execute the steps of the card set recommendation processing method.
[0047] To solve the above technical problems, the embodiments of the present application further provide a storage medium storing computer readable instructions, and the computer readable instructions are executed by one or more processors to make the one or more processors execute the steps of the card set recommendation processing method.
[0048] To solve the above technical problems, the embodiments of the present application also provide a computer program product, comprising a computer program and computer instructions, which, when executed by a processor, enable the processor to perform the steps of the card set recommendation processing method.
[0049] Compared with the prior art, the present application has the following advantages:
[0050] The present application can provide card set recommendation services for card game services to reduce the playing threshold of card game services. By generating card feature strings corresponding to all card objects in a card playing service, collecting playing card sets of each player user based on the playing level and playing win rate of the card playing service, combining each card feature string to generate a card set feature string of a recommended playing card set, and constructing a recommended card set data set for card set recommendation divided by playing level and playing win rate, the present application can provide card set recommendation services for players of a card game service. According to the card set feature string of the card used by the player user, the recommended card set that matches the card used by the player user can be matched from the recommended card set library storing the recommended card set with a high playing win rate. Therefore, the player user can quickly start the card game service and participate in the card battle without constructing the card set by the player user, which can effectively improve the user quantity and user activity of the card game service.
[0051] Secondly, the present application distinguishes the features of cards and card sets by strings, which can not only effectively reduce the storage space occupied by the feature data of cards and card sets in the card set recommendation business, but also improve the matching efficiency of the recommended card set. Compared with the traditional matching query method of objects and multiple object sets, the matching method between strings only needs to perform character matching, and the time complexity is reduced from (n*m) to (n), which effectively improves the query efficiency and enables the player user to quickly obtain the recommended card set to participate in the card battle. BRIEF DESCRIPTION OF DRAWINGS
[0052] The above and / or additional aspects and advantages of the present application will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
[0053] Figure 1 A typical network deployment architecture diagram for implementing the technical solutions of the present application;
[0054] Figure 2 A flowchart of a typical embodiment of the card set recommendation processing method of the present application;
[0055] Figure 3 A flowchart for the specific embodiment of generating a card set feature string according to a user card set in the present application;
[0056] Figure 4 A flowchart for the specific embodiment of traversing a plurality of first card set feature string sets based on card set feature string traversal rules, and querying a card set feature string with a corresponding card set feature string in the present application;
[0057] Figure 5 A flowchart for the specific embodiment of comparing whether a card set feature string matches a card set feature string in the present application;
[0058] Figure 6 A flowchart for the specific embodiment of generating a card feature string of each card object in the present application;
[0059] Figure 7 A flowchart for the specific embodiment of performing a card recommendation obtaining service for a player user to which a card set feature string cannot match a corresponding card set feature string in the present application;
[0060] Figure 8 A principle block diagram of a typical embodiment of a card set recommendation processing device of the present application;
[0061] Figure 9 A basic structure block diagram of a computer device of an embodiment of the present application. DETAILED DESCRIPTION
[0062] Embodiments of the present application are described in detail below with reference to the attached drawings, which are examples of embodiments of the present application. The embodiments described below are examples only, and are not to be construed as limiting the present application.
[0063] It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. As used herein, "connected," "coupled," and / or "coupling," can include both direct connections and / or indirect connections (i.e., via one or more other elements). As used herein, "connection" or "coupling" can include a wireless connection or a wireless coupling. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0064] Those skilled in the art will appreciate that unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the specification and relevant art and should not be interpreted in an overly legal sense unless expressly so defined herein.
[0065] Those skilled in the art will understand that, as used herein, the terms "client," "terminal," and "terminal device" include both devices that are solely wireless signal receivers and devices that have both receiving and transmitting hardware that can communicate bi-directionally over a bi-directional communication link. Such devices can include cellular or other communication devices with single-line or multiple-line displays, or no display, Personal Communications Service (PCS) devices that can combine a voice and / or data processor, a PDA that can include a radio frequency receiver and a pager, Internet and / or Intranet access, a Web browser, a calendar, and / or a GPS receiver, a conventional laptop and / or palmtop computer and / or other devices that have a radio frequency receiver. As used herein, the terms "client," "terminal," and "terminal device" can be portable, transportable, mounted in a vehicle (aeronautical, maritime, and / or land), or adapted and / or configured for local and / or distributed operation on Earth and / or any other location in space. As used herein, the terms "client," "terminal," and "terminal device" can also be a communication terminal, an Internet terminal, a music / video playing terminal, such as a PDA, a Mobile Internet Device (MID), and / or a mobile phone with music / video playing function, a smart television, a set-top box, and / or the like.
[0066] As used herein, the terms "server," "client," "worker node," and the like refer to hardware that is essentially an electronic device with the equivalent capability of a personal computer, which is a hardware device having the necessary components disclosed by the Von Neumann principle, including a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device, and the like. A computer program is stored in the memory, the central processing unit calls the program stored in the external memory into the memory to run, executes the instructions in the program, and interacts with the input and output devices, thereby completing a specific function.
[0067] It should be noted that the concept of "server" in the present application can also be extended to the case of a server cluster. According to the principle of network deployment understood by those skilled in the art, the servers should be logically divided, and in physical space, these servers can be independent but can be called through an interface, or can be integrated into a physical computer or a computer cluster. Those skilled in the art should understand this variation and should not be restricted by the implementation of the network deployment of the present application.
[0068] Referring to Figure 1 The hardware foundation required for the implementation of the technical solutions related to the present application can be deployed according to the architecture shown in the figure. The server 80 referred to in the present application is deployed in the cloud and serves as an online server, which can be responsible for further connecting related data servers and other servers that provide related support, etc., to form a logically associated server cluster to provide services for related terminal devices such as the smart phone 81 and the personal computer 82 shown in the figure or a third-party server (not shown). The smart phone and the personal computer can access the Internet through a known network access method and establish a data communication link with the server 80 in the cloud to run terminal application programs related to the services provided by the server.
[0069] For the server, the application program is usually built as a service process to open a corresponding program interface for remote calling by application programs running on various terminal devices. The technical solutions related to the present application suitable for running on the server can be implemented in the server in this way.
[0070] The application program refers to an application program running on a server or a terminal device. This application program implements the technical solutions related to the present application in a programming manner, and its program code can be saved in a computer-recognizable non-volatile storage medium in the form of computer executable instructions and be called into the memory by the central processing unit for running. The related device of the present application is constructed through the running of the application program on the computer.
[0071] For the server, the application program is usually built as a service process to open a corresponding program interface for remote calling by application programs running on various terminal devices. The technical solutions related to the present application suitable for running on the server can be implemented in the server in this way.
[0072] Those skilled in the art should know that the various methods of the present application, although based on the same concept and common to each other, are independently executable unless otherwise specified. Similarly, for each embodiment disclosed in the present application, it is based on the same inventive concept, so the same concept should be understood as equivalent, and the concept is appropriately changed only for the convenience of description.
[0073] Please refer to Figure 2 The card set recommendation processing method of the present application, in its typical embodiment, includes the following steps:
[0074] Step S11, in response to the playing card set recommendation instruction, the user playing level and the user card set corresponding to the card set recommendation instruction are obtained:
[0075] The playing card set recommendation instruction is associated with the card set recommendation service in the platform. The player user in the card game service of the platform triggers the generation of the playing card set recommendation instruction acting on the player user by using the card set recommendation service, and pushes it to the server. The server will respond to the playing card set recommendation instruction to recommend the playing card set according to the user playing level and the user card set corresponding to the player user.
[0076] The user playing level refers to the playing level of the player user in the card game service. The player user will be given a certain number of playing experience in the card game service after playing the card battle game. The user playing level of the player user is determined according to the playing experience possessed by the player user, and then the player users with different game levels are distinguished by the user playing level, so as to match the player users in the card game service and process the recommended card set matching of the card set recommendation service. For the card set recommendation service, the card set recommendation according to the user playing level can help the user understand the battle ideas of each card in the recommended card set. In some card game services, the playing level of each card will be set, and the player user can use the corresponding card only after reaching the corresponding user playing level. Therefore, the card set recommendation according to the user playing level in the card set recommendation service can improve the query and matching speed of the recommended card set.
[0077] The user card set contains the card object possessed by the player user in the card game service. By obtaining the user card set corresponding to the player user who pushes the playing card set recommendation instruction, the card object possessed by the player user is determined. The card object contained in the user card set is generally composed of a card name and a card picture material. In addition to visualization, the card name will be used to obtain the card feature string of the card object in the subsequent process.
[0078] Step S12, obtain the card feature string corresponding to each card object in the user card set, and combine each card feature string into a card set feature string:
[0079] After obtaining the user card set corresponding to the game card group recommendation instruction, obtain the card feature string corresponding to each card object in the user card set. The card feature string is generally composed of multiple strings. The length of the string of the card feature string is the same as the total number of cards possessed by the card game service. For example, when the total number of cards possessed by the card game service is 100, the length of the string of the card feature string will be 100. The same string length as the total number of cards represents a card by a character at a certain character position in the string. For example, for the sake of convenience, assuming that the total number of cards is 12, the initialized card feature string is generally 000000000000, and the corresponding card object is 12. For each card object, the card feature string corresponding to the card object is as follows:
[0080] Card object A: [100000000000]
[0081] Card object B: [010000000000]
[0082] Card object C: [001000000000]
[0083] Card object D: [000100000000]
[0084] Card object E: [000010000000]
[0085] Card object F: [000001000000]
[0086] Card object G: [000000100000]
[0087] Card object H: [000000010000] ........
[0089] Card object L: [000000000001]
[0090] Of course, the total number of cards possessed by a general card game service is in the range of 100 to 200 or more, so the length of each card feature string possessed by it can be 100 to 200.
[0091] Specifically, regarding the specific implementation of generating each card feature string of the card game service, first, the full set of cards is obtained, and the full set of cards stores all card objects possessed by the card game service. Then, according to the number of card objects possessed by the full set of cards, an initial card feature string with a string length equal to the number of card objects is generated. For a card object, according to the storage order of the current card object acting on the full set of cards, the character at the character position corresponding to the storage order in the initial card feature string is modified to a preset character, and the modified initial card feature string is used as the card feature string of the current card object.
[0092] Generally, the card feature string of each card object is stored in a card feature string library, and the card feature string library stores a plurality of mapping relationship data composed of the card feature string and the card name of the card object.
[0093] After the server obtains the card names corresponding to the plurality of card objects contained in the user card set, the server queries the target card feature string corresponding to the card name in the card feature string library to obtain the target card feature string corresponding to each card object possessed by the player user pushing the game card group recommendation instruction, and then combines each target card feature string to generate a card set feature string containing the characters possessed by each target card feature string. For example, when the target card feature strings corresponding to the card objects possessed by the player user are as follows:
[0094] Card object A: [100000000000]
[0095] Card object B: [010000000000]
[0096] Card object C: [001000000000]
[0097] Card object D: [000100000000]
[0098] The card set feature string generated by combining the target card feature strings will be: [111100000000].
[0099] Step S13, query one or more first card group feature string sets in the recommended card group library whose play level does not exceed the user play level, and the recommended card group library stores a plurality of card group feature string sets classified by play level, and each card group feature string set contains card group feature strings sorted in descending order of play win rate:
[0100] The server also queries one or more first deck feature string sets that do not exceed the user's playing level from the recommended deck library when generating the card set feature string, to query corresponding playing decks from each first deck feature string set for deck recommendation.
[0101] The recommended deck library stores a plurality of deck feature string sets classified by playing levels, each of the deck feature string sets stores a plurality of deck feature strings, and each of the deck feature strings in each of the deck feature string sets is sorted in descending order of the corresponding stored playing win rate, so that when the server subsequently traverses the deck feature string sets, the card set feature string can be compared with the deck feature string with a higher playing win rate, improving the matching efficiency of the recommended deck.
[0102] The deck feature string is a string composed of a plurality of different card feature strings corresponding to the card objects. The card game service collects the playing decks used by players of different playing levels and the playing win rates of the playing decks in card battle matches. The playing win rate is determined according to the total number of matches and the number of victories of the player using the playing deck in card battle matches. After the server collects a plurality of playing decks and their playing win rates, the playing deck with a playing win rate exceeding a preset threshold is regarded as a recommended deck. The preset threshold is generally set in the range of 60% to 80%. The card feature strings corresponding to each card object of the recommended deck are obtained, and the card feature strings are used to generate the deck feature string of the recommended deck. According to the playing level corresponding to the recommended deck, the deck feature string and the playing win rate are stored in the deck feature string set corresponding to the playing level.
[0103] Step S14: Starting from the first deck feature string set with a higher playing level, traverse each deck feature string in the current first deck feature string set according to the card set feature string, and query whether there is a deck feature string with characters and character positions corresponding to the card set feature string in the current first deck feature string set. If there is, the playing deck corresponding to the first queried deck feature string is regarded as a recommended deck.
[0104] After obtaining the card set feature string corresponding to the user's card set and obtaining one or more first deck feature string sets from the recommended deck library, start from the first deck feature string set with a higher playing level, and traverse each deck feature string in the current first deck feature string set according to the card set feature string.
[0105] The server obtains a current first card set feature string set of the highest current playing level, and according to characters possessed by the card set feature string, iteratively queries each card feature string of the first card set feature string set. When a card set feature string having characters and character positions corresponding to the card set feature string is found in the current first card set feature string, the playing card set corresponding to the first card feature string is taken as the recommended card set, so as to push the recommended card set to a user terminal of a player user corresponding to the playing card set recommendation instruction. If there is no card set feature string having characters and character positions corresponding to the card set feature string in the current first card set feature string set, other first card set feature string sets of lower playing levels are obtained, and whether there is a card set feature string having characters and character positions corresponding to the card set feature string in each card feature string of the first card set feature string set is iteratively queried. The above execution logic is used to iteratively obtain each first card set feature string set. When a card set feature string having characters and character positions corresponding to the card set feature string cannot be iteratively queried from all the corresponding card set feature string sets, a notification indicating that there is no recommended card set at present is pushed to the user terminal of the player user corresponding to the playing card set recommendation instruction.
[0106] In an embodiment, when there is no first card feature string having all characters possessed by the card set feature string in all the first card set feature string sets, a card recommendation obtaining service is performed to recommend to the player user to obtain a card that is missing in a recommended card set of a higher playing win rate in the playing level in which the player user is located. Specifically, when it is found that there is no card set feature string having characters and character positions corresponding to the card set feature string in each first card set feature string set, one or more card set feature strings having the same characters and the most character positions in the card set feature string are found in a first card set feature string set of a higher playing level as second card set feature strings. Then, a second card set feature string having the highest playing win rate is determined from each second card set feature string. The characters possessed by the second card set feature string and the card set feature string are compared, and characters and character positions missing in the card set feature string compared with the second card set feature string are determined. According to each character and character position, a card feature string corresponding to each character is determined based on a card feature string library, and a card object corresponding to the card feature string is taken as a recommended obtaining card.
[0107] In the embodiment of comparing the card set feature string with the card group feature string, according to the first character of the string between the card set feature string and the card group feature string, it is determined whether the characters are the same. The server sequentially compares the characters in the current card group feature string and the card set feature string from the first character of the current card group feature string and the card set feature string. The characters in the card group feature string and the card set feature string are divided into first characters and second characters. For example, the first character is generally 1, and the second character is generally 0. When the number of times that the same character position in the current card group feature string and the card set feature string is the first character exceeds a predetermined threshold, the current card group feature string is determined as the recommended card group. The predetermined threshold is determined according to the number of card limits of the playing card. For example, when the string of the current card group feature string and the card set feature string is as follows, in order to facilitate description, the total number of card groups is set to 12, the number of cards in the card group is 4, and the corresponding predetermined threshold is also 4:
[0108] Card set feature string: [110101011011]
[0109] Current card group feature string: [110101000000]
[0110] When the 6th character position of the card set feature string and the current card group feature string is compared, the number of times that the same character position is the first character is 4, and the current card group feature string is determined as the recommended card group corresponding to the card set feature string.
[0111] According to the typical embodiment of the method, the method can provide a card group recommendation service for a card game service to reduce the playing threshold of the card game service. By generating a card feature string corresponding to each full card object in the card playing service, collecting the playing card group of each player user based on the playing level and the playing win rate of the card playing service, combining each card feature string to generate a card group feature string of the recommended playing card group, and constructing a recommended card group dataset for card group recommendation based on the playing level and the playing win rate, the card group recommendation service is provided for the player user of the card game service. According to the card set feature string of the card used by the player user, the recommended card group that matches the card used by the player user is matched from the recommended card group library storing the recommended card group with a high playing win rate, so that the player user can quickly start the card game service and participate in the card battle game without the player user constructing the card group. The user quantity and user activity of the card game service can be effectively improved.
[0112] Secondly, the method distinguishes the features of cards and card decks by strings, which can effectively reduce the storage space occupied by the feature data of cards and card decks in the card deck recommendation service, and improve the matching efficiency of recommended card decks. Compared with the traditional matching query method of objects and multiple object sets, the matching method between strings only needs to perform character matching, and the time complexity is reduced from (n*m) to (n), effectively improving the query efficiency, so that players can quickly obtain recommended card decks to participate in card battles.
[0113] The above typical embodiments and their variations fully disclose the implementation of the card deck recommendation processing method of the present application, but various variations of the method can be derived by transforming and expanding some technical means, as follows:
[0114] In one embodiment, referring to Figure 3 In the step of obtaining the card deck feature strings corresponding to the multiple card objects included in the user card set and combining each card deck feature string, the following steps are included:
[0115] Step S121: Obtain the card names corresponding to the multiple card objects included in the user card set:
[0116] The server obtains the card names corresponding to the multiple card objects included in the user card set.
[0117] Step S122: Query the target card deck feature string corresponding to the card name in the card deck feature string library, and the card deck feature string library stores multiple mapping relationship data composed of card names and card deck feature strings, wherein the number of characters in the card deck feature string is equal to the number of full-quantity card objects:
[0118] The card deck feature string library stores multiple mapping relationship data composed of the card name and the card deck feature string, wherein the number of characters in the card deck feature string is equal to the number of full-quantity card objects. After the server obtains the card names corresponding to the multiple card objects included in the user card set, the target card deck feature string corresponding to the card name is obtained from the card deck feature string library to determine the card deck feature string corresponding to each card owned by the player user to which the user card set belongs.
[0119] Step S123: Combine each target card deck feature string to generate a card deck feature string containing the characters possessed by each target card deck feature string:
[0120] The server combines the strings of the target card feature strings. For example, when the target card feature strings are as follows:
[0121] Card object A: [100000000000]
[0122] Card object B: [010000000000]
[0123] Card object C: [001000000000]
[0124] Card object D: [000100000000]
[0125] The card set feature string generated after the combination of the target card feature strings is [111100000000].
[0126] In the embodiment, the card feature string corresponding to the card object is generated in advance and stored in the database. The card feature string and the card name of the card object are mapped and stored in the database, so that the server can quickly generate the card set feature string of the player user who needs to be recommended for card set recommendation to recommend the card set matching, and improve the execution efficiency of the card set recommendation service.
[0127] In an embodiment, please refer to Figure 4 , the card set feature string set with the highest playing level is obtained, and each card set feature string in the first card set feature string set is traversed according to the card set feature string to query whether there is a card set feature string with characters and character positions corresponding to the card set feature string in the current first card set feature string set. If there is, the playing card set corresponding to the card set feature string that is first queried is taken as the recommended card set.
[0128] In step S141, the current first card set feature string set with the highest playing level is obtained, and each card set feature string in the first card set feature string set is traversed according to the character of the card set feature string.
[0129] The server will first obtain the first card set feature string set with the highest playing level in each first card set feature string set for traversal query. During the traversal query, each card set feature string in the first card set feature string set is traversed according to the character of the card set feature string.
[0130] Step S142, when a card deck feature string with characters and character positions corresponding to the card deck feature string exists in the current first card deck feature string, the playing card deck corresponding to the first card deck feature string is taken as the recommended card deck:
[0131] When the server traverses the current first card deck feature string, the server sequentially compares each card deck feature string with each card deck feature string according to the storage order of each card deck feature string in the current first card deck feature string. When a card deck feature string with characters and character positions corresponding to the card deck feature string exists in the current first card deck feature string, the playing card deck corresponding to the first card deck feature string is taken as the recommended card deck.
[0132] Step S143, if a card deck feature string with characters and character positions corresponding to the card deck feature string does not exist in the current first card deck feature string set, a first card deck feature string set with a lower playing level than the current first card deck feature string set is obtained for traversal query:
[0133] If the server cannot query a card deck feature string with characters and character positions corresponding to the card deck feature string from the first card deck feature string set of the current playing level, the server traverses other first card deck feature string sets with a level lower than the first card deck feature string set by one until all the first card deck feature string sets queried from the recommended card deck library are traversed.
[0134] In this embodiment, the server traverses each first card deck feature string set from high to low according to the playing level of each first card deck feature string set to query a card deck feature string matching the card deck feature string, and when traversing, each card deck feature string in the first card deck feature string set is compared according to the playing win rate, so as to preferentially compare card deck feature strings with higher playing win rates, recommend card decks with higher playing levels and playing win rates to player users, and improve the playing experience of the card playing service for player users.
[0135] In one embodiment, please refer to Figure 5 The step of querying whether a card deck feature string with characters and character positions corresponding to the card deck feature string exists in the current first card deck feature string set includes the following steps:
[0136] Step S141', starting from the first character of the current card deck feature string and the card deck feature string, sequentially comparing the characters in the current card deck feature string and the card deck feature string, wherein the characters in the card deck feature string and the card deck feature string are divided into first characters and second characters:
[0137] In the comparison between the card group feature string and the card set feature string, the first character of each string is compared, wherein the first character and the second character are generally included in each string, the first character can be 1, and the second character can be 0, and of course, the first character and the second character can be flexibly designed by those skilled in the art.
[0138] In step S142', when the number of times that the same character positions in the current card group feature string and the card set feature string are the first character exceeds a preset threshold, the playing card group corresponding to the current card group feature string is determined as a recommended card group, wherein the preset threshold is determined according to the limited number of cards of the playing card:
[0139] For example, the number of card groups is set to 12, the number of cards in the card group is 4, and the corresponding preset threshold is also 4.
[0140] Card set feature string: [110101011011]
[0141] Current card group feature string: [110101000000]
[0142] When the 6th character position of the card set feature string and the current card group feature string is compared, the number of times that the same character positions are the first character is 4, and then the current card group feature string is determined as the recommended card group corresponding to the card set feature string.
[0143] In this embodiment, by comparing the characters of the card group feature string and the card set feature string in order, it is determined whether the cards in the card group are the cards in the user card set, and the time complexity is low, and the matching between the cards in the user card set and the cards in the card group can be quickly determined.
[0144] In one embodiment, referring to Figure 6 Before the step of obtaining the user playing level and the user card set corresponding to the card group recommendation instruction, the method comprises the following steps:
[0145] In step S08, a full card set is obtained, and the full card set stores all card objects possessed by the card game service:
[0146] The full card set refers to all card objects that can be used by the player user in the card battle game, and the full card set is obtained to generate and store corresponding card feature strings for the card objects included in the set in advance.
[0147] Step S09, generating an initial card feature string with a string length of the card number of the card object according to the card number of the card object possessed by the full-amount card set:
[0148] The card number of the card object possessed by the full-amount card set generally refers to the full-amount card number possessed by the card game service. The server will generate an initial card feature string with a string length of the card number according to the card number. For example, when the card number is 12, the initial card feature string generated is generally: [000000000000].
[0149] Step S10, modifying the character at the character position corresponding to the storage order of the full-amount card set to a preset character in the initial card feature string according to the storage order of the current card object acting on the full-amount card set, and taking the modified initial card feature string as the card feature string of the current card object:
[0150] When the storage order of the current card object acting on the full-amount card set is 5, and the card number of the full-amount card set is 12, the preset character is generally 1. Therefore, the initial card feature string is: [000000000000], and the card feature string generated for the current card object is: [000010000000].
[0151] In this embodiment, based on the card number and the card object possessed by the card game service, the card feature string generated for the card object possessed by the card game service has high generation efficiency and is a distinguishable and easily recognizable feature string, which is also convenient for the generation and matching of the card set and the card group.
[0152] In one embodiment, referring to Figure 7 , the step of starting from the first card group feature string set with a higher play level, traversing each card group feature string in the current first card group feature string set according to the card set feature string, and querying whether there is a card group feature string with characters and character positions corresponding to the card set feature string in the current first card group feature string set, if there is, taking the first queried card group feature string as the recommended card group, includes the following steps:
[0153] Step S15, when there is no card group feature string with characters and character positions corresponding to the card set feature string in each first card group feature string set, taking one or more card group feature strings with the same characters and character positions contained in the card set feature string in the first card group feature string set with a higher play level as the second card group feature string:
[0154] When the server traverses all the first card group feature string sets and still cannot query out a card group feature string having characters and their character positions corresponding to the card set feature string, a first card group feature string with a higher play level in each of the first card group feature string sets is queried out, and one or more card group feature strings in the first card group feature string corresponding to the card set feature string having the same characters and their character positions most are queried out as the second card group feature string.
[0155] Step S16, determine the second card group feature string with the highest play win rate in each of the second card group feature strings, and compare the characters possessed by the second card group feature string and the card set feature string to determine the characters and their character positions that are missing in the card set feature string compared to the second card group feature string:
[0156] When multiple second card group feature strings exist in the card set feature string, the second card group feature string with the highest play win rate in each of the second card group feature strings is determined to compare the characters possessed by the second card group feature string and the card set feature string to determine the characters and their character positions that are missing in the card set feature string compared to the second card group feature string.
[0157] Step S17, according to each of the characters and their character positions, based on the card feature string library, determine the card feature string corresponding to each of the characters, and push the card objects corresponding to the card feature strings as recommended acquisition cards to the user end of the player user to which the card set feature string belongs.
[0158] After determining the characters and their character positions that are missing in the card set feature string compared to the second card group feature string with the highest play win rate, the feature strings corresponding to each of the characters and their character positions are generated, the card feature strings corresponding to each of the feature strings are queried out from the card feature string library, and the card feature strings with any of the feature strings are pushed to the user end of the player user to which the card set feature string belongs as recommended acquisition cards.
[0159] In this embodiment, when there is no first card group feature string having all the characters possessed by the card set feature string of the player user in all the first card group feature string sets, the card recommendation acquisition service can be performed to recommend to the player user to acquire the cards missing in the recommended card group with a higher play win rate in the play level in which the player user is located.
[0160] Further, each step in the method disclosed in the above embodiments can be functionized to construct a card group recommendation processing device of the present application. According to this idea, please refer to Figure 8In a typical embodiment of one of the above, the device comprises: a card recommendation response module 11, configured to respond to a card set recommendation instruction, and obtain a user play level and a user card set corresponding to the card set recommendation instruction; a feature string generation module 12, configured to obtain card feature strings corresponding to a plurality of card objects contained in the user card set, and combine the card feature strings to generate a card set feature string; a card set set query module 13, configured to query one or more first card set feature string sets in a recommended card set library, the recommended card set library storing a plurality of card set feature string sets classified by play levels, and each card set feature string set containing card set feature strings sorted in descending order of play win rates; and a recommended card set determination module 14, configured to start from a first card set feature string set with a higher play level, traverse each card set feature string in the current first card set feature string set according to the card set feature string, query whether there is a card set feature string in the current first card set feature string set that has characters and character positions corresponding to the card set feature string, and if so, take the play card set corresponding to the card set feature string as the recommended card set.
[0161] In an embodiment, the feature string generation module 12 comprises: a card name acquisition submodule, configured to obtain card names corresponding to a plurality of card objects contained in the user card set; a card feature string query submodule, configured to query a target card feature string corresponding to the card name in a card feature string library, the card feature string library storing a plurality of mapping relationship data composed of card names and card feature strings, wherein the number of characters of the card feature string is equal to the number of full-amount card objects; and a card set feature string generation submodule, configured to combine each target card feature string to generate a card set feature string containing characters possessed by each target card feature string.
[0162] In an embodiment, the recommended card set determination module 14 comprises: a feature string traversal submodule, configured to obtain a current first card set feature string set with the highest play level, and traverse and query each card feature string in the first card set feature string set according to the characters possessed by the card set feature string; a recommended card set acquisition submodule, configured to take the play card set corresponding to the first card feature string as the recommended card set when there is a card set feature string in the current first card set feature string set that has characters and character positions corresponding to the card set feature string; and a new set traversal submodule, configured to obtain other first card set feature string sets with lower play levels than the current first card set feature string set for traversal query when there is no card set feature string in the current first card set feature string set that has characters and character positions corresponding to the card set feature string.
[0163] In another embodiment, the recommended deck determination module 14 further includes: a feature string comparison submodule, used to sequentially compare the characters in the current deck feature string and the card set feature string, starting from the first character of each; wherein the characters in the deck feature string and the card set feature string are divided into first characters and second characters; and a recommended deck determination submodule, used to select the play deck corresponding to the current deck feature string as the recommended deck when the number of times the first character is present at the same position in the current deck feature string and the card set feature string exceeds a preset threshold; wherein the preset threshold is determined based on the limited number of play cards.
[0164] To address the aforementioned technical problems, this application also provides a computer device for running a computer program implemented according to the card deck recommended processing method. Please refer to the following for details. Figure 9 , Figure 9 This is a basic structural block diagram of the computer device in this embodiment.
[0165] like Figure 9 The diagram shows the internal structure of a computer device. This computer device includes a processor, non-volatile storage medium, memory, and a network interface connected via a system bus. The non-volatile storage medium stores an operating system, a database, and computer-readable instructions. The database may store control information sequences. When the computer-readable instructions are executed by the processor, they enable the processor to implement a card deck recommendation processing method. The processor provides computing and control capabilities, supporting the operation of the entire computer device. The memory stores computer-readable instructions, which, when executed by the processor, enable the processor to perform a card deck recommendation processing method. The network interface of the computer device is used for communication with a terminal. Those skilled in the art will understand that… Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0166] In this embodiment, the processor executes the specific functions of each module / submodule in the card deck recommendation processing device of this application, and the memory stores the program code and various types of data required to execute the above modules. The network interface is used for data transmission between the user terminal and the server. In this embodiment, the memory stores the program code and data required to execute all modules / submodules in the card deck recommendation processing device, and the server can call the server's program code and data to execute the functions of all submodules.
[0167] The application further provides a non-volatile storage medium, in which the card set recommendation processing method is written into a computer program and stored in the form of computer readable instructions. When the computer readable instructions are executed by one or more processors, the program is executed in the computer, so that the one or more processors execute the steps of the card set recommendation processing method of any one of the above embodiments.
[0168] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer readable storage medium. When the program is executed, the processes of the above-mentioned embodiments can be included. The storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0169] In summary, the application can provide a card set recommendation service for a card game service to reduce the threshold of playing the card game service.
[0170] It should be understood that although each step in the flowchart of the accompanying drawings is displayed in sequence according to the direction of the arrow, these steps are not necessarily executed in sequence according to the direction of the arrow. Unless otherwise stated herein, the execution of these steps is not strictly limited in sequence, and they can be executed in other sequences. Moreover, at least part of the steps in the flowchart of the accompanying drawings can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or sub-steps or stages of other steps.
[0171] Those skilled in the art can understand that the various operations, methods, processes, steps, measures, and schemes discussed in the application can be alternated, changed, combined, or deleted. Further, other steps, measures, and schemes with the various operations, methods, processes discussed in the application can also be alternated, changed, rearranged, decomposed, combined, or deleted. Further, the prior art with the steps, measures, and schemes of the various operations, methods, processes disclosed in the application can also be alternated, changed, rearranged, decomposed, combined, or deleted.
[0172] The above only describes some embodiments of the application. It should be pointed out that those skilled in the art can make several improvements and refinements without departing from the principles of the application, and these improvements and refinements should also be considered as the protection scope of the application.
Claims
1. A card deck recommendation processing method characterized by comprising: The method comprises the following steps: In response to a card set recommendation instruction, a user playing level and a user card set corresponding to the card set recommendation instruction are obtained; Card feature strings corresponding to a plurality of card objects contained in the user card set are obtained, and the card feature strings are combined into a card set feature string; One or more first card set feature string sets in a recommended card set library whose playing levels do not exceed the user playing level are queried out, the recommended card set library stores a plurality of card set feature string sets classified by playing levels, and the card set feature string set contains card set feature strings sorted in descending order according to playing win rates; Starting from the first card set feature string set with a higher playing level, each card set feature string in the current first card set feature string set is traversed according to the card set feature string, and it is determined whether there is a card set feature string in the current first card set feature string set whose characters and character positions correspond to the card set feature string, if there is, a playing card set corresponding to the card set feature string that is first queried out is taken as a recommended card set.
2. The method of claim 1, wherein, In the step of obtaining card feature strings corresponding to a plurality of card objects contained in the user card set, and combining the card feature strings into a card set feature string, the following steps are included: The card names corresponding to the plurality of card objects contained in the user card set are obtained; A target card feature string corresponding to the card name is queried in a card feature string library, the card feature string library stores a plurality of mapping relationship data composed of card names and card feature strings, and the number of characters of the card feature string is equal to the number of full-amount card objects; The target card feature strings are combined to generate a card set feature string containing the characters possessed by each target card feature string.
3. The method of claim 1, wherein, In the step of starting from the first card set feature string set with a higher playing level, traversing each card set feature string in the current first card set feature string set according to the card set feature string, determining whether there is a card set feature string in the current first card set feature string set whose characters and character positions correspond to the card set feature string, if there is, taking a playing card set corresponding to the card set feature string that is first queried out as a recommended card set, the following steps are included: The first card set feature string set with the highest current playing level is obtained, and each card set feature string in the first card set feature string set is traversed and queried according to the characters possessed by the card set feature string; When a card set feature string in the current first card set feature string set whose characters and character positions correspond to the card set feature string is traversed, a playing card set corresponding to the first card set feature string is taken as the recommended card set; If there is no card set feature string in the current first card set feature string set whose characters and character positions correspond to the card set feature string, other first card set feature string sets with lower playing levels than the current first card set feature string set are obtained for traversal and query.
4. The method of claim 1, wherein, In the step of determining whether there is a card set feature string in the current first card set feature string set whose characters and character positions correspond to the card set feature string, the following steps are included: Start from the first character of the current deck feature string and the card set feature string, sequentially compare the characters in the current deck feature string and the card set feature string, wherein the characters in the deck feature string and the card set feature string are divided into first characters and second characters; When the number of times that the current deck feature string and the card set feature string are both first characters at the same character position exceeds a preset threshold, the current deck is determined as a recommended deck, wherein the preset threshold is determined according to the limited number of cards in the game.
5. The method of claim 1, wherein, Before the steps of obtaining the user's game level and the user's card set corresponding to the card group recommendation instruction, the method comprises the following steps: Obtain a full card set, wherein the full card set stores all card objects possessed by the card game service; Generate an initial card feature string with a length equal to the number of card objects in the full card set; According to the storage order of the current card object on the full card set, modify the character at the corresponding character position in the initial card feature string to a preset character, and use the modified initial card feature string as the card feature string of the current card object.
6. The method of claim 1, wherein, After the steps of starting from the first deck feature string set of a higher game level, traversing each deck feature string in the current first deck feature string set according to the card set feature string, and querying whether there is a deck feature string in the current first deck feature string set that has characters and character positions corresponding to the card set feature string, if there is, the first queried deck feature string corresponding to the game card group is determined as a recommended deck, the following steps are included: When there is no deck feature string in each first deck feature string set that has characters and character positions corresponding to the card set feature string, the one or more deck feature strings in the first deck feature string set of a higher game level that contain the same characters and have the most character positions are determined as second deck feature strings; Determine the second deck feature string with the highest game win rate in each second deck feature string, compare the characters in the second deck feature string and the card set feature string, and determine the characters and character positions that are missing in the card set feature string compared to the second deck feature string; According to each character and character position, determine the card feature string corresponding to each character based on a card feature string library, and determine the card objects corresponding to the card feature strings as recommended card acquisition cards.
7. A card group recommendation processing device characterized by comprising: The method comprises: a card recommendation response module for responding to a game card group recommendation instruction, obtaining the user's game level and the user's card set corresponding to the card group recommendation instruction; a feature string generation module for obtaining the card feature strings corresponding to the plurality of card objects in the user's card set, and combining each card feature string into a card set feature string; The card set collection query module is configured to query one or more first card set feature string sets in a recommended card set library, wherein the recommended card set library stores a plurality of card set feature string sets classified by play levels, and each card set feature string set contains card set feature strings sorted in descending order according to play win rates; The recommended card set determination module is configured to start from a first card set feature string set with a higher play level, traverse each card set feature string in the current first card set feature string set according to the card set feature string, and query whether there is a card set feature string with characters and character positions corresponding to the card set feature string in the current first card set feature string set. If there is, the play card set corresponding to the card set feature string that is first queried is taken as the recommended card set.
8. An electronic device comprising a central processing unit and a memory, characterized in that The central processing unit is configured to call and run a computer program stored in the memory to perform the steps of the method according to any one of claims 1 to 6.
9. A non-volatile storage medium, comprising: The computer program is stored in the form of computer readable instructions and is implemented according to the method of any one of claims 1 to 6. When the computer program is called and run by a computer, the steps included in the method are performed.
10. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instructions are executed by the processor to implement the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Information sharing method and device, processor and terminal applied to game client
CN108563521A
Information recommendation method and device, computer equipment and medium
CN113274737A