Information display method and device in card game virtual scene, equipment and storage medium
By calculating the edit distance of the hand area in card and board game applications and displaying the most recommended hand type hints, the problem of users having difficulty locating hand types is solved, improving efficiency and user experience while reducing resource consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2026-03-27
AI Technical Summary
In card and board game applications, users often have to perform many operations to obtain the information they need, making it difficult to locate the required card type. This leads to low efficiency, increases game time, and consumes more computer resources.
By calculating the editing distance based on the virtual card combinations in the hand area within the virtual scene interface displayed on the terminal, the system displays the top n most recommended card combinations, reducing user operations and improving the prompting effect.
The system improved the clarity of card type prompts, shortened the duration of individual games, reduced computer resource consumption, and enhanced the user experience.
Smart Images

Figure CN115814411B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of computer, and particularly relate to a method and apparatus for displaying information in a card virtual scene, a device and a storage medium. BACKGROUND
[0002] With the development of Internet technology, card games are no longer restricted by time and space, and people can perform card entertainment activities with online users through card application programs.
[0003] Currently, in the card application program of the related technology, the user is usually guided on how to win by displaying pre-set prompt information, and the order of the virtual card combination in the prompt information is sorted according to the amount of the winning prize. The user can determine how to operate the virtual card currently owned by reviewing the virtual card combination in the prompt information.
[0004] However, in the above technical solution, the user needs to perform more operations to obtain the required information, and the user needs to filter the virtual card combination in the prompt information in the process of reviewing the prompt information, which makes it difficult to locate the required card type, so that the efficiency of the user to obtain the required information is low, the user experience is poor, and the game length is also increased, thereby increasing the resource consumption of the computer device in a single game. SUMMARY
[0005] Embodiments of the present application provide a method and apparatus for displaying information in a card virtual scene, a device and a storage medium, which can make the display content in the card type prompt information more in line with the current card making demand, improve the prompt effect of the card type prompt information, thereby improving the user experience; at the same time, shorten the game length of a single game, and reduce the amount of resources consumed by the computer device in the process of a single game. The technical solution is as follows:
[0006] On the one hand, a method for displaying information in a card virtual scene is provided, and the method comprises:
[0007] displaying a scene interface of a card virtual scene in a terminal; the scene interface comprises a hand card area, and the hand card area is used to display a first virtual card combination owned by a current player;
[0008] displaying a card type prompt information in the terminal based on the first virtual card combination in the hand card area; the card type prompt information is used to indicate the first n recommended card types determined based on the first virtual card combination, and n is a positive integer.
[0009] On the other hand, a method for displaying information in a card virtual scene is provided, and the method comprises:
[0010] obtaining a first virtual card combination in a hand card area; the hand card area is an area in a scene interface of a card virtual scene, and is used to display the first virtual card combination owned by a current player;
[0011] calculating an edit distance between the first virtual card and a plurality of card types; the edit distance is used to indicate a number of virtual cards that need to be replaced to form a second virtual card combination conforming to a card type based on the first virtual card combination;
[0012] displaying, on the terminal, card type prompt information based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information contains the first n card types with the smallest edit distance, and n is a positive integer.
[0013] In another aspect, an information display method in a card virtual scene is provided, and the method comprises:
[0014] receiving an information prompt request sent by a terminal; the information prompt request contains information of a first virtual card combination contained in a hand card area corresponding to the terminal;
[0015] calculating an edit distance between the first virtual card combination and a plurality of card types based on the information prompt request; the edit distance is used to indicate a number of virtual cards that need to be replaced to form a second virtual card combination conforming to a card type based on the first virtual card combination;
[0016] generating card type prompt information based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information contains the first n card types with the smallest edit distance, and n is a positive integer;
[0017] returning the card type prompt information to the terminal, so that the terminal displays the card type prompt information.
[0018] In another aspect, an information display device in a card virtual scene is provided, and the device comprises:
[0019] an interface display module, configured to display a scene interface of a card virtual scene in a terminal; the scene interface contains a hand card area, and the hand card area is used to display a first virtual card combination owned by a current player;
[0020] an information display module, configured to display, in the terminal, card type prompt information based on the first virtual card combination in the hand card area; the card type prompt information is used to indicate the first n card types that are most recommended based on the first virtual card combination, and n is a positive integer.
[0021] In another aspect, an information display device in a card virtual scene is provided, and the device comprises:
[0022] The acquisition module is configured to acquire a first virtual card combination in a hand card region; the hand card region is a region in a scene interface of a card virtual scene, and is configured to display the first virtual card combination owned by a current player.
[0023] The calculation module is configured to calculate an edit distance between the first virtual card and a plurality of card types; the edit distance is configured to indicate a number of virtual cards that need to be replaced to form a second virtual card combination conforming to a card type based on the first virtual card combination.
[0024] The information display module is configured to display the card type prompt information on the terminal based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information includes the first n card types with the smallest edit distance, and n is a positive integer.
[0025] In another aspect, a server is provided, and the server includes:
[0026] The receiving module is configured to receive an information prompt request sent by a terminal; the information prompt request includes information of a first virtual card combination included in a hand card region corresponding to the terminal;
[0027] The calculation module is configured to calculate an edit distance between the first virtual card combination and a plurality of card types based on the information prompt request; the edit distance is configured to indicate a number of virtual cards that need to be replaced to form a second virtual card combination conforming to a card type based on the first virtual card combination.
[0028] The generation module is configured to generate card type prompt information based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information includes the first n card types with the smallest edit distance, and n is a positive integer.
[0029] The sending module is configured to return the card type prompt information to the terminal, so that the terminal displays the card type prompt information.
[0030] In another aspect, a computer device is provided, and the computer device includes a processor and a memory; the memory stores at least one computer program; the at least one computer program is loaded and executed by the processor to implement the information display method in the card virtual scene.
[0031] In another aspect, a computer readable storage medium is provided, and the computer readable storage medium stores at least one computer program; the computer program is loaded and executed by a processor to implement the information display method in the card virtual scene.
[0032] In another aspect, a computer program product is provided, which includes at least one computer program loaded and executed by a processor to implement the information display method in a card-based virtual scenario provided in the various optional implementation manners described above.
[0033] The technical solutions provided in the present application can include the following beneficial effects:
[0034] The information display method in a virtual card scenario provided by the embodiments of the present application displays card type prompt information corresponding to the first virtual card combination in the hand card region of the current terminal in a personalized manner, the card type prompt information being used to indicate the most recommended n card types determined based on the first virtual card combination, so that the display content in the card type prompt information is more in line with the card forming needs of the virtual card combination in the current hand card region, the prompting effect of the card type prompt information is improved, meanwhile, the user operation required when the user positions to the required card type is reduced, the user can perform virtual card operation based on the card type prompt information, and it is easier to achieve the winning condition of the virtual card game, thereby improving the user experience, shortening the game duration required for a single game, and reducing the resource consumption of the computer device in the single game process.
[0035] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and are not limiting to the present application. BRIEF DESCRIPTION OF DRAWINGS
[0036] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
[0037] Figure 1 Fig. 1 shows a structural schematic diagram of a virtual card game system provided by an exemplary embodiment of the present application;
[0038] Figure 2 Fig. 2 shows a flowchart of an information display method in a card-based virtual scenario provided by an exemplary embodiment of the present application;
[0039] Figure 3 Fig. 2 shows a flowchart of an information display method in a card-based virtual scenario provided by an exemplary embodiment of the present application;
[0040] Figure 4 Fig. 3 shows a schematic diagram of a scenario interface according to an exemplary embodiment of the present application;
[0041] Figure 5 Fig. 4 shows a schematic diagram of card type prompt information provided by an exemplary embodiment of the present application;
[0042] Figure 6Fig. 1 shows a schematic diagram of card type prompt information provided by an example embodiment of the present application;
[0043] Figure 7 Fig. 1 shows a schematic diagram of card type prompt information provided by an example embodiment of the present application;
[0044] Figure 8 Fig. 2 shows a schematic diagram of a change process of card type prompt information provided by an example embodiment of the present application;
[0045] Figure 9 Fig. 3 shows a flowchart of an information display method in a card type virtual scene provided by an example embodiment of the present application;
[0046] Figure 10 Fig. 3 shows a flowchart of an information display method in a card type virtual scene provided by an example embodiment of the present application;
[0047] Figure 11 Fig. 4 shows a block diagram of an information display device in a card type virtual scene provided by an example embodiment of the present application;
[0048] Figure 12 Fig. 4 shows a block diagram of an information display device in a card type virtual scene provided by an example embodiment of the present application;
[0049] Figure 13 Fig. 5 shows a structural block diagram of a server provided by an example embodiment of the present application. DETAILED DESCRIPTION
[0050] The example embodiments will be described in detail herein with reference to the drawings. When the following description refers to arrangements in the drawings, identical numbers on different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following example embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0051] The example embodiments of the present application provide an information display method in a virtual scene, which can be applied in an online virtual card game scene, Figure 1 Fig. 1 shows a schematic diagram of card type prompt information provided by an example embodiment of the present application; Figure 1 As shown in Fig. 1, the virtual card game system can include a server 110, a terminal 120 and a communication network 130.
[0052] The server 110 can be a stand-alone physical server, a server cluster composed of multiple physical servers, or a distributed system, and can also be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms.
[0053] The terminal 120 is a terminal used by a user participating in a virtual card game, which can be implemented as a local terminal or a cloud terminal. The virtual card game program 121 is installed in the terminal 120, and each user can access the server corresponding to the virtual card game program through the terminal 120. Further, the terminal 120 is a terminal device with network connection function and interface display function. Illustratively, the terminal 120 can be implemented as a smartphone, a tablet computer, a notebook computer, an e-book reader, a desktop computer, a smart watch, a smart television, a laptop computer, and the like.
[0054] Optionally, the single-round virtual card game can be a two-player game, a three-player game, a four-player game, or a virtual card game with more participants. The number of participants in the virtual card game is not limited in the embodiments of the present application. The terminals 120 corresponding to the participants of the virtual card game have the same virtual card game program installed therein, and the terminals 120 corresponding to the participants of the virtual card game are all connected to the server 110 through the communication network 130. During the establishment of the virtual card game, the server 110 can connect each terminal to the same virtual card game based on the matching request sent by each terminal. During the virtual card game, the server 110 can synchronize the virtual card game process to each terminal through the communication network 130, including the distribution of cards, the provision of operation options to the terminal according to the virtual card game rules, the indication of the terminal to display information, the calculation of the game result, and the like.
[0055] Based on the virtual card game system as shown in 1, Figure 2 A flowchart of an information display method in a card virtual scenario is shown, which can be executed by a computer device, which can be implemented as a terminal or a server, or can include a server and a terminal. The terminal and the server can be implemented as the terminal and the server as shown in Figure 1 As shown in 2, the information display method in the card virtual scenario can include the following steps: Figure 2
[0056] In step 210, a scene interface of the card virtual scene is displayed in the terminal; the scene interface includes a hand area, and the hand area is used to display a first virtual card combination of a current player.
[0057] Optionally, the current player is a player corresponding to a first account in the virtual card game scene, and the first account is a user account logged in the terminal among at least two user accounts of the card virtual scene, that is, the hand area is used to display the first virtual card combination under the first account.
[0058] In the embodiment of the present application, each terminal in the same virtual card game has a corresponding hand area, and the virtual cards in the hand area are visible to the user account logged in the terminal and invisible to the user account logged in other terminals, that is, displayed in the terminal interface and not displayed in the interface of other terminals; for example, the virtual cards in the hand area corresponding to the first account are displayed in the scene interface displayed in the terminal corresponding to the first account and not displayed in the scene interface displayed in the terminal corresponding to other accounts; that is, in the virtual card game scene, the virtual card combination of each player is visible to himself and invisible to other players.
[0059] Optionally, in some cases, part of the virtual cards in the first virtual card combination are visible to other players; for example, if the virtual card game is an online mahjong game, when receiving the operation of "hit" or "gang", the same two or three virtual cards in the hand area need to be disclosed; at this time, the disclosed virtual cards in the first virtual card combination are visible to all players in the virtual card game.
[0060] The hand area displays each virtual card in the first virtual card combination of the current player, wherein each virtual card in the first virtual card combination can be automatically sent to the first account corresponding to the current player by the server based on the virtual card game rules at the beginning of the virtual card game, or can be a virtual card that is still retained in the hand area after being played or obtained based on the received virtual card operation during the virtual card game.
[0061] In step 220, a card type prompt information is displayed in the terminal based on the first virtual card combination in the hand area; the card type prompt information is used to indicate the first n recommended card types determined based on the first virtual card combination, and n is a positive integer.
[0062] In the embodiment of the present application, the card type is a combination mode of the virtual card combination that can reach the winning condition of the virtual card game, and the number of card types and the combination mode of the virtual cards corresponding to the card types can be pre-set by relevant personnel, which is not limited in the present application.
[0063] The card type prompt information displayed in the terminal is determined based on a first virtual card combination in a hand card region corresponding to the terminal, and is used to indicate n card types that are most likely to achieve a virtual card game winning condition based on the first virtual card combination, so as to prompt the user to replace the virtual card in the hand card region to make the first virtual card combination after replacement meet a combination mode of the card type corresponding virtual card, so as to obtain a victory in the virtual card game.
[0064] In summary, the information display method in the virtual card scene provided in the embodiments of the present application displays card type prompt information corresponding to the first virtual card combination in a personalized manner based on the first virtual card combination in the hand card region corresponding to the terminal. The card type prompt information is used to indicate n card types that are most recommended based on the first virtual card combination, so that the display content in the card type prompt information is more in line with the card forming needs of the virtual card combination in the current hand card region, the prompting effect of the card type prompt information is improved, meanwhile, the user operation required when the user locates the required card type is reduced, the user can perform virtual card operation based on the card type prompt information, and it is easier to achieve the winning condition of the virtual card game. In this way, the user experience is improved, the game duration required for a single game is shortened, and the amount of resources consumed by the computer device in the single game process is reduced.
[0065] In the embodiments of the present application, a scheme for determining card type prompt information by editing distance between the first virtual card combination and multiple card types is provided, Figure 3 A flowchart of an information display method in a card virtual scene provided by an example embodiment of the present application is shown. The method can be executed by a computer device, which can be implemented as a terminal or a server, or can include a server and a terminal. The terminal and the server can be implemented as the terminal and the server shown in Figure 1 As shown in Figure 3 The information display method in the card virtual scene can include the following steps:
[0066] Step 310: displaying a scene interface of the card virtual scene in the terminal; the scene interface includes a hand card region, and the hand card region is used to display a first virtual card combination owned by a current player.
[0067] In the embodiments of the present application, the server distributes a specified number of virtual cards to each terminal when the virtual card game starts. During the virtual card game, the number of virtual cards in the hand card region changes with the received virtual card operation, and the number of virtual cards included in the first virtual card combination is different based on different virtual card game rules. The number of virtual cards in the first virtual card combination is not limited in the present application.
[0068] For example, the virtual card game is an online mahjong game, Figure 4The illustration shows a schematic diagram of a scene interface according to an exemplary embodiment of this application, such as... Figure 4 As shown, taking a game with 4 players as an example, the scene interface 400 contains a hand area 410, which contains a first virtual card combination consisting of all the virtual cards owned by the first player 430 (i.e., the current player); this first virtual card combination is visible to the first player 430, while the virtual card combinations in the hand areas 420 of other terminals are not visible to the first player 430.
[0069] Step 320: Obtain the edit distance between the first virtual card combination and multiple card types; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination.
[0070] In this embodiment of the application, the virtual cards that need to be replaced when forming a second virtual card combination that conforms to the card pattern in the first virtual card combination can be called invalid virtual cards, and the virtual cards that do not need to be replaced when forming a second virtual card combination that conforms to the card pattern in the first virtual card combination can be called valid virtual cards.
[0071] In this embodiment of the application, replacing an invalid virtual card in the first virtual card combination with a valid virtual card is considered as an edit distance of 1; therefore, the value of this edit distance is the same as the number of invalid virtual cards in the first virtual card combination.
[0072] by Figure 4 Taking the first virtual card combination as an example, Table 1 shows the possible situations of the second virtual card combination of each card type under the preset virtual card game rules, the adjustment method of forming the second virtual card combination of each card type from the first virtual card combination, and the editing distance between the first virtual card combination and each card type.
[0073] Table 1
[0074]
[0075]
[0076] It should be noted that different virtual card games may have different virtual card game rules, and the suits of the virtual cards in different virtual card games may also be different. The descriptions of virtual card suits and virtual card game rules in Table 1 above are only illustrative and this application does not impose any restrictions on them.
[0077] In one possible scenario, a wild card can exist in the virtual card game. This wild card is a virtual card that can replace any virtual card. In this case, if the hand area contains a wild card, then the wild card is determined as a virtual card that does not need to be replaced when forming a second virtual card combination, i.e., a valid virtual card.
[0078] It should be noted that, in the embodiments of the present application, the process of calculating the edit distance between the first virtual card combination and each card type can be performed by the server or by the terminal; when the process is performed by the server, the server can obtain the first virtual card combination corresponding to the terminal, calculate the edit distance between the first virtual card combination and each card type, and then push the edit distance corresponding to each card type to the terminal, so that the terminal displays the card type prompt information based on the received edit distance corresponding to each card type; when the process is performed by the terminal, the terminal can calculate the edit distance between the first virtual card combination and each card type based on the first virtual card combination corresponding to the terminal.
[0079] In step 330, the plurality of card types are sorted according to the edit distance between the first virtual card combination and the plurality of card types, and a sorting result is obtained.
[0080] In the embodiments of the present application, when sorting based on the edit distance between the first virtual card combination and the plurality of card types, the sorting can be performed in the order of increasing edit distance, or the sorting can be performed in the order of decreasing edit distance.
[0081] In a possible case, if there are m card types with the same edit distance between the first virtual card combination in the n card types, the order of the m card types can be randomly arranged when sorting the plurality of card types, where m < n and m is a positive integer.
[0082] Alternatively, in another possible implementation, different card types have different addition coefficients (i.e., the multiples shown in Table 1), which can update the settlement result of the virtual card game to make the user obtain more rewards; in this case, if there are m card types with the same edit distance between the first virtual card combination in the n card types, the m card types can be sorted according to the size of the addition coefficients corresponding to the m card types when sorting the plurality of card types, so that the card type with a larger addition coefficient is displayed first in the m card types.
[0083] In step 340, the card type prompt information is displayed in the terminal based on the sorting result; the card type prompt information includes the third virtual card combination of the first n card types with the smallest edit distance.
[0084] Optionally, the card type prompt information can only display the third virtual card combination of the first n card types with smaller edit distance in each card type; or the card type prompt information can also display the third virtual card combination of each card type, and the third virtual card combination of the first n card types with smaller edit distance is displayed preferentially.
[0085] In a possible implementation, the third virtual card combination includes a fixed card type template.
[0086] or,
[0087] The third virtual card combination includes a second virtual card combination that conforms to the corresponding card type, generated based on the first virtual card combination.
[0088] The fixed hand pattern templates for each hand type are pre-set. In these templates, the suits and order of the virtual cards are fixed and illustrative. Taking an online mahjong game as an example, the virtual card game is used as an example. Figure 5 This illustration shows a schematic diagram of card pattern prompt information provided in an exemplary embodiment of this application; as shown Figure 5 As shown, in the scene interface of the card game virtual scene, card type prompt information 500 is displayed. This card type prompt information contains the third virtual card combination of each card type. Taking card type 2 as an example, card type 2 is a card type containing four concealed kongs / triples. When the third virtual card combination is the fixed card type template corresponding to this card type, the third virtual card combination 510 of card type 2 can be a virtual card combination consisting of three "three of bamboo", three "seven of bamboo", three "east wind", three "north wind" and two "eight of bamboo". At this time, even if the first virtual card combination in the hand area changes, the suit and arrangement order of each virtual card in the third virtual card combination of card type 2 will not change.
[0089] Optional, such as Figure 5 As shown, the card type prompt information corresponds to the third virtual card combination for each card type, and can also display the bonus coefficient of each card type and the corresponding virtual card game rules.
[0090] Schematic illustration: If the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type and is generated based on the first virtual card combination, Figure 6 This illustration shows a schematic diagram of card pattern prompt information provided in an exemplary embodiment of this application; as shown Figure 6 As shown, the scene interface of the card game virtual scenario displays card type hint information 600. This card type hint information includes the third virtual card combination 610 of card type 2. The first virtual card combination 620 in the current hand area includes three "50,000", three "90,000", one "West Wind", one "South Wind", one "5 of Bamboo", one "9 of Bamboo", three "Red Dragons", and one "Red Dragon" obtained based on the "drawing card" operation. Therefore, the third virtual card combination includes three "50,000", three "90,000", four "Red Dragons", and the virtual card combination obtained by replacing any two of "West Wind", "South Wind", "5 of Bamboo", and "9 of Bamboo" with one of the remaining two, for example, as shown. Figure 6As shown, the third virtual card combination 610 can include three "five ten-thousands", three "nine ten-thousands", three "south winds", one "west wind", and four "red middles", or the second virtual card combination can include three "five ten-thousands", three "nine ten-thousands", three "five rods", one "south wind", and four "red middles".
[0091] Optionally, the display positions of the valid virtual cards in the first virtual card combination in the third virtual card combination correspond to the display positions of the valid virtual cards in the first virtual card combination.
[0092] Optionally, when there are multiple optional combinations in the third virtual card combination, the computer device can randomly display one of the virtual card combinations (such as the third virtual card combination 610 shown in FIG. 6D) or can display all possibilities, which are not limited in the present application. Figure 6
[0093] In a possible implementation, when the card type prompt information is displayed in the terminal, when the sorting result is obtained by sorting in the order from small to large according to the edit distance, the third virtual card combination of the card type in the top n positions is displayed in the card type prompt information displayed in the terminal according to the order of the sorting result.
[0094] Optionally, when the sorting result is obtained by sorting in the order from large to small according to the edit distance, the third virtual card combination of the card type in the bottom n positions is displayed in the card type prompt information displayed in the terminal according to the reverse order of the sorting result.
[0095]
[0096] In the embodiment of the present application, the scene interface includes an information display area, and the information display area is used to display the card type prompt information.
[0097] Optionally, the scene interface further includes an information prompt control; the card type prompt information is displayed in the information display area when a selection operation based on the information prompt control is received; the card type prompt information is closed or hidden when a selection operation based on the information prompt control is received again; or, when the card type prompt information is displayed, an information closing control is correspondingly displayed, and the card type prompt information is closed or hidden when a selection operation based on the information closing control is received.
[0098] In the embodiment of the present application, the area range of the information display area is limited, when the number of card types is large, the third virtual card combination of each card type can be displayed in a scrolling view, that is, the user can view the third virtual card combination of part of the card types in the information display area, and view the third virtual card combination of the remaining card types by sliding; therefore, the higher the display order, the higher the probability that the third virtual card combination of the card type is viewed by the user, and the better the information prompting effect. Since the virtual card game usually has a round time limit, by displaying the top n recommended card types in the card type prompting information, or preferentially displaying the top n recommended card types, the sliding operation and judgment process required by the user to obtain the required card type can be reduced when the number of card types is large, thereby improving the user experience. On the other hand, with the update of the rules of the virtual card game, new card types may be added, or the addition coefficient of the card type may be modified. If the related art sorts based on the addition coefficient of the card type, the original sorting will change, increasing the user's adaptation cost to the changed card type sorting, and further increasing the difficulty of obtaining the required card type. In the scheme provided by the present application, the top n recommended card types are displayed in the card type prompting information, or preferentially displayed, which can preferentially display the newly added card types when the newly added card types meet the requirements, thereby reducing the operation required by the user to obtain the information of the newly added card types, improving the promotion effect of the new rules, and improving the user experience.
[0099] In a possible implementation, when the card type prompting information contains the third virtual card combination of all card types, in order to further improve the prompting effect of the card type prompting information, when displaying the card type prompting information, the third virtual card combination of the top n card types with the smallest edit distance can be displayed in a target form.
[0100] The third virtual card combination of other card types is displayed in a non-target form; the other card types are card types other than the top n card types with the smallest edit distance among the plurality of card types.
[0101] That is, when preferentially displaying the third virtual card combination of the top n card types with the smallest edit distance, the third virtual card combination of the top n card types with the smallest edit distance is displayed in a target form to highlight the top n recommended card types; illustratively, the target form can include highlighting, adding a border, image magnification, changing the background color, etc., and the present application does not limit the target form.
[0102] Based on the edit distance between the first virtual card combination shown in Table 1 and each card type, Figure 7 a schematic diagram of the card type prompting information provided by an example embodiment of the present application is shown, as Figure 7As shown, the third virtual card combinations of each card type are displayed in the information display area in the order of increasing edit distance, where the edit distance corresponding to card type 1 is the same as the edit distance corresponding to card type 2, and since the addition coefficient corresponding to card type 1 is greater than the addition coefficient corresponding to card type 2, the third virtual card combination 710 of card type 1 is displayed first, and then the third virtual card combination 720 of card type 2 is displayed; in the case where n is equal to 3, the third virtual card combinations of the top 3 card types in the display order are displayed in the target form, as shown in Figure 7 As shown, the third virtual card combinations of each card type are displayed in the information display area in the order of increasing edit distance, where the edit distance corresponding to card type 1 is the same as the edit distance corresponding to card type 2, and since the addition coefficient corresponding to card type 1 is greater than the addition coefficient corresponding to card type 2, the third virtual card combination 710 of card type 1 is displayed first, and then the third virtual card combination 720 of card type 2 is displayed; in the case where n is equal to 3, the third virtual card combinations of the top 3 card types in the display order are displayed in the target form, as shown in
[0103] Step 350, when the first virtual card combination in the hand area changes, updating the card type prompt information in the terminal.
[0104] In the embodiments of the present application, the content of the card type prompt information is not fixed, and the content of the card type prompt information changes with the change of the first virtual card combination in the hand area; if the fixed card type templates corresponding to each card type are displayed in the card type prompt information, with the change of the first virtual card combination in the hand area, the display order of the fixed card type templates of each card type in the card type prompt information is adjusted to recommend the top n card types most suitable for the current first virtual card combination; if the third virtual card combinations of each card type displayed in the card type prompt information are the second virtual card combinations corresponding to each card type, with the change of the first virtual card combination in the hand area, the display order of the third virtual card combinations of each card type in the card type prompt information is adjusted, and the suit of the virtual card in the third virtual card combination is also adjusted.
[0105] In another possible implementation, if the third virtual card combinations of each card type displayed in the card type prompt information are the second virtual card combinations corresponding to each card type, with the change of the first virtual card combination in the hand area, the edit distance corresponding to each card type does not change, at this time, the display order of the third virtual card combinations of each card type does not need to be adjusted, but the suit of the virtual card in the third virtual card combination is adjusted based on the change of the first virtual card combination.
[0106] Figure 8This illustration shows a schematic diagram of the change process of the card type prompt information provided in an exemplary embodiment of this application. Taking the example that the third virtual card combination of each card type displayed in the card type prompt information is the second virtual card combination corresponding to each card type, when the hand area contains the first virtual card combination 810, the third virtual card combination of each card type displayed in the card type prompt information 820 contains the corresponding valid virtual card in the first virtual card combination 810. The valid virtual cards corresponding to different card types are different. Based on the first virtual card combination 810, a "Five of Bamboo" is played, and a "South Wind" is drawn. When the virtual card combination in the hand area is updated to the first virtual card combination 830, at this time, the edit distance corresponding to card type 1 is updated to... 1. The edit distance for card type 2 is updated to 1, the edit distance for card type 3 is updated to 6, and the edit distances for card types 4-7 remain unchanged. However, since the bonus coefficient corresponding to card type 4 is higher than that corresponding to card type 3, and the bonus coefficient corresponding to card type 5 is also higher than that corresponding to card type 3, the third virtual card combination of each card type displayed in the card type prompt information 840 includes the corresponding valid virtual card in the first virtual card combination 830. Furthermore, the card types in the first three positions of the card type prompt information according to the display order are changed to card type 1, card type 2, and card type 4. Due to the limited information display area, the subsequent card types can be viewed by sliding, showing the display order as card type 5, card type 3, card type 6, and card type 7. Figure 8 (Not shown in the image).
[0107] Optionally, the process of updating the card type prompt information can be implemented as follows:
[0108] When the first virtual card combination in the hand area changes, update the edit distance between the first virtual card combination and multiple card types based on the changed first virtual card combination;
[0109] The sorting results are updated based on the updated edit distances;
[0110] Based on the updated sorting results, update the card type prompt information in the terminal.
[0111] In other words, when the first virtual card combination in the hand area changes with the received virtual card operation, the computer device can update the editing distance of each card type in real time based on the change of the first virtual card combination, and update the sorting result of each card type. This updates the display order of the third virtual card combinations of each card type in the card type prompt information according to the order indicated by the sorting result, so that the card types corresponding to the first n third virtual card combinations displayed in the card type prompt information are the card types that the first virtual card combination in the current hand area is most likely to match.
[0112] In summary, the information display method in a virtual card game scenario provided in this application calculates the edit distance between the first virtual card combination and each card type based on the first virtual card combination in the current terminal's hand area, and displays personalized card type prompts corresponding to the first virtual card combination based on the edit distance. These prompts include the third virtual card information of the top n card types with the smallest edit distance, prioritizing the display of the most recommended n card types. This makes the displayed content in the card type prompts more consistent with the card-forming requirements of the virtual card combination in the current hand area, improving the prompting effect. This allows users to perform virtual card operations based on the card type prompts, making it easier to achieve the winning conditions in the virtual card game. While improving the user experience, it also shortens the game time required for a single game and reduces the amount of resources consumed by the computer device during a single game.
[0113] Simultaneously, as the first virtual card combination in the hand area is updated, the edit distance between the first virtual card combination and each card type will also be updated, thereby updating the display order of the third virtual card combination of each card type in the card type prompt information. This achieves dynamic adjustment of the card type prompt information, making the card type prompt information more in line with the requirements of forming a hand, and further improving the prompting effect of the card type prompt information.
[0114] Figure 9 The flowchart illustrates an exemplary embodiment of an information display method in a virtual card game scenario provided by this application. This method can be executed by a computer device, which can be implemented as a terminal or a server, or may include both a server and a terminal. The terminal and server can be implemented as follows: Figure 1 The terminals and servers shown are as follows: Figure 9 As shown, the information display method in this virtual card game scenario may include the following steps:
[0115] Step 910: Obtain the first virtual card combination in the hand area; the hand area is the area in the scene interface of the card game virtual scene used to display the first virtual card combination currently owned by the player.
[0116] Step 920: Calculate the edit distance between the first virtual card and multiple card types; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination.
[0117] The second virtual card combination is a virtual card combination simulated by the computer device after replacing invalid virtual cards in the first virtual card combination and the combination method of virtual cards corresponding to the card type.
[0118] In step 930, based on the edit distances between the first virtual card combination and the plurality of card types, display card type prompt information on the terminal; the card type prompt information includes the first n card types with the smallest edit distances, and n is a positive integer.
[0119] In a possible implementation, when the first virtual card combination changes, update the edit distances between the first virtual card combination and the plurality of card types based on the changed first virtual card combination.
[0120] Based on the updated edit distances, update the card type prompt information on the terminal.
[0121] Steps 910 to 930 correspond to related content of the embodiments shown in Figure 2 or Figure 3 The related content of the embodiments will not be repeated here.
[0122] In summary, the information display method in the card virtual scene provided by the embodiments of the present application calculates the edit distances between the first virtual card combination in the current player's hand card region and each card type, and displays the card type prompt information corresponding to the first virtual card combination based on the edit distances, and the card type prompt information includes the third virtual card information of the first n card types with the smallest edit distances, so as to preferentially display the most recommended n card types, so that the display content in the card type prompt information is more in line with the card forming requirements of the virtual card combination in the current hand card region, improves the prompt effect of the card type prompt information, so that the user can perform virtual card operations based on the card type prompt information, and it is easier to achieve the winning condition of the virtual card game, which improves the user experience, shortens the game duration required for a single game, and reduces the amount of resources consumed by the computer device during a single game.
[0123] Meanwhile, with the update of the first virtual card combination in the hand card region, the edit distances between the first virtual card combination and each card type are also updated, so as to update the display order of the third virtual card combination of each card type in the card type prompt information, so as to realize the dynamic adjustment of the card type prompt information, so that the card type prompt information is more in line with the card forming requirements, and the prompt effect of the card type prompt information is further improved.
[0124] In a possible implementation, when the method provided in the application is executed by interaction between a server and a terminal, the server can generate related information of card type prompt information after calculating the edit distance between the first virtual card combination and each card type, and push the card type prompt information to the terminal. The terminal receives the card type prompt information and displays the card type prompt information. Alternatively, the server can also push the edit distance corresponding to each card type to the terminal. After receiving the edit distance corresponding to each card type, the terminal generates and displays the card type prompt information. The application does not limit the interaction process between the two.
[0125] Taking the case that the server pushes the card type prompt information to the terminal, Figure 10 a flowchart of a method for displaying information in a card virtual scene is shown, which can be executed by a server, as shown in Figure 10 The method can include the following steps:
[0126] Step 1010, receiving an information prompt request sent by the terminal; the information prompt request contains information of a first virtual card combination contained in a hand card region corresponding to the terminal.
[0127] The information prompt request can be generated and sent by the terminal after receiving a selection operation of a user on an information prompt control in the scene interface; and / or the information prompt request can also be automatically generated and sent when the first virtual card combination in the hand card region changes.
[0128] The information of the first virtual card combination can indicate the number and suit of each virtual card constituting the first virtual card.
[0129] Step 1020, calculating the edit distance between the first virtual card combination and a plurality of card types based on the information prompt request; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination conforming to the card type based on the first virtual card combination.
[0130] Step 1030, generating card type prompt information based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information contains the first n card types with the smallest edit distance, and n is a positive integer.
[0131] Step 1040, returning the card type prompt information to the terminal to enable the terminal to display the card type prompt information.
[0132] The server returns the card type prompt information to the terminal, and correspondingly, the terminal receives the card type prompt information sent by the server and displays the card type prompt information.
[0133] The related content of steps 1010 to 1040 can be referred to in Figure 2 or Figure 3The related content is shown here and will not be repeated.
[0134] In summary, the information display method in the virtual card scene provided by the embodiments of the present application generates and instructs the terminal to display the card type prompt information corresponding to the first virtual card combination in the current terminal corresponding hand card area in a personalized manner, which is used to indicate the most recommended n card types determined based on the first virtual card combination, so that the display content in the card type prompt information is more in line with the card forming needs of the virtual card combination in the current hand card area, improves the prompt effect of the card type prompt information, at the same time, reduces the user operation required when the user locates the required card type, so that the user can perform virtual card operation based on the card type prompt information, more easily achieve the victory condition of the virtual card game, improve the user experience, and shorten the game duration required for a single game, and reduce the amount of resources consumed by the computer device in the single game process.
[0135] It should be noted that the information display method in the card virtual scene provided by the present application can be applied to any virtual card game scene, including but not limited to online mahjong game scene, online poker game scene, online three kingdom kill game scene, and any other possible form of online chess game scene. The present application does not make any limitation.
[0136] Figure 11 The block diagram of the information display device in the card virtual scene provided by an example embodiment of the present application is shown, which can be applied to a computer device for implementing all or part of the steps of the embodiments shown in Figure 2 or Figure 3 The computer device can be implemented as a server or a terminal as shown in Figure 11 The device can include:
[0137] The interface display module 1110 is configured to display a scene interface of a card virtual scene in the terminal; the scene interface includes a hand card area, and the hand card area is used to display a first virtual card combination owned by a current player;
[0138] The information display module 1120 displays a card type prompt information in the terminal based on the first virtual card combination in the hand card area; the card type prompt information is used to indicate the first n card types determined based on the first virtual card combination, and n is a positive integer.
[0139] In a possible implementation, the information display module 1120 includes:
[0140] a distance obtaining sub-module, configured to obtain an edit distance between the first virtual card combination and a plurality of marker types; the edit distance is used to indicate a number of virtual cards required to be replaced to form a second virtual card combination conforming to a card type based on the first virtual card combination;
[0141] a sorting sub-module, configured to sort the plurality of card types according to the edit distances between the first virtual card combination and the plurality of card types, to obtain a sorting result;
[0142] an information display sub-module, configured to display the card type prompt information in the terminal based on the sorting result; the card type prompt information includes third virtual card combinations of the first n card types with the smallest edit distances.
[0143] In a possible implementation, the third virtual card combination includes a fixed card type template.
[0144] Alternatively,
[0145] the third virtual card combination includes the second virtual card combination conforming to a corresponding card type and generated based on the first virtual card combination.
[0146] In a possible implementation, the information display sub-module is configured to,
[0147] when the sorting result is obtained by sorting in ascending order of the edit distances, the third virtual card combinations of the first n card types are displayed in the card type prompt information displayed in the terminal according to the order of the sorting result;
[0148] Alternatively,
[0149] when the sorting result is obtained by sorting in descending order of the edit distances, the third virtual card combinations of the last n card types are displayed in the card type prompt information displayed in the terminal according to the reverse order of the sorting result.
[0150] In a possible implementation, the information display sub-module is configured to,
[0151] display the third virtual card combinations of the first n card types with the smallest edit distances in a target form;
[0152] display the third virtual card combinations of other card types in a non-target form; the other card types are card types other than the first n card types with the smallest edit distances in the plurality of card types.
[0153] In a possible implementation, the apparatus further includes:
[0154] An information updating module is configured to update the card type prompt information in the terminal when the first virtual card combination in the hand card region changes.
[0155] In a possible implementation, the information updating module comprises:
[0156] A distance updating sub-module is configured to update the edit distance between the first virtual card combination and the plurality of card types based on the changed first virtual card combination when the first virtual card combination in the hand card region changes.
[0157] A sorting updating sub-module is configured to update the sorting result based on the updated edit distance.
[0158] An information updating sub-module is configured to update the card type prompt information in the terminal based on the updated sorting result.
[0159] In a possible implementation, the apparatus further comprises:
[0160] A determining module is configured to determine a universal virtual card as a virtual card that does not need to be replaced when forming the second virtual card combination when the hand card region comprises the universal virtual card; the universal virtual card is a virtual card that can replace any virtual card.
[0161] In summary, the information display apparatus in the virtual card scenario provided by the embodiments of the present application displays the card type prompt information corresponding to the first virtual card combination in the hand card region of the current terminal in a personalized manner, the card type prompt information is used to indicate the most recommended n card types determined based on the first virtual card combination, so that the display content in the card type prompt information is more in line with the card forming demand of the virtual card combination in the current hand card region, the prompting effect of the card type prompt information is improved, meanwhile, the user operation required when the user locates the required card type is reduced, the user can perform virtual card operation based on the card type prompt information, and it is easier to achieve the winning condition of the virtual card game, the user experience is improved, the game duration required for a single game is shortened, and the resource consumption of the computer device in the single game process is reduced.
[0162] Figure 12 A block diagram of an information display apparatus in a card virtual scenario provided by an example embodiment of the present application is shown, the apparatus can be applied in a computer device, and is used to implement all or part of the steps of the embodiments shown in Figure 3 or Figure 9 The computer device can be implemented as a server or a terminal, as shown in Figure 12 The apparatus can comprise:
[0163] The acquisition module 1210 is configured to acquire a first virtual card combination in a hand card region; the hand card region is a region in a scene interface of a card virtual scene, and is used to display the first virtual card combination owned by a current player;
[0164] The calculation module 1220 is configured to calculate an edit distance between the first virtual card and a plurality of card types; the edit distance is used to indicate a number of virtual cards that need to be replaced to form a second virtual card combination that meets a card type based on the first virtual card combination;
[0165] The information display module 1230 is configured to display the card type prompt information on the terminal based on the edit distances between the first virtual card combination and the plurality of card types; the card type prompt information includes the first n card types with the smallest edit distances, and n is a positive integer.
[0166] In a possible implementation, the apparatus further includes:
[0167] The distance updating module is configured to update the edit distances between the first virtual card combination and the plurality of card types based on the changed first virtual card combination when the first virtual card combination changes;
[0168] The information updating module is configured to update the card type prompt information on the terminal based on the updated edit distances.
[0169] In summary, the information display apparatus in the card virtual scene provided by the embodiments of the present application calculates the edit distances between the first virtual card combination in the hand card region corresponding to the current terminal and each card type, and displays the card type prompt information corresponding to the first virtual card combination based on the edit distances, the card type prompt information includes the third virtual card information of the first n card types with the smallest edit distances, so that the first n card types are preferentially displayed, so that the display content in the card type prompt information is more in line with the card forming demand of the virtual card combination in the current hand card region, the prompting effect of the card type prompt information is improved, so that the user can perform virtual card operations based on the card type prompt information, and it is easier to achieve the victory condition of the virtual card game, thereby improving the user experience, shortening the game duration required for a single game, and reducing the amount of resources consumed by the computer device in the single game process.
[0170] Meanwhile, with the update of the first virtual card combination in the hand card region, the edit distances between the first virtual card combination and each card type are also updated, so that the display order of the third virtual card combination of each card type in the card type prompt information is updated, so that the dynamic adjustment of the card type prompt information is realized, the card type prompt information is more in line with the card forming demand, and the prompting effect of the card type prompt information is further improved.
[0171] Figure 13 A structural block diagram of a server is shown, which can execute all or part of the steps implemented by the server in the embodiments as shown in Figure 3 or Figure 10 The server can include, as shown in Figure 13
[0172] The receiving module 1310 is configured to receive an information prompt request sent by a terminal; the information prompt request contains information of a first virtual card combination contained in a hand region corresponding to the terminal;
[0173] The computing module 1320 is configured to calculate an edit distance between the first virtual card combination and a plurality of card types based on the information prompt request; the edit distance is used to indicate a number of virtual cards required to be replaced to form a second virtual card combination conforming to a card type based on the first virtual card combination;
[0174] The generating module 1330 is configured to generate card type prompt information based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information contains the first n card types with the smallest edit distance, and n is a positive integer;
[0175] The sending module 1340 is configured to return the card type prompt information to the terminal, so that the terminal displays the card type prompt information.
[0176] In summary, the server provided in the embodiments of the present application generates card type prompt information corresponding to the first virtual card combination in the hand region corresponding to the current terminal based on the first virtual card combination in the hand region corresponding to the current terminal, which is personalized, the card type prompt information is used to indicate the n most recommended card types determined based on the first virtual card combination, and is sent to the terminal to make it display the card type prompt information, so that the display content in the card type prompt information is more in line with the card forming needs of the virtual card combination in the current hand region, improving the prompting effect of the card type prompt information, at the same time, reducing the user operation required when the user locates the required card type, so that the user can perform virtual card operation based on the card type prompt information, more easily achieving the victory condition of the virtual card game, improving the user experience, at the same time, shortening the game duration required for a single game, and reducing the amount of resources consumed by the computer device in the process of a single game.
[0177] In an exemplary embodiment, a computer device is provided, which contains a processor and a memory, the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement all or part of the steps in the information display method in the card-based virtual scene described above.
[0178] In an exemplary embodiment, a computer readable storage medium is also provided, in which at least one computer program is stored, the computer program being loaded and executed by a processor to implement all or part of the steps of the information display method in the card-based virtual scene as described above. For example, the computer readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0179] In an exemplary embodiment, a computer program product is also provided, which includes at least one computer program, the computer program being loaded and executed by a processor to implement all or part of the steps of the information display method in the card-based virtual scene as described above. Figure 2 、 Figure 3 、 Figure 9 or Figure 10 any embodiment shown.
[0180] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0181] It should be understood that the application is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the appended claims.
Claims
1. A method for displaying information in a virtual card game scenario, characterized in that, The method includes: A scene interface for displaying a card game virtual scenario is provided on the terminal. The scene interface includes a hand area, which is used to display the first virtual card combination currently owned by the player. Each virtual card in the first virtual card combination is automatically sent to the current player's corresponding first account based on the virtual card game rules at the start of the virtual card game, or, during the virtual card game, virtual cards are played or acquired based on received virtual card operations and are still retained in the hand area. Based on the first virtual card combination in the hand area, a card type prompt information is displayed on the terminal; the card type prompt information is used to indicate the top n most recommended card types determined based on the first virtual card combination, where n is a positive integer; the card type prompt information is used to prompt the user to replace the virtual cards in the hand area so that the replaced first virtual card combination conforms to the combination method of the virtual card corresponding to the card type; the card type is a pre-set combination method of virtual card combinations that achieves the winning conditions of the virtual card game; The step of displaying card type prompt information on the terminal based on the first virtual card combination in the hand area includes: Obtain the edit distance between the first virtual card combination and multiple card types; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination; Based on the edit distance between the first virtual card combination and the multiple card types, the multiple card types are sorted to obtain a sorting result; Based on the sorting results, the card type prompt information is displayed on the terminal; the card type prompt information includes a third virtual card combination of the top n card types with the smallest edit distance; the third virtual card combination includes a fixed card type template; or, the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type, generated based on the first virtual card combination; The process of displaying the card type prompt information on the terminal includes: When the sorting result is obtained by sorting according to the order of the edit distance from smallest to largest, the third virtual card combination of the top n card types is displayed in the card type prompt information displayed on the terminal according to the order of the sorting result; or, When the sorting result is obtained by sorting according to the order of the edit distance from largest to smallest, the third virtual card combination of the n card types after sorting is displayed in the card type prompt information displayed on the terminal in the reverse order of the sorting result.
2. The method according to claim 1, characterized in that, The process of displaying the card type prompt information on the terminal includes: The third virtual card combination is displayed in target form, representing the top n card types with the smallest edit distance; The third virtual card combination of other card types is displayed in a non-target form; the other card types are card types other than the top n card types with the smallest edit distance among the plurality of card types.
3. The method according to claim 1 or 2, characterized in that, The method further includes: When the first virtual card combination in the hand area changes, the card type prompt information is updated in the terminal.
4. The method according to claim 3, characterized in that, When the first virtual card combination in the hand area changes, the card type prompt information is updated in the terminal, including: When the first virtual card combination in the hand area changes, the edit distance between the first virtual card combination and the plurality of card types is updated based on the changed first virtual card combination; The sorting results are updated based on the updated edit distances. Based on the updated sorting results, the card type prompt information is updated in the terminal.
5. The method according to claim 1, characterized in that, The method further includes: When the hand area contains a wild card, the wild card is determined to be a virtual card that does not need to be replaced when forming the second virtual card combination; the wild card is a virtual card that can replace any virtual card.
6. A method for displaying information in a virtual card game scenario, characterized in that, The method includes: Obtain the first virtual card combination in the hand area; the hand area is the area in the scene interface of the card game virtual scene used to display the first virtual card combination currently owned by the player; each virtual card in the first virtual card combination is automatically sent to the current player's corresponding first account based on the virtual card game rules at the start of the virtual card game, or, during the virtual card game, virtual cards are played or obtained based on received virtual card operations and are still retained in the hand area; Calculate the edit distance between the first virtual card combination and multiple card types; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination; Based on the edit distance between the first virtual card combination and the plurality of card types, card type prompt information is displayed on the terminal; the card type prompt information includes the third virtual card combination of the top n card types with the smallest edit distance, where n is a positive integer; the card type prompt information is used to prompt the user to replace the virtual cards in the hand area so that the replaced first virtual card combination conforms to the combination method of the virtual card corresponding to the card type; the card type is a pre-set combination method of virtual card combinations that achieves the winning conditions of virtual card game; the third virtual card combination includes a fixed card type template; or, the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type generated based on the first virtual card combination; Specifically, when the sorting result is obtained by sorting according to the edit distance in ascending order, the terminal displays the third virtual card combination of the top n card combinations in the card type prompt information according to the sorting result; the sorting result is obtained by sorting the multiple card types according to the edit distance between the first virtual card combination and the multiple card types. or, When the sorting result is obtained by sorting according to the order of the edit distance from largest to smallest, the terminal displays the third virtual card combination of the n card types in the card type prompt information in the reverse order of the sorting result.
7. The method according to claim 6, characterized in that, The method further includes: When the first virtual card combination changes, the edit distance between the first virtual card combination and the plurality of card types is updated based on the changed first virtual card combination; Based on the updated edit distances, the card type prompt information is updated on the terminal.
8. A method for displaying information in a virtual card game scenario, characterized in that, The method includes: The receiving terminal sends an information prompt request; the information prompt request contains information about the first virtual card combination contained in the hand area corresponding to the terminal; each virtual card in the first virtual card combination is automatically sent to the first account corresponding to the current player based on the virtual card game rules at the start of the virtual card game, or, during the virtual card game, virtual cards are played or acquired based on the received virtual card operation and are still retained in the hand area; Based on the information prompt request, the edit distance between the first virtual card combination and multiple card types is calculated; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination; Based on the edit distance between the first virtual card combination and multiple card types, card type prompt information is generated; the card type prompt information includes the third virtual card combination of the top n card types with the smallest edit distance, where n is a positive integer; the card type prompt information is used to prompt the user to replace the virtual cards in the hand area so that the replaced first virtual card combination conforms to the combination method of the corresponding card type; the card type is a pre-set combination method of virtual card combinations that achieves the winning conditions of virtual card game; the third virtual card combination includes a fixed card type template; or, the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type generated based on the first virtual card combination; The card type prompt information is returned to the terminal so that the terminal displays the card type prompt information; Specifically, when the sorting result is obtained by sorting according to the edit distance in ascending order, the terminal displays the third virtual card combination of the top n card combinations in the card type prompt information according to the sorting result; the sorting result is obtained by sorting the multiple card types according to the edit distance between the first virtual card combination and the multiple card types. or, When the sorting result is obtained by sorting according to the order of the edit distance from largest to smallest, the terminal displays the third virtual card combination of the n card types in the card type prompt information in the reverse order of the sorting result.
9. An information display device for a virtual card game scenario, characterized in that, The device includes: The interface display module is used to display the scene interface of a card game virtual scene on the terminal; the scene interface includes a hand card area, which is used to display the first virtual card combination currently owned by the player; each virtual card in the first virtual card combination is automatically sent to the current player's corresponding first account based on the virtual card game rules at the start of the virtual card game, or, during the virtual card game, virtual cards are played or acquired based on received virtual card operations and are still retained in the hand card area; The information display module displays card type prompt information on the terminal based on the first virtual card combination in the hand area; the card type prompt information is used to indicate the top n most recommended card types determined based on the first virtual card combination, where n is a positive integer; the card type prompt information is used to prompt the user to replace the virtual cards in the hand area so that the replaced first virtual card combination conforms to the combination method of the virtual card corresponding to the card type; the card type is a pre-set combination method of virtual card combinations that achieves the winning conditions of the virtual card game; The information display module includes: The distance acquisition submodule is used to acquire the edit distance between the first virtual card combination and multiple card types; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination; The sorting submodule is used to sort the multiple card types according to the edit distance between the first virtual card combination and the multiple card types, and obtain the sorting result; An information display submodule is used to display the card type prompt information on the terminal based on the sorting result; the card type prompt information includes a third virtual card combination of the top n card types with the smallest edit distance; the third virtual card combination includes a fixed card type template; or, the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type and is generated based on the first virtual card combination; The information display submodule is used for, When the sorting result is obtained by sorting according to the order of the edit distance from smallest to largest, the third virtual card combination of the top n card types is displayed in the card type prompt information displayed on the terminal according to the order of the sorting result; or, When the sorting result is obtained by sorting according to the order of the edit distance from largest to smallest, the third virtual card combination of the n card types after sorting is displayed in the card type prompt information displayed on the terminal in the reverse order of the sorting result.
10. An information display device for a virtual card game scenario, characterized in that, The device includes: The acquisition module is used to acquire the first virtual card combination in the hand area; the hand area is the area in the scene interface of the card game virtual scene used to display the first virtual card combination currently owned by the player; each virtual card in the first virtual card combination is automatically sent to the first account corresponding to the current player based on the virtual card game rules at the start of the virtual card game, or, during the virtual card game, virtual cards are played or acquired based on the received virtual card operations and are still retained in the hand area; The calculation module is used to calculate the edit distance between the first virtual card combination and multiple card types; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination; An information display module is used to display card type prompt information on a terminal based on the edit distance between the first virtual card combination and the plurality of card types; the card type prompt information includes a third virtual card combination of the top n card types with the smallest edit distance, where n is a positive integer; the card type prompt information is used to prompt the user to replace the virtual cards in the hand area so that the replaced first virtual card combination conforms to the combination method of the virtual card corresponding to the card type; the card type is a pre-set combination method of virtual card combinations that achieves the winning conditions of virtual card games; the third virtual card combination includes a fixed card type template; or, the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type generated based on the first virtual card combination; Specifically, when the sorting result is obtained by sorting according to the edit distance in ascending order, the terminal displays the third virtual card combination of the top n card combinations in the card type prompt information according to the sorting result; the sorting result is obtained by sorting the multiple card types according to the edit distance between the first virtual card combination and the multiple card types. or, When the sorting result is obtained by sorting according to the order of the edit distance from largest to smallest, the terminal displays the third virtual card combination of the n card types in the card type prompt information in the reverse order of the sorting result.
11. A server, characterized in that, The server includes: The receiving module is used to receive information prompt requests sent by the terminal; the information prompt requests include information about the first virtual card combination contained in the hand area corresponding to the terminal; each virtual card in the first virtual card combination is automatically sent to the first account corresponding to the current player based on the virtual card game rules at the start of the virtual card game, or, during the virtual card game, virtual cards are played or acquired based on the received virtual card operations and are still retained in the hand area; The calculation module is used to calculate the edit distance between the first virtual card combination and multiple card types based on the information prompt request; the edit distance is used to indicate the number of virtual cards that need to be replaced to form a second virtual card combination that conforms to the card type based on the first virtual card combination; A generation module is used to generate card type prompt information based on the edit distance between the first virtual card combination and multiple card types; the card type prompt information includes a third virtual card combination of the top n card types with the smallest edit distance, where n is a positive integer; the card type prompt information is used to prompt the user to replace the virtual cards in the hand area so that the replaced first virtual card combination conforms to the combination method of the corresponding card type; the card type is a pre-set combination method of virtual card combinations that achieves the winning conditions of virtual card games; the third virtual card combination includes a fixed card type template; or, the third virtual card combination includes a second virtual card combination that conforms to the corresponding card type generated based on the first virtual card combination; The sending module is used to return the card pattern prompt information to the terminal so that the terminal can display the card pattern prompt information; Specifically, when the sorting result is obtained by sorting according to the edit distance in ascending order, the terminal displays the third virtual card combination of the top n card combinations in the card type prompt information according to the sorting result; the sorting result is obtained by sorting the multiple card types according to the edit distance between the first virtual card combination and the multiple card types. or, When the sorting result is obtained by sorting according to the order of the edit distance from largest to smallest, the terminal displays the third virtual card combination of the n card types in the card type prompt information in the reverse order of the sorting result.
12. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, which is loaded and executed by the processor to implement the information display method in a card game virtual scene as described in any one of claims 1 to 8.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the information display method in a card game virtual scene as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Program and server system
JP2015126784A