Method, apparatus, electronic device and storage medium for determining prompt information

By performing placeholder coding and bitwise calculation on the hand deck group, we quickly determine the target winning deck group in the chess and card game, solving the problem of prompt information not being processed quickly and improving the user experience.

CN115463420BActive Publication Date: 2025-07-04BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211160969.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2025-07-04
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

The prompt information in chess and card game applications is not processed quickly enough, resulting in poor user experience.

Method used

By obtaining hand decks, encoding them using placeholder methods, calling pre-stored winning deck encoding data, and matching calculations are performed based on bit-wise calculation methods, quickly determine the target winning decks to generate prompt information.

Benefits of technology

Improve the processing efficiency of prompt information, save computing resources, and improve the user's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115463420B_ABST
    Figure CN115463420B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for determining a prompt message, belonging to the field of computer technology. The method includes: obtaining a hand card deck; encoding the hand card deck in a placeholder manner to obtain hand card deck encoding data; calling the winning hand card deck encoding data of a plurality of pre-stored winning hand card decks; the winning hand card deck encoding data includes a winning card quantity encoding segment, and the winning card quantity encoding segment is obtained by encoding the winning hand card deck in a placeholder manner; based on a bitwise AND operation method, respectively matching and calculating the hand card deck encoding data with the winning card quantity encoding segments of the plurality of winning hand card decks to determine a target winning hand card deck from the plurality of winning hand card decks; generating a prompt message according to the target winning hand card deck. This method can quickly determine the target winning hand card deck through efficient matching calculation, so that the prompt message can be quickly generated according to the target winning hand card deck, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for determining prompt information. Background Art

[0002] With the development of network technologies, people's entertainment life has become increasingly rich and diverse. There are board game applications implemented based on network technologies. Users can download these board game applications to a terminal and operate on the terminal to participate in the games. When users play games through these board game applications, the board game applications can give prompts to users regarding the games to assist users in making game decisions.

[0003] In the related art, the prompts given by board game applications to users are usually not prompt enough and have poor timeliness, resulting in a poor user experience.

[0004] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0005] The present disclosure provides a method for determining prompt information, an apparatus for determining prompt information, an electronic device, a computer-readable storage medium, and a computer program product, which can quickly determine a target winning card group through efficient matching calculations and then generate prompt information according to the target winning card group.

[0006] An embodiment of the present disclosure provides a method for determining prompt information, the method including: obtaining a hand card group; encoding the hand card group in a placeholder manner to obtain hand card group encoding data; calling the winning card group encoding data of a plurality of pre-stored winning card groups; the winning card group encoding data includes a winning card quantity encoding segment, and the winning card quantity encoding segment is obtained by encoding the winning card group in a placeholder manner; performing matching calculations on the hand card group encoding data and the winning card quantity encoding segments of the plurality of winning card groups respectively based on a bitwise AND operation method to determine a target winning card group from the plurality of winning card groups; generating prompt information according to the target winning card group.

[0007] In some exemplary embodiments of the present disclosure, the hand card group includes a plurality of hand cards with card values; wherein, encoding the hand card group in a placeholder manner to obtain hand card group encoding data includes: determining the number of hand cards corresponding to each card value in the hand card group according to the card values of the hand cards in the hand card group; encoding each number of hand cards in a placeholder manner to obtain hand card group encoding data.

[0008] In some exemplary embodiments of the present disclosure, when the hand card deck includes wild cards, determining the number of hand cards corresponding to each card value in the hand card deck according to the card values of the individual hand cards in the hand card deck includes: removing the wild cards from the hand card deck to obtain a to-be-encoded card deck; determining the number of hand cards corresponding to each card value in the to-be-encoded card deck according to the card values of the individual hand cards in the to-be-encoded card deck, and using the number of hand cards corresponding to each card value in the to-be-encoded card deck as the number of hand cards corresponding to each card value in the hand card deck.

[0009] In some exemplary embodiments of the present disclosure, encoding each number of hand cards in a placeholder manner to obtain hand card deck encoding data includes: obtaining game configuration parameters, where the game configuration parameters include sorting parameters of card values and quantity threshold parameters of hand cards corresponding to each card value; determining the data structure of the hand card deck encoding data according to the sorting parameters and the quantity threshold parameters, and the data structure indicates the arrangement order and storage length of the number of hand cards corresponding to each card value; converting each number of hand cards into a card face quantity encoding value that satisfies the storage length and is stored in a placeholder manner; assembling the card face quantity encoding values in the arrangement order to obtain the hand card deck encoding data.

[0010] In some exemplary embodiments of the present disclosure, obtaining a hand card deck includes: detecting whether the hand card deck meets the trigger condition for generating a prompt message; the trigger condition includes: the hand card deck is in a winning state or a waiting-for-win state; when the hand card deck meets the trigger condition, obtaining the hand card deck.

[0011] In some exemplary embodiments of the present disclosure, the winning card deck has a score attribute value; where, when the hand card deck is in a winning state, generating a prompt message according to the target winning card deck includes: generating a prompt message according to the score attribute value of the target winning card deck and the hand cards in the target winning card deck; and, when the hand card deck is in a waiting-for-win state, generating a prompt message according to the target winning card deck includes: comparing the target winning card deck with the hand card deck, and determining the hand cards missing from the hand card deck in the target winning card deck as the to-be-prompted hand cards corresponding to the target winning card deck; generating a prompt message according to the score attribute value of the target winning card deck and the corresponding to-be-prompted hand cards.

[0012] In some exemplary embodiments of the present disclosure, performing a matching calculation on the hand card deck encoding data and the winning card quantity encoding segments of multiple winning card decks respectively based on the bitwise AND operation method to determine a target winning card deck from the multiple winning card decks includes: using the bitwise AND operation method to calculate the hand card deck encoding data and the winning card quantity encoding segments of the multiple winning card decks respectively to obtain calculation results corresponding to each winning card deck; determining the winning card deck corresponding to the calculation result that is the same as the hand card deck encoding data as the hit card deck; determining the target winning card deck from the hit card decks according to the score attribute value.

[0013] In some exemplary embodiments of the present disclosure, determining a target winning deck from the hit deck according to the score attribute value includes: sorting the hit deck in descending order of the score attribute value to obtain a target sequence; selecting the first K hit decks in the target sequence as the target winning deck, where K is an integer greater than or equal to 1.

[0014] In some exemplary embodiments of the present disclosure, the winning deck includes a plurality of winning sub - decks with combined card patterns; the winning deck encoding data further includes a card pattern encoding segment for characterizing the combined card pattern of the winning sub - decks; wherein, the method for determining the prompt information further includes: obtaining the hand sub - deck information of the hand cards that have formed a combined card pattern in the hand card deck; determining, according to the hand sub - deck information and the card pattern encoding segment of the hit deck, the mismatched hit decks in the hit deck that do not meet the combined card pattern in the hand card deck; and removing the mismatched hit decks.

[0015] In some exemplary embodiments of the present disclosure, the combined card pattern includes a first card pattern and a second card pattern. The first card pattern consists of three hand cards with the same card value, and the second card pattern consists of three hand cards with consecutive card values within a preset card value range; the card pattern encoding segment includes the card pattern characteristic value and the card value characteristic value of each winning sub - deck; if the combined card pattern of the winning sub - deck is the first card pattern, the card pattern characteristic value of the winning sub - deck is the first preset character, and the card value characteristic value of the winning sub - deck is the binary value corresponding to the card value of any one of the hand cards in the winning sub - deck; if the combined card pattern of the winning sub - deck is the second card pattern, the card pattern characteristic value of the winning sub - deck is the second preset character, and the card value characteristic value of the winning sub - deck is the binary value corresponding to the card value of the hand card with the smallest card value in the winning sub - deck; wherein, the first preset character is different from the second preset character.

[0016] An embodiment of the present disclosure provides a device for determining prompt information, including: an acquisition module configured to execute acquiring a hand card deck; an encoding module configured to execute encoding the hand card deck in a placeholder manner to obtain hand card deck encoding data; a calling module configured to execute calling the winning deck encoding data of a plurality of pre - stored winning decks; the winning deck encoding data includes a winning card quantity encoding segment obtained by encoding the winning deck in a placeholder manner; a calculation module configured to execute matching calculations by bit - wise AND operation of the hand card deck encoding data with the winning card quantity encoding segments of a plurality of winning decks respectively to determine a target winning deck from the plurality of winning decks; and a generation module configured to execute generating prompt information according to the target winning deck.

[0017] An embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing processor - executable instructions; wherein, the processor is configured to execute the executable instructions to implement the method for determining prompt information as described in any one of the above.

[0018] An embodiment of the present disclosure provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the method for determining a prompt message as described in any one of the above.

[0019] An embodiment of the present disclosure provides a computer program product, computer program / instructions, characterized in that when the computer program / instructions are executed by a processor, the method for determining a prompt message as described in any one of the above is implemented.

[0020] The method for determining a prompt message provided by the embodiments of the present disclosure can use a placeholder method to encode a hand card deck after obtaining the hand card deck to obtain hand card deck encoding data, and can call the winning card deck encoding data of multiple pre-stored winning card decks. The winning card deck encoding data can include a winning card quantity encoding segment obtained by encoding the winning card deck using a placeholder method; then, based on the bitwise AND operation method, the hand card deck encoding data can be respectively matched and calculated with the winning card quantity encoding segments of multiple winning card decks to determine a target winning card deck from multiple winning card decks, and then generate a prompt message according to the target winning card deck. It can be seen that on the one hand, using the placeholder method to encode the hand card deck and the winning card deck can obtain hand card deck encoding data and a winning card quantity encoding segment that only include '0' characters and '1' characters and can directly participate in computer logic operations, providing a data basis for subsequent matching calculations; on the other hand, based on the bitwise AND logical operation method, the hand card deck encoding data is respectively matched and calculated with the winning card quantity encoding segments of multiple winning card decks, and the target winning card deck is quickly determined through efficient matching calculations, which can avoid additional base conversions, save computing resources, improve the overall processing efficiency, and thus quickly generate prompt messages and enhance the user experience.

[0021] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure and do not constitute an improper limitation to the present disclosure.

[0023] Figure 1 is a schematic diagram of an exemplary system architecture of a method for determining a prompt message shown according to an exemplary embodiment.

[0024] Figure 2 is a flowchart of a method for determining a prompt message shown according to an exemplary embodiment.

[0025] Figure 3It is a schematic diagram of a data structure of hand card deck encoding data shown according to an exemplary embodiment.

[0026] Figure 4 It is a flowchart of determining a target winning card deck in a method for determining hint information shown according to an exemplary embodiment.

[0027] Figure 5 It is a schematic diagram of a data structure of a card type encoding segment shown according to an exemplary embodiment.

[0028] Figure 6 It is a schematic diagram of a data structure of the card type characteristic value and the card value characteristic value of a first winning sub - card deck shown according to an exemplary embodiment.

[0029] Figure 7 It is a schematic diagram of a data structure of winning card deck encoding data shown according to an exemplary embodiment.

[0030] Figure 8 It is a schematic diagram of a game interface showing a hint window shown according to an exemplary embodiment.

[0031] Fig. 9 It is a block diagram of a device for determining hint information shown according to an exemplary embodiment.

[0032] Fig.10 It is a schematic diagram of the structure of an electronic device suitable for implementing the exemplary embodiments of the present disclosure shown according to an exemplary embodiment. Detailed implementation manners

[0033] Now, example embodiments will be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. Identical reference numerals in the figures denote the same or similar parts, and thus their repeated description will be omitted.

[0034] The features, structures, or characteristics described in this disclosure can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of this disclosure. However, those skilled in the art will realize that one or more of the specific details can be omitted to practice the technical solutions of this disclosure, or other methods, components, devices, steps, etc. can be adopted. In other cases, well - known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of this disclosure.

[0035] The accompanying drawings are only schematic illustrations of the present disclosure. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings do not necessarily have to correspond to physically or logically independent entities. These functional entities may be implemented in software form, or in at least one hardware module or integrated circuit, or in different networks and / or processor devices and / or microcontroller devices.

[0036] The flowcharts shown in the accompanying drawings are only illustrative descriptions and do not necessarily include all the contents and steps, nor do they have to be executed in the described order. For example, some steps can be decomposed, while some steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.

[0037] In this specification, the terms "a", "one", "the", "said" and "at least one" are used to indicate the existence of at least one element / component / etc.; the terms "comprising", "including" and "having" are used to mean an open inclusion and mean that there may be additional elements / components / etc. in addition to the listed elements / components / etc.; the terms "first", "second", "third", etc. are only used as labels and are not a limitation on the quantity of their objects.

[0038] Figure 1 The schematic diagram of an exemplary system architecture to which the method for determining prompt information according to the embodiments of the present disclosure can be applied is shown. As Figure 1 shown, the system architecture may include a server 101, a network 102, and a client 103. The network 102 is used to provide a medium for a communication link between the client 103 and the server 101. The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0039] In an exemplary embodiment, the client 103 that performs data transmission with the server 101 may include, but is not limited to, terminal devices of various types such as smart phones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, AR (Augmented Reality) devices, VR (Virtual Reality) devices, smart wearable devices, etc. Alternatively, the client 103 may also be a personal computer, such as a laptop portable computer and a desktop computer, etc. Optionally, the operating systems running on the electronic devices may include, but are not limited to, Android system, IOS system, Linux, Windows, etc.

[0040] The server 101 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some practical applications, the server 101 can also be a server of a network platform, and the network platform can be, for example, a trading platform, a live broadcast platform, a social platform or a music platform, etc., and the embodiments of the present disclosure do not limit this. Among them, the server can be a single server or a cluster formed by multiple servers, and the present disclosure does not limit the specific architecture of the server.

[0041] In the embodiments of the present disclosure, the client 103 can be a terminal device installed with a chess and card game application, and users can participate in the game through the game interface displayed by the client 103.

[0042] In an exemplary embodiment, the process for the client 103 to implement the method for determining the prompt information can be as follows: The client 103 obtains the hand card deck; the client 103 encodes the hand card deck in a placeholder manner to obtain the hand card deck encoding data; the client 103 calls the winning hand card deck encoding data of multiple pre-stored winning hand card decks; wherein, the winning hand card deck encoding data includes a winning hand card quantity encoding segment, and this winning hand card quantity encoding segment is obtained by encoding the winning hand card deck in a placeholder manner; the client 103 can perform a matching calculation by bitwise AND operation on the hand card deck encoding data with the winning hand card quantity encoding segments of multiple winning hand card decks respectively to determine a target winning hand card deck from multiple winning hand card decks; the client 103 generates prompt information according to the target winning hand card deck. In addition, the client 103 can also generate a prompt window according to the prompt information and then display the prompt window.

[0043] In addition, it should be noted that Figure 1 What is shown is only an application environment of the method for determining the prompt information provided by the present disclosure. Figure 1 The numbers of the client 103, the network 102 and the server 101 in [[ ]] are only illustrative, and according to actual needs, there can be any number of clients, networks and servers.

[0044] To enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the following will describe each step of the online file processing method in the exemplary embodiments of the present disclosure in more detail with reference to the drawings and embodiments.

[0045] Figure 2 is a flowchart of a method for determining prompt information shown according to an exemplary embodiment, Figure 2The execution subject of the method provided by the embodiment can be any electronic device, such as Figure 1 the client 103 in the embodiment, but the present disclosure is not limited thereto.

[0046] As Figure 2 shown, the method for determining the prompt message may include the following steps.

[0047] Step S201, obtain the hand card deck.

[0048] In this step, the hand card deck may be a set composed of the current hand cards held by the user participating in the board game. These hand cards may be the same or different; the hand cards held by the user may be obtained through the card dealing operation of the server 101 after the game starts. For example, the board game may be a mahjong game, and the user may currently hold the following hand cards: [one ten thousand, one ten thousand, one ten thousand, four ten thousand, four ten thousand, four ten thousand, five ten thousand, five ten thousand, six ten thousand, six ten thousand, seven ten thousand, four bamboo], and these hand cards can form the user's hand card deck. In some practical applications, the hand card deck of the player can be obtained in real time, or the hand card deck can be obtained when it is detected by other detection tools that the hand card deck meets the preset trigger condition.

[0049] Step S203, encode the hand card deck in a placeholder manner to obtain hand card deck encoding data.

[0050] In this step, the hand card deck encoding data obtained by encoding in a placeholder manner may only include the characters '0' and '1', and can enable the computer to directly perform various logical operations (such as AND, OR, XOR) on it, avoiding additional radix conversion, thereby saving computing resources.

[0051] Step S205, call the winning hand card deck encoding data of multiple pre-stored winning hand card decks; the winning hand card deck encoding data includes a winning hand card quantity encoding segment, and the winning hand card quantity encoding segment is obtained by encoding the winning hand card deck in a placeholder manner.

[0052] In this step, the winning deck coding data can be stored in the client for the client to call. The winning deck can be determined based on the game configuration parameters of the game rules. For example, in a mahjong game, the following settings can be made in the game configuration parameters: the hand cards in the winning deck meet the combination of "four sets of cards (one of which is three consecutive cards or three identical cards) + a pair of cards (two identical cards)". Then, all winning decks can be determined in advance, and each winning deck is encoded using a placeholder method to obtain the winning card quantity coding segment of each winning deck. Then, the winning deck coding data of the winning deck is obtained based on the winning card quantity coding segment, and these winning deck coding data are stored for the call in this step. Among them, similar to step S203, encoding the winning deck using a placeholder method can also make the winning card quantity coding segment only include the characters "0" and "1", and can enable the computer to directly perform logical operations on it, saving computing resources.

[0053] In some practical applications, the winning deck coding data of multiple winning decks can be included in the installation package of the game application and stored in the client along with the user's download operation, or can be obtained from the corresponding server after the user starts the game and downloaded to the client.

[0054] Step S207, based on the bitwise AND operation method, the hand card deck coding data is respectively matched and calculated with the winning card quantity coding segments of multiple winning decks to determine the target winning deck from multiple winning decks.

[0055] In this step, the bitwise AND operation method is a logical operation of the computer, which can be executed within one clock of the computer processor. Using this operation method can quickly determine whether the hand card deck coding data matches the winning card quantity coding segment, that is, quickly determine whether the hand card deck matches the winning deck, and then determine the target winning deck from multiple winning decks. In some practical applications, the number of winning decks can reach the million level. Using the bitwise AND operation method can greatly reduce the overall operation time and obtain the calculation result within the time when the user is unaware, improving the user experience.

[0056] Step S209, generate a prompt message according to the target winning deck.

[0057] In this step, the prompt message can include, for example, each hand card included in the target winning deck, or the winning information when using the target winning deck to meet the winning conditions (such as the winning score that can be obtained, etc.); the prompt message can be used as a reference for the user in the game operation to help the user make game decisions.

[0058] Through the method for determining hint information provided by the embodiments of the present disclosure, after obtaining the hand card deck, the hand card deck can be encoded in a placeholder manner to obtain hand card deck encoding data, and the winning card deck encoding data of multiple pre-stored winning card decks can be called. The winning card deck encoding data can include a winning card quantity encoding segment obtained by encoding the winning card deck in a placeholder manner. Then, based on the bitwise AND operation method, the hand card deck encoding data can be respectively matched and calculated with the winning card quantity encoding segments of multiple winning card decks to determine a target winning card deck from multiple winning card decks, and then hint information can be generated according to the target winning card deck. It can be seen that on the one hand, encoding the hand card deck and the winning card deck in a placeholder manner can obtain hand card deck encoding data and a winning card quantity encoding segment that only include "0" and "1" characters and can directly participate in computer logic operations, providing a data basis for subsequent matching calculations. On the other hand, based on the bitwise AND logic operation method, the hand card deck encoding data is respectively matched and calculated with the winning card quantity encoding segments of multiple winning card decks, and the target winning card deck can be quickly determined through efficient matching calculations, which can avoid additional radix conversions, save computing resources, improve the overall processing efficiency, and thus can quickly generate hint information and enhance the user experience.

[0059] In an exemplary embodiment, the hand card deck may include multiple hand cards with card values.

[0060] In some practical applications, the card value may be a numerical value corresponding to a hand card. For example, in a mahjong game, the card values of hand cards with card faces from one ten thousand to nine ten thousands may be 1 to 9 respectively, the card values of hand cards with card faces from one stripe to nine stripes may be 11 to 19 respectively, and the card values of hand cards with card faces from one cake to nine cakes may be 21 to 29 respectively; or, the card values of hand cards with card faces from one ten thousand to nine ten thousands may be 1 to 9 respectively, and the card values of hand cards with card faces from one stripe to nine stripes may be 10 to 18 respectively.

[0061] Based on this, in some practical applications, step S203 may include: determining the number of hand cards corresponding to each card value in the hand card deck according to the card values of the hand cards in the hand card deck; encoding each number of hand cards in a placeholder manner to obtain hand card deck encoding data.

[0062] In this embodiment, the hand card deck is encoded in a placeholder manner, specifically, the quantity information of the hand cards included in the hand card deck can be encoded. For example, if there are three "one ten-thousand" hand cards in the hand card deck, "111" can be used to record and store the quantity information of the "one ten-thousand" hand cards to achieve encoding; if there are four "five ten-thousand" hand cards in the hand card deck, "1111" can be used to record and store the quantity information of the "five ten-thousand" hand cards to achieve encoding; if there are six hand cards as "wild cards" in the hand card deck, "111111" can be used to record and store the quantity information of the "wild cards" to achieve encoding.

[0063] In an exemplary embodiment, when the hand card deck includes wild cards, determining the number of hand cards corresponding to each card value in the hand card deck according to the card values of the individual hand cards in the hand card deck includes: removing the wild cards from the hand card deck to obtain a deck to be encoded; determining the number of hand cards corresponding to each card value in the deck to be encoded according to the card values of the individual hand cards in the deck to be encoded, and using the number of hand cards corresponding to each card value in the deck to be encoded as the number of hand cards corresponding to each card value in the hand card deck.

[0064] In some practical applications, a certain type of card can be designated as a wild card for settlement. For example, "red dragon" can be used as a wild card; since the wild card has multiple possibilities during settlement and can act as any hand card that enables the hand card deck to win, as long as the hand card deck matches the winning deck in the quantity corresponding to each non-wild card, the target winning deck corresponding to the hand card deck can be determined; therefore, in this embodiment, the wild cards can be removed first and then the hand card deck can be encoded, which can improve the encoding efficiency of the hand card deck and also optimize the matching calculation efficiency.

[0065] In an exemplary embodiment, encoding each number of hand cards in a placeholder manner to obtain hand card deck encoding data includes: obtaining game configuration parameters, where the game configuration parameters include sorting parameters of card values and quantity threshold parameters of hand cards corresponding to each card value; determining the data structure of the hand card deck encoding data according to the sorting parameters and the quantity threshold parameters, and the data structure indicates the arrangement order and storage length of the number of hand cards corresponding to each card value; converting each number of hand cards into a card face quantity encoding value stored in a placeholder manner that meets the storage length; assembling the card face quantity encoding values in the arrangement order to obtain the hand card deck encoding data.

[0066] In this embodiment, the game configuration parameters can be determined based on preset game rules. The sorting parameter of the card values and the quantity threshold parameter of the number of hands corresponding to each card value in the game configuration parameters can both be preset. For example, assuming that in the game rules, it is determined that nine types of hands from one ten-thousand to nine ten-thousands are used in this game, and the card values of the hands from one ten-thousand to nine ten-thousands are 1 to 9 respectively. Then, in the sorting parameter of the card values, on the one hand, it can indicate that there are 9 types of cards with card values from 1 to 9 in this game, and on the other hand, it can indicate that the sorting parameters of these nine card values are arranged in sequence from 1 to 9. Another example, assuming that in the game rules, it is determined that the maximum number of hands with a card value of "1" is 4, then the quantity threshold parameter of the number of hands corresponding to the card value of "1" can be 4.

[0067] After obtaining the quantity threshold parameter of the number of hands corresponding to each card value, the number of each hand can be converted into a card face quantity coding value stored in a placeholder manner that meets the storage length. For example, for the number "2", it can be represented as "11" in the placeholder manner, and then converted into a card face quantity coding value that meets the 4-bit storage length. The final conversion result can be "0011".

[0068] The following is an example for illustration:

[0069] Assume that the hand card group is [one ten-thousand, one ten-thousand, one ten-thousand, three ten-thousands, three ten-thousands]. The obtained sorting parameter of the card values is: there are 4 types of hands with card values from 1 to 4 in this game, representing "one ten-thousand" to "four ten-thousands" respectively, and the sorting parameters of these four card values are arranged in sequence from 1 to 4. The obtained quantity threshold parameter of the number of hands corresponding to each card value is 4.

[0070] Then, it can be first determined that the number of hands with card values from 1 to 4 is 3, 0, 2, 0 respectively. Then, the number of each hand can be converted into a card face quantity coding value stored in a placeholder manner that meets the storage length (4 bits): 0111, 0000, 0011, 0000. Then, assemble them in the arrangement order of the number of hands corresponding to each card value, and the hand card group coding data in the following form of the hand card group can be obtained: 0111000000110000.

[0071] In some practical applications, data can be stored from the low bit (right) to the high bit (left). Therefore, the hand card group coding data of the hand card group can be stored in the computer in the following form: 0000001100000111. The card face and the card face quantity coding value of the hands corresponding to each card value are specifically shown in the following table:

[0072] Table 1

[0073] Card Value: 4 3 2 1 Hand: forty thousand Thirty thousand 20,000 Ten thousand Card quantity encoding value: 0000 0011 0000 0111

[0074] Through the method for obtaining the hand card deck encoding data provided in this embodiment, a data structure of the hand card deck encoding data is defined, which can convert various hand card decks into data with a unified, fixed format and clear meaning, so as to perform matching calculations in subsequent steps.

[0075] Similar to the data structure of the hand card deck encoding data, the winning card number encoding segment of the winning card deck can also be set in a similar manner, which will not be elaborated here.

[0076] In an exemplary embodiment, step S201 may include: detecting whether the hand card deck meets the trigger condition for generating prompt information; and obtaining the hand card deck when the hand card deck meets the trigger condition.

[0077] Among them, it can be detected whether the hand card deck meets the trigger condition for generating prompt information through other detection functions in the game application, or it can be detected whether the hand card deck meets the trigger condition through the matching calculation in step S207 above. When it is determined that the hand card deck meets the trigger condition, the hand card deck can be obtained and the method for determining the prompt information provided by the present disclosure can be started to be executed.

[0078] In an exemplary embodiment, when the game application is a mahjong game, the trigger condition may include: the hand card deck is in a winning state or a waiting-for-win state. That is, in some practical applications, it can be first determined that the hand card deck has won or is waiting for a win (that is, the state where only one required card is needed to win), and then the method for determining the prompt information provided by the present disclosure is executed to generate prompt information in the winning state or the waiting-for-win state, so that the generated prompt information is more targeted and clear.

[0079] As described above, in some practical applications, the game configuration parameters of the mahjong game may include the "fixed discard" rule (that is, there are at most two suits of cards in the winning card deck). Then, it can be determined that when the hand card deck is in the winning state or the waiting-for-win state, the cards in the hand card deck correspond to at most two suits. At this time, these two suits can be represented by card values from 1 to 9 and 11 to 19, or by card values from 1 to 18.

[0080] Further, in some practical applications, it can also be determined which suit corresponds to 1 to 9 according to the number of cards in the hand card deck corresponding to each suit; for example, in a hand card deck, there are "character cards" and "bamboo cards", and the number of cards corresponding to the "character cards" is more and the number of cards corresponding to the "bamboo cards" is less. Then, the card values of the cards from one character to nine characters can be represented by 1 to 9, and the card values of the cards from one bamboo to nine bamboos can be represented by 11 to 19.

[0081] In addition, in some practical applications, due to the symmetry of the card values from 1 to 9 and from 11 to 19, relevant symmetric combinations can be excluded during storage. For example, [1, 1, 1, 2, 2, 2, 3, 3, 3, 11, 11, 11, 12, 12] and [11, 11, 11, 12, 12, 12, 13, 13, 13, 1, 1, 1, 2, 2] are a set of symmetric card groups, and then the latter group can be excluded, thus achieving the effect of redundant optimization and saving storage space.

[0082] Figure 3 It is a schematic diagram of the data structure of the encoded data of a hand card group shown according to an exemplary embodiment. As Figure 3 shown, it is a 9-byte storage space, and this 9-byte storage space can be used to store 18 count information with a storage length of 4 bits (bit); therefore, if the preset quantity threshold parameter for each card value corresponding to the hand cards is 4, then this 9-byte storage space can be used to store the count information of the hand cards corresponding to 18 card values.

[0083] Refer to Figure 3 , the first byte starting from the low bit is divided into storage space 301 and storage space 302. Storage space 301 and storage space 302 respectively occupy the first 4 bits and the last 4 bits of the first byte; among them, storage space 301 can be used to store the count information of the first card value among 18 card values, and storage space 302 can be used to store the count information of the second card value among 18 card values; and so on. The first 4 bits and the last 4 bits in the ninth byte are respectively occupied by storage space 303 and storage space 304. Storage space 302 can be used to store the count information of the seventeenth card value among 18 card values, and storage space 304 can be used to store the count information of the eighteenth card value among 18 card values.

[0084] In the exemplary embodiment, the winning card group has a score attribute value; among them, when the hand card group is in the state of winning a hand, a prompt message is generated according to the target winning card group, including: generating a prompt message according to the score attribute value of the target winning card group and the hand cards in the target winning card group; and when the hand card group is in the state of waiting for a winning hand, a prompt message is generated according to the target winning card group, including: comparing the target winning card group with the hand card group, and determining the hand cards missing in the hand card group from the target winning card group as the hand cards to be prompted corresponding to the target winning card group; generating a prompt message according to the score attribute value of the target winning card group and the corresponding hand cards to be prompted.

[0085] In this embodiment, the score attribute values of different winning card groups can be determined according to the calculation method of fan types in the game rules. Usually in the mahjong game, among different winning card groups containing the same hand cards, since the hand cards can be combined into different combined card types (such as straights or sets), the score attribute values that the winning card groups can obtain may be different. Therefore, when the hand card group is already in the winning state, by prompting the user to choose which combined card type to win with through the score attribute value of the target winning card group, more explicit information can be provided for the user to make a decision, thereby enhancing the user's gaming experience.

[0086] Similarly, when the hand card group is already in the listening state, it can be determined which waiting-to-be-prompted hand card is missing from the hand card group to win (i.e., win) according to the target winning card group first, and then the waiting-to-be-prompted hand card and the score attribute value of the corresponding target winning card group are prompted to the user, which can provide more explicit information for the user to make a decision, thereby enhancing the user's gaming experience.

[0087] In some practical applications, the game rules of the mahjong game also include an additional scoring method for the user to win with the missing card when the hand card group is in the listening state. Therefore, when the user's hand card group is in the listening state, in addition to prompting the user with the waiting-to-be-prompted hand card and the score attribute value of the corresponding target winning card group, the actual score that can be obtained by playing a certain card can be recalculated when the user actually plays a card to win, and then prompted to the user to ensure the accuracy of the prompt information and assist the user in timely understanding the score attribute value obtained in the current game.

[0088] Figure 4 It is a flowchart for determining the target winning card group in a method for determining prompt information shown according to an exemplary embodiment. In the exemplary embodiment, step S207 may further include the following steps.

[0089] Step S401, use the bitwise AND operation method to calculate the hand card group encoding data with the winning card quantity encoding segments of multiple winning card groups respectively, and obtain the calculation results corresponding to each winning card group.

[0090] Among them, the bitwise AND operation method ("&") is a binary operation. Its function is that the corresponding binary digits of the two numbers participating in the operation are ANDed, and the result bit is 1 only when the corresponding two binary digits are both 1.

[0091] Step S403, determine the winning card group corresponding to the calculation result that is the same as the hand card group encoding data as the hit card group.

[0092] Since the encoding method of the hand card deck encoding data is the same as that of the winning card quantity encoding segment for the number of hand cards, both representing the number information in a placeholder manner, if the calculation result after the bitwise AND operation is the same as the hand card deck encoding data, it can be determined that the number of hand cards corresponding to each card value in the hand card deck is less than or equal to the number of hand cards corresponding to each card value in the winning card deck. That is, it can be determined that the hand card deck matches the winning card deck. At this time, if the hand card deck is in the winning state, the hand card deck can win with this winning card deck. If the hand card deck is in the waiting-for-win state, the hand card deck can win with this winning card deck with one less waiting-for-prompt hand card.

[0093] Step S405: Determine the target winning card deck from the hit card decks according to the score attribute value.

[0094] In an exemplary embodiment, step S405 may further include: sorting the hit card decks in descending order of the score attribute value to obtain a target sequence; selecting the first K hit card decks in the target sequence as the target winning card decks, where K is an integer greater than or equal to 1. Among them, K can be set according to the actual situation, such as 4, 8, etc.

[0095] This step can determine K hit card decks with higher score attribute values as the target winning card decks, so that more valuable hint information can be determined based on these target winning card decks with higher score attribute values in subsequent steps, thereby assisting the player to make more reasonable and effective game decisions.

[0096] Such as Figure 4 The method flow of the matching calculation shown provides a specific method for determining whether a hand card deck matches a winning card deck and determining the target winning card deck based on the bitwise AND operation method. Through this method, it can first quickly determine whether the hand card deck matches the winning card deck to determine the hit card decks from multiple winning card decks, and then further determine the target winning card deck based on the score attribute value of the hit card decks, so that hint information about the score attribute value can be generated in subsequent steps to assist the player to make more reasonable and effective game decisions.

[0097] Furthermore, in some embodiments, the encoding data of multiple winning card decks can be arranged in descending order of the score attribute value to form a data table.

[0098] Based on this, in some embodiments, the process of "using the bitwise AND operation method to calculate the hand card deck encoding data with the winning card quantity encoding segments of multiple winning card decks" in step S401 may further include:

[0099] Using the bitwise AND operation method, sequentially perform matching calculations on the winning hand count encoding segments of the hand card deck encoding data and the winning hand deck encoding data in the data table; when the number of determined matching hand decks reaches the hit count threshold, the calculation can be stopped. The hit count threshold can be preset, for example, it can be set to 10 or 20, etc.

[0100] In this embodiment, calculations are sequentially performed based on the order formed by multiple winning hand deck encoding data in the data table, and the calculation is stopped when the number of obtained matching hand decks reaches the hit count threshold, which can further reduce the overall operation time while obtaining the expected number of matching hand decks, improve the processing efficiency, and generate prompt information faster.

[0101] In an exemplary embodiment, the winning hand deck includes multiple winning sub - hand decks with combined hand patterns; the winning hand deck encoding data further includes a hand pattern encoding segment for characterizing the combined hand pattern of the winning sub - hand decks; wherein, the method for determining the prompt information further includes: obtaining the information of the hand sub - hand decks in the hand card deck that have formed combined hand patterns; according to the information of the hand sub - hand decks and the hand pattern encoding segment of the matching hand deck, determining the non - matching matching hand decks that do not meet the combined hand pattern in the hand card deck from the matching hand decks; and removing the non - matching matching hand decks.

[0102] In some practical applications, in a mahjong game, after a user performs operations such as "pong", "chow", "kong", etc., some of the hand cards in the hand card deck can form fixed combined hand patterns. For example, after the user performs a "pong" operation, three identical hand cards related to the "pong" operation in the hand card deck can form a hand sub - hand deck with a combined hand pattern (i.e., a pung hand pattern). This kind of hand sub - hand deck that has formed a combined hand pattern further restricts the matching relationship between the hand card deck and the matching hand deck. For example:

[0103] Suppose the hand card deck includes 14 hand cards with card values, and the card values of these 14 hand cards are respectively: [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5], and among them, [3, 3, 3] is a hand sub - hand deck that has formed a combined hand pattern; if in a matching hand deck with this hand card deck, the hand card values are the same as those in the hand card deck, but the winning sub - hand decks in this matching hand deck are [1, 2, 3], [1, 2, 3], [1, 2, 3], [4, 4, 4], [5, 5], it can be seen that there is no winning sub - hand deck the same as the hand sub - hand deck [3, 3, 3]. Then this matching hand deck can be determined as a non - matching matching hand deck and can be removed.

[0104] Through this embodiment, when determining the hit card group, the information of the sub-card group of the hand cards that have currently formed a combined card type in the hand card group can be used as a filtering factor to obtain a hit card group with a higher matching degree, so that the target winning card group determined therefrom has a higher matching degree with the hand card group, thereby generating more accurate prompt information.

[0105] In an exemplary embodiment, the combined card type includes a first card type and a second card type. The first card type is composed of three hand cards with the same card value, and the second card type is composed of three hand cards with consecutive card values within a preset card value range; the card type coding segment includes the card type characteristic value and the card value characteristic value of each winning sub-card group; if the combined card type of the winning sub-card group is the first card type, the card type characteristic value of the winning sub-card group is the first preset character, and the card value characteristic value of the winning sub-card group is the binary value corresponding to the card value of any hand card in the winning sub-card group; if the combined card type of the winning sub-card group is the second card type, the card type characteristic value of the winning sub-card group is the second preset character, and the card value characteristic value of the winning sub-card group is the binary value corresponding to the card value of the hand card with the smallest card value in the winning sub-card group; wherein, the first preset character is different from the second preset character.

[0106] This embodiment provides a specific representation method for the data structure of the card type coding segment, which can store the winning sub-card groups carried in each winning card group in a unified and fixed format, so as to facilitate the computer to recognize its meaning. In some practical applications, the first card type can be the "pong card type" in the mahjong game, and the second card type can be the "straight card type" in the mahjong game. The first preset character can be 0, the second preset character can be 1, or the first preset character can be 1, the second preset character can be 0, which is not limited here. Representing the first preset character and the second preset character with "0" and "1" can facilitate the quick recognition of the computer. The storage length occupied by the card value characteristic value can be determined according to the numerical range covered by the possible card values. For example, if the card value is 1 to 18, the storage length occupied by the card value characteristic value can be 5. If the winning sub-card group is [1, 2, 3], the card value characteristic value of the winning sub-card group can be "00001"; if the winning sub-card group is [18, 18, 18], the card value characteristic value of the winning sub-card group can be "10010".

[0107] In addition, in some practical applications, there is also a winning card group containing 7 pairs of cards in the mahjong game, that is, there are 7 "pair card types" (a pair contains two identical cards) among the 14 cards of the winning card group. In this case, the card type coding segment can be filled with all "0"s, so as to be distinguished from the winning card group containing the "pong card type" or "straight card type" for the computer to recognize.

[0108] Figure 5 is a schematic diagram of the data structure of a card type coding segment shown according to an exemplary embodiment, as Figure 5 As shown, there is a 3-byte storage space, that is, a 24-bit storage space, which can store the combined hand pattern information of the winning hand pattern including four sets of cards (each set of cards is a winning sub-hand pattern, and each set of cards is a "pong hand pattern" or a "straight hand pattern"). Among them, the hand pattern eigenvalue and the card value eigenvalue of each winning sub-hand pattern can together occupy 6 bits of storage space.

[0109] Reference Figure 5 , storage space 501 can be used to store the hand pattern eigenvalue and the card value eigenvalue of the first winning sub-hand pattern, storage space 502 can be used to store the hand pattern eigenvalue and the card value eigenvalue of the second winning sub-hand pattern, storage space 503 can be used to store the hand pattern eigenvalue and the card value eigenvalue of the third winning sub-hand pattern, and storage space 504 can be used to store the hand pattern eigenvalue and the card value eigenvalue of the fourth winning sub-hand pattern.

[0110] Next, referring to Figure 6 , Figure 6 is a schematic diagram of the data structure of the hand pattern eigenvalue and the card value eigenvalue of a first winning sub-hand pattern shown according to an exemplary embodiment. As Figure 6 shown, there is a 6-bit storage space, which can be divided into storage space 601 and storage space 602. Storage space 601 can occupy 5 bits to store the card value eigenvalue. For example, storing "10010" is used to represent that the card value eigenvalue of the first winning sub-hand pattern is 18; storage space 602 can occupy 1 bit to store the hand pattern eigenvalue. For example, storing "0" is used to represent that the hand pattern eigenvalue of the first winning sub-hand pattern is a "pong hand pattern". It can be seen that when Figure 6 the storage space shown stores "010010", it can represent a winning sub-hand pattern of [18, 18, 18].

[0111] In some practical applications, when there are wild cards in the game rules, when determining each winning hand pattern in advance, the wild cards can be converted into a certain determined non-wild card for storage. Therefore, in some winning hand patterns, the number of hand cards corresponding to a certain one or several card values will be greater than the quantity threshold parameter. At this time, a remaining card coding segment can be set in the winning hand pattern coding data of the winning hand pattern to store the number of hand cards of the card value exceeding the quantity threshold parameter. For example, if it is determined in the game rules that the number of winning hand patterns is 14 and the quantity threshold parameter of the card value of each non-wild card is 4, then it can be determined that when there are remaining cards for a certain card value and the maximum number of remaining cards is 2. Based on this, two bytes of storage space can be allocated for the remaining card coding segment. Specifically, 5 bits in one byte can be used to store the card value of the remaining cards (the binary value of 1 to 18), and 3 bits can be used to store the number of remaining cards (the binary value of 0 or 1 or 2).

[0112] Figure 7 is a schematic diagram of a data structure of winning handset encoding data shown according to an exemplary embodiment. As Figure 7 shown, it includes a winning hand number encoding segment 701 that occupies 9 bytes, a remaining hand encoding segment 702 that occupies 2 bytes, and a hand type encoding segment 703 that occupies 3 bytes. Among them, the winning hand number encoding segment 701 can be used to represent the number information of non-wild cards in the winning handset. The remaining hand encoding segment 702 can be used to represent the information when a wild card is used as a certain non-wild card to win (hu), and the number of this non-wild card exceeds 4. The hand type encoding segment 703 can be used to represent the combined hand type information of the winning sub-handset in the winning handset. It can be seen that using the data structure as Figure 7 shown, all the hand information carried by each winning handset can be stored.

[0113] In the exemplary embodiment, the method for determining the prompt information further includes: generating a prompt window according to the prompt information; displaying the prompt window.

[0114] Figure 8 is a schematic diagram of a game interface showing a prompt window shown according to an exemplary embodiment. As Figure 8 shown, it includes: a game interface 801, the handset of the main perspective user 802, a hand indication control 803 of the first opponent user of the main perspective user, a hand indication control 804 of the second opponent user of the main perspective user, a hand indication control 805 of the third opponent user of the main perspective user, and a prompt window 806.

[0115] Among them, in the handset of the main perspective user 802, there are multiple hands with visible card face information. Among them, three "30,000" and three "40,000" are placed face up, indicating that these three "30,000" and three "40,000" have respectively formed combined hand types. The remaining hands (including two "50,000", two "60,000", one "70,000" and two "4 strips") are placed upright, indicating that they have not formed combined hand types yet. Obviously, the handset 802 is in a waiting-to-win state. At this time, the method for determining the prompt information provided by the present disclosure can be executed. Through matching calculations, the target winning handset and the hand to be prompted corresponding to the target winning handset are determined, and then the prompt information is generated according to the score attribute value of the target winning handset and the corresponding hand to be prompted.

[0116] The prompt window can be used to visually display the generated prompt information. As Figure 8 shown, in the prompt window 806, it can be shown that the hands to be prompted can be "wild card", "40,000" and "70,000", and information such as "aa times" can be achieved and the expected profit "bb" can be obtained by winning with these three cards can also be shown.

[0117] It can be seen that through as Figure 8The shown game interface can display specific hint waiting hands that can be used for winning a hand and the score attribute values of the corresponding target winning card groups to the user, so as to assist the user to make more reasonable and effective decisions based on the current hand card group and hint information, and obtain a better game experience.

[0118] It should be noted that the above is only to help those skilled in the art better understand the embodiments of the present disclosure, rather than to limit the scope of the embodiments of the present disclosure. Those skilled in the art can obviously make various equivalent modifications or changes according to the above examples given. For example, some steps in the above method may not be necessary, or some steps may be newly added, etc. Or any combination of any two or any multiple of the above embodiments. Such modified, changed or combined solutions also fall within the scope of the embodiments of the present disclosure.

[0119] It should also be understood that the above description of the embodiments of the present disclosure focuses on emphasizing the differences between the various embodiments. The same or similar parts not mentioned can be referred to each other. For the sake of brevity, they will not be elaborated here.

[0120] It should also be understood that the magnitudes of the serial numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present disclosure.

[0121] It should also be understood that in the various embodiments of the present disclosure, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be mutually referred to. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0122] The above has introduced in detail the example of the method for determining hint information provided by the present disclosure. It can be understood that in order for a computer device to implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0123] Fig. 9 is a block diagram of a device for determining hint information shown according to an exemplary embodiment. Referring to Fig. 9 , the device 900 for determining hint information provided by the embodiments of the present disclosure may include:

[0124] An acquisition module 901, configured to acquire a hand card deck; an encoding module 902, configured to encode the hand card deck in a placeholder manner to obtain hand card deck encoding data; a calling module 903, configured to call the winning hand card deck encoding data of multiple pre-stored winning hand card decks; the winning hand card deck encoding data includes a winning hand card quantity encoding segment, and the winning hand card quantity encoding segment is obtained by encoding the winning hand card deck in a placeholder manner; a calculation module 904, configured to perform a matching calculation by bitwise AND operation to respectively match the hand card deck encoding data with the winning hand card quantity encoding segments of multiple winning hand card decks, so as to determine a target winning hand card deck from multiple winning hand card decks; a generation module 905, configured to generate a prompt message according to the target winning hand card deck.

[0125] It can be seen that implementing Fig. 9 the device shown can encode the hand card deck in a placeholder manner after acquiring the hand card deck to obtain hand card deck encoding data, and can call the winning hand card deck encoding data of multiple pre-stored winning hand card decks. The winning hand card deck encoding data can include a winning hand card quantity encoding segment obtained by encoding the winning hand card deck in a placeholder manner; then, the hand card deck encoding data can be respectively matched with the winning hand card quantity encoding segments of multiple winning hand card decks by bitwise AND operation to determine a target winning hand card deck from multiple winning hand card decks, and then a prompt message can be generated according to the target winning hand card deck. It can be seen that on the one hand, encoding the hand card deck and the winning hand card deck in a placeholder manner can obtain hand card deck encoding data and a winning hand card quantity encoding segment that only include '0' and '1' characters and can directly participate in computer logic operations, providing a data basis for subsequent matching calculations; on the other hand, the hand card deck encoding data is respectively matched with the winning hand card quantity encoding segments of multiple winning hand card decks by bitwise AND logic operation, and the target winning hand card deck can be quickly determined through efficient matching calculations, which can avoid additional base conversions, save computing resources, improve the overall processing efficiency, and thus can quickly generate prompt messages and enhance the user experience.

[0126] In an exemplary embodiment, the hand card deck includes multiple hand cards with card values; among them, the encoding module 902 encodes the hand card deck in a placeholder manner to obtain hand card deck encoding data, including: determining the number of hand cards corresponding to each card value in the hand card deck according to the card values of each hand card in the hand card deck; encoding each number of hand cards in a placeholder manner to obtain hand card deck encoding data.

[0127] In an exemplary embodiment, when the hand card deck includes wild cards, the encoding module 902 determines the number of hand cards corresponding to each card value in the hand card deck according to the card values of the hand cards in the hand card deck, including: removing the wild cards from the hand card deck to obtain a card deck to be encoded; determining the number of hand cards corresponding to each card value in the card deck to be encoded according to the card values of the hand cards in the card deck to be encoded, and using the number of hand cards corresponding to each card value in the card deck to be encoded as the number of hand cards corresponding to each card value in the hand card deck.

[0128] In an exemplary embodiment, the encoding module 902 encodes each number of hand cards in a placeholder manner to obtain hand card deck encoding data, including: obtaining game configuration parameters, where the game configuration parameters include sorting parameters of card values and quantity threshold parameters of hand cards corresponding to each card value; determining the data structure of the hand card deck encoding data according to the sorting parameters and the quantity threshold parameters, and the data structure indicates the arrangement order and storage length of the number of hand cards corresponding to each card value; converting each number of hand cards into a card face quantity encoding value that satisfies the storage length and is stored in a placeholder manner; assembling the card face quantity encoding values in the arrangement order to obtain the hand card deck encoding data.

[0129] In an exemplary embodiment, the obtaining module 901 obtains the hand card deck, including: detecting whether the hand card deck meets the trigger condition for generating a prompt message; the trigger condition includes: the hand card deck is in a winning state or a listening state; when the hand card deck meets the trigger condition, obtaining the hand card deck.

[0130] In an exemplary embodiment, the winning card deck has a score attribute value; among them, when the hand card deck is in a winning state, the generating module 905 generates a prompt message according to the target winning card deck, including: generating a prompt message according to the score attribute value of the target winning card deck and the hand cards in the target winning card deck; and when the hand card deck is in a listening state, the generating module 905 generates a prompt message according to the target winning card deck, including: comparing the target winning card deck with the hand card deck, and determining the hand cards missing from the hand card deck in the target winning card deck as the hand cards to be prompted corresponding to the target winning card deck; generating a prompt message according to the score attribute value of the target winning card deck and the corresponding hand cards to be prompted.

[0131] In an exemplary embodiment, the calculation module 904 performs a matching calculation on the hand card deck encoding data and the winning card quantity encoding segments of multiple winning card decks respectively based on the bitwise AND operation method to determine a target winning card deck from multiple winning card decks, including: using the bitwise AND operation method to calculate the hand card deck encoding data and the winning card quantity encoding segments of multiple winning card decks respectively to obtain calculation results corresponding to each winning card deck; determining the winning card deck corresponding to the calculation result that is the same as the hand card deck encoding data as the hit card deck; determining the target winning card deck from the hit card deck according to the score attribute value.

[0132] In an exemplary embodiment, the computing module 904 determines a target winning deck from the hit decks according to the score attribute value, including: sorting the hit decks in descending order of the score attribute value to obtain a target sequence; selecting the first K hit decks in the target sequence as the target winning deck, where K is an integer greater than or equal to 1.

[0133] In an exemplary embodiment, the winning deck includes multiple winning sub - decks with combined card patterns; the winning deck coding data further includes a card pattern coding segment for characterizing the combined card pattern of the winning sub - decks; wherein, the acquisition module 901 is further configured to perform: obtaining the information of the hand sub - decks in the hand deck that have formed a combined card pattern; the computing module 904 is further configured to perform: determining, according to the hand sub - deck information and the card pattern coding segment of the hit decks, the mismatched hit decks in the hit decks that do not meet the combined card pattern in the hand deck; removing the mismatched hit decks.

[0134] In an exemplary embodiment, the combined card pattern includes a first card pattern and a second card pattern. The first card pattern consists of three hand cards with the same card value, and the second card pattern consists of three hand cards with consecutive card values within a preset card value range; the card pattern coding segment includes the card pattern characteristic value and the card value characteristic value of each winning sub - deck; if the combined card pattern of the winning sub - deck is the first card pattern, the card pattern characteristic value of the winning sub - deck is the first preset character, and the card value characteristic value of the winning sub - deck is the binary value corresponding to the card value of any one of the hand cards in the winning sub - deck; if the combined card pattern of the winning sub - deck is the second card pattern, the card pattern characteristic value of the winning sub - deck is the second preset character, and the card value characteristic value of the winning sub - deck is the binary value corresponding to the card value of the hand card with the smallest card value in the winning sub - deck; wherein, the first preset character is different from the second preset character.

[0135] It should be noted that the block diagrams shown in the above - mentioned drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor terminal devices and / or microcontroller terminal devices.

[0136] Regarding the device in the above - mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.

[0137] Next, refer to Fig.10 to describe the electronic device 1000 according to this embodiment of the present disclosure. Fig.10 The electronic device 1000 shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

[0138] As shown Fig.10 in FIG. 1, the electronic device 1000 is presented in the form of a general-purpose computing device. The components of the electronic device 1000 may include, but are not limited to: at least one of the above-mentioned processing units 1010, at least one of the above-mentioned storage units 1020, a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010), and a display unit 1040.

[0139] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 1010, so that the processing unit 1010 executes the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of the present specification above. For example, the processing unit 1010 can execute the respective steps as shown Figure 2 in FIG. 2.

[0140] Again, the electronic device can implement the respective steps as shown Figure 2 in FIG. 3.

[0141] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 1021 and / or a cache storage unit 1022, and may further include a read-only storage unit (ROM) 1023.

[0142] The storage unit 1020 may further include a program / utility 1024 having a set (at least one) of program modules 1025. Such program modules 1025 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. The implementation of a network environment may be included in each or some combination of these examples.

[0143] The bus 1030 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any bus structure in a variety of bus structures.

[0144] The electronic device 1000 can also communicate with one or more external devices 1070 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 1000, and / or communicate with any device that enables the electronic device 1000 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 1050. Moreover, the electronic device 1000 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 1060. As shown in the figure, the network adapter 1060 communicates with other modules of the electronic device 1000 through the bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0145] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by the way of software in combination with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0146] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of the device to complete the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0147] In an exemplary embodiment, a computer program product is also provided, including a computer program and / or instructions, and when the computer program and / or instructions are executed by a processor, the method for determining the prompt information in the above embodiments is implemented.

[0148] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0149] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A method for determining a prompt message, characterized in that, Including: Obtain a hand card deck; Encode the hand card deck in a placeholder manner to obtain hand card deck encoding data; Call the encoding data of multiple winning card decks pre-stored; the encoding data of the winning card deck includes a winning card quantity encoding segment, and the winning card quantity encoding segment is obtained by encoding the winning card deck in a placeholder manner; Based on the bitwise AND operation method, respectively match and calculate the hand card deck encoding data with the winning card quantity encoding segments of the multiple winning card decks to determine a target winning card deck from the multiple winning card decks; Generate a prompt message according to the target winning card deck; Among them, the hand card deck includes multiple hand cards with card values; encoding the hand card deck in a placeholder manner to obtain hand card deck encoding data includes: determining the number of hand cards corresponding to each card value in the hand card deck according to the card values of each hand card in the hand card deck; encoding each number of hand cards in a placeholder manner to obtain the hand card deck encoding data; Among them, encoding each number of hand cards in a placeholder manner to obtain the hand card deck encoding data includes: Obtain game configuration parameters, where the game configuration parameters include sorting parameters of card values and quantity threshold parameters of hand cards corresponding to each card value; Determine the data structure of the hand card deck encoding data according to the sorting parameters and the quantity threshold parameters, and the data structure indicates the arrangement order and storage length of the number of hand cards corresponding to each card value; Convert each number of hand cards into a card face quantity encoding value stored in a placeholder manner that meets the storage length; Assemble the card face quantity encoding values in the arrangement order to obtain the hand card deck encoding data.

2. The method according to claim 1, wherein When the hand card deck includes wild cards, determining the number of hand cards corresponding to each card value in the hand card deck according to the card values of each hand card in the hand card deck includes: Remove the wild cards from the hand card deck to obtain a card deck to be encoded; Determine the number of hand cards corresponding to each card value in the card deck to be encoded according to the card values of each hand card in the card deck to be encoded, and use the number of hand cards corresponding to each card value in the card deck to be encoded as the number of hand cards corresponding to each card value in the hand card deck.

3. The method according to claim 1, characterized in that, Obtain a hand card deck, including: Detect whether the hand card deck meets the trigger condition for generating the prompt message; the trigger condition includes: the hand card deck is in a winning state or a waiting-for-win state; When the hand card deck meets the trigger condition, obtain the hand card deck.

4. The method according to claim 3, characterized in that, The winning card deck has a score attribute value; Among them, when the hand card deck is in the winning state, generating a prompt message according to the target winning card deck includes: generating the prompt message according to the score attribute value of the target winning card deck and the hand cards in the target winning card deck; And, when the hand card deck is in the state of listening for winning cards, generating a prompt message according to the target winning card deck, including: comparing the target winning card deck with the hand card deck, and determining the cards missing in the hand card deck in the target winning card deck as the hand cards to be prompted corresponding to the target winning card deck; generating the prompt message according to the score attribute value of the target winning card deck and the corresponding hand cards to be prompted.

5. The method according to claim 4, wherein Based on the bitwise AND operation method, respectively matching and calculating the hand card deck encoding data with the winning card quantity encoding segments of the multiple winning card decks to determine a target winning card deck from the multiple winning card decks, including: Using the bitwise AND operation method to calculate the hand card deck encoding data with the winning card quantity encoding segments of the multiple winning card decks respectively, and obtaining calculation results corresponding to each winning card deck; Determining the winning card deck corresponding to the calculation result that is the same as the hand card deck encoding data as the hit card deck; Determining the target winning card deck from the hit card deck according to the score attribute value.

6. The method according to claim 5, characterized in that, Determining the target winning card deck from the hit card deck according to the score attribute value, including: Sorting the hit card deck in descending order according to the score attribute value to obtain a target sequence; Selecting the first K hit card decks in the target sequence as the target winning card deck, where K is an integer greater than or equal to 1.

7. The method according to claim 5, characterized in that The winning card deck includes multiple winning sub - card decks with combined card types; the winning card deck encoding data further includes a card type encoding segment, and the card type encoding segment is used to represent the combined card type of the winning sub - card deck; Wherein, the method further includes: Obtaining the hand sub - card deck information of the combined card type already formed in the hand card deck; According to the hand sub - card deck information and the card type encoding segment of the hit card deck, determining the unmatched hit card decks that do not meet the combined card type in the hand card deck from the hit card deck; Removing the unmatched hit card decks.

8. The method according to claim 7, wherein The combined card type includes a first card type and a second card type. The first card type consists of three hand cards with the same card value, and the second card type consists of three hand cards with consecutive card values within a preset card value range; the card type encoding segment includes the card type characteristic value and the card value characteristic value of each winning sub - card deck; If the combined card type of the winning sub - card deck is the first card type, the card type characteristic value of the winning sub - card deck is the first preset character, and the card value characteristic value of the winning sub - card deck is the binary value corresponding to the card value of any hand card in the winning sub - card deck; If the combined card type of the winning sub - card deck is the second card type, the card type characteristic value of the winning sub - card deck is the second preset character, and the card value characteristic value of the winning sub - card deck is the binary value corresponding to the card value of the hand card with the smallest card value in the winning sub - card deck; wherein, the first preset character is different from the second preset character.

9. A determining device for prompt information, characterized in that, Including: An acquisition module, configured to execute acquiring a hand card deck; An encoding module, configured to execute encoding the hand card deck using a placeholder method to obtain hand card deck encoding data; A calling module, configured to execute a call to winning hand group encoding data of a plurality of pre-stored winning hand groups; the winning hand group encoding data includes a winning hand quantity encoding segment, and the winning hand quantity encoding segment is obtained by encoding the winning hand group in a placeholder manner; A calculating module, configured to execute a matching calculation of respectively matching the hand group encoding data with the winning hand quantity encoding segments of the plurality of winning hand groups based on a bitwise AND operation method, so as to determine a target winning hand group from the plurality of winning hand groups; A generating module, configured to execute generating a prompt message according to the target winning hand group; Wherein, the hand group includes a plurality of cards with card values; the encoding module encodes the hand group in a placeholder manner to obtain hand group encoding data, including: determining the number of cards corresponding to each card value in the hand group according to the card values of each card in the hand group; encoding each number of cards in a placeholder manner to obtain the hand group encoding data; Wherein, the encoding module encodes each number of cards in a placeholder manner to obtain the hand group encoding data, including: Obtaining game configuration parameters, where the game configuration parameters include sorting parameters of card values and quantity threshold parameters of cards corresponding to each card value; Determining a data structure of the hand group encoding data according to the sorting parameters and the quantity threshold parameters, and the data structure indicates the arrangement order and storage length of the number of cards corresponding to each card value; Converting each number of cards into a card face quantity encoding value stored in a placeholder manner that meets the storage length; Assembling the card face quantity encoding values according to the arrangement order to obtain the hand group encoding data.

10. An electronic device, characterized in that, Including: A processor; A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the executable instructions to implement the method for determining a prompt message according to any one of claims 1 to 8.

11. A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method for determining a prompt message according to any one of claims 1 to 8.

12. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method for determining a prompt message according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Chess and card result generating method and related device

    CN108786107A

  • Control method and device of mahjong game, storage medium and electronic equipment

    CN110478908A