Virtual chessboard display method, terminal, storage medium and program product
By displaying virtual boards in auto-chess games, synchronously displaying the pieces information of enemy pieces, solving the problem of users frequently checking and adjusting the lineup, and improving preparation efficiency.
Patent Information
- Application Number
- CN202111475697.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2041-12-06
AI Technical Summary
During the preparation period of the auto-chess game, users need to frequently travel back and forth between the enemy and their own chessboard to view and adjust the lineup, resulting in cumbersome operations and a waste of time.
A virtual chess board display method is provided, by displaying the chess piece information of the target virtual chess piece on the first virtual chess board, and in response to the user's marking operation, obtaining and synchronizing the chess piece information of the enemy chess board, reducing round-trip operations.
Improve preparation efficiency, avoid user memory errors affecting the arrangement of chess pieces, and reduce frequent operation and waste of preparation time.
Smart Images

Figure CN114100133B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of human-computer interaction technology, and in particular to a method for displaying a virtual chessboard, a terminal, a storage medium, and a program product. Background Art
[0002] Auto Chess is a multiplayer strategy game. Players build their own chess lineups to face off against opposing teams. During the game, the pieces automatically battle each other, with the losing side losing health points. The final ranking is determined by elimination order.
[0003] In related technologies, the process of playing Auto Chess is usually divided into a preparation period and a battle period, which are carried out alternately. During the preparation period, users can use virtual resources to obtain the required pieces and place them on their own board. They can also view the lineup on the enemy board and adjust their own piece layout based on the enemy's lineup.
[0004] However, in related technologies, users need to go to the enemy board to observe the enemy lineup and layout behavior, and then return to their own board to make corresponding strategies. Moreover, after the user returns to their own board, the enemy lineup may change at any time. The user needs to check and adjust the lineup multiple times, which makes the layout operation more cumbersome. Summary of the Invention
[0005] The embodiments of the present application provide a method, terminal, storage medium, and program product for displaying a virtual chessboard, which can prevent user memory errors from affecting the arrangement of virtual chess pieces, or multiple round trips between the second virtual chessboard and the first virtual chessboard of each opponent, resulting in frequent operations and wasted preparation time, thereby improving preparation efficiency. The technical solution is as follows:
[0006] In one aspect, an embodiment of the present application provides a method for displaying a virtual chessboard, the method comprising:
[0007] displaying a first virtual chessboard, wherein the first virtual chessboard includes a first virtual chess piece;
[0008] In response to a lineup viewing operation on a target opponent, displaying a second virtual chessboard corresponding to the target opponent, wherein the second virtual chessboard includes second virtual chess pieces;
[0009] In response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, obtaining chess piece information of the target virtual chess piece;
[0010] Based on the chess piece information, the first virtual chess piece and the target virtual chess piece are displayed on the first virtual chess board.
[0011] On the other hand, an embodiment of the present application provides a device for displaying a virtual chessboard, the device comprising:
[0012] A first display module is configured to display a first virtual chessboard, wherein the first virtual chessboard includes a first virtual chess piece;
[0013] A second display module is configured to display a second virtual chessboard corresponding to the target opponent in response to a lineup viewing operation on the target opponent, wherein the second virtual chessboard includes second virtual chess pieces;
[0014] a first acquisition module, configured to acquire, in response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, chess piece information of the target virtual chess piece;
[0015] A third display module is configured to display the first virtual chess piece and the target virtual chess piece through the first virtual chess board based on the chess piece information.
[0016] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for displaying a virtual chessboard as described in the above aspects.
[0017] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program is stored. The computer program is loaded and executed by a processor to implement the method for displaying a virtual chessboard as described in the above aspects.
[0018] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual chessboard display method provided in various optional implementations of the above-mentioned aspects.
[0019] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:
[0020] In an embodiment of the present application, when a marking operation is received for a target virtual chess piece in the second virtual chess board, its chess piece information is obtained, and after returning to the first virtual chess board, the target virtual chess piece is displayed based on the chess piece information. Therefore, when the user goes to other opponent's chess boards to observe the chess piece layout during the preparation stage, the user can select important chess pieces in the opponent's field for marking according to actual conditions. After returning to the first virtual chess board of the user's own side, the user can observe the target virtual chess piece through the first virtual chess board and adjust the first virtual chess piece in the first virtual chess board at the same time without relying on memory for layout. This can avoid the user's memory errors affecting the arrangement of virtual chess pieces, or the situation where the user travels back and forth between the second virtual chess board and the first virtual chess board of each opponent multiple times, resulting in frequent operations and waste of preparation time, thereby improving the preparation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a schematic diagram of an implementation environment shown in an exemplary embodiment of the present application;
[0022] Figure 2 is a flow chart of a method for displaying a virtual chessboard according to an exemplary embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a process of marking a target virtual chess piece according to an exemplary embodiment of the present application;
[0024] Figure 4 is a flowchart of a method for displaying a virtual chessboard according to another exemplary embodiment of the present application;
[0025] Figure 5 is a schematic diagram illustrating a process of displaying a target virtual chess piece according to an exemplary embodiment of the present application;
[0026] Figure 6 is a schematic diagram illustrating a process of switching a target virtual chess piece according to an exemplary embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a process of replacing a target virtual chess piece according to an exemplary embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a process of updating a target virtual chess piece according to an exemplary embodiment of the present application;
[0029] Figure 9 is a flowchart of a method for displaying a virtual chessboard according to another exemplary embodiment of the present application;
[0030] Figure 10 is a flowchart of a method for displaying a virtual chessboard according to another exemplary embodiment of the present application;
[0031] Figure 11is a schematic diagram illustrating a process of marking a target virtual chess piece according to an exemplary embodiment of the present application;
[0032] Figure 12 is a structural block diagram of a virtual chessboard display device shown in an exemplary embodiment of the present application;
[0033] Figure 13 It is a structural block diagram of a terminal shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0035] In this document, "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0036] First, a brief introduction to the terms involved in the embodiments of this application is given:
[0037] Auto Chess: Auto Chess is a new type of multiplayer strategy game. Users build their own chess lineups and face off against opposing lineups. Losers lose health points, and when their health points fall below a threshold, they are eliminated. The order of elimination determines the ranking.
[0038] Virtual chess pieces: Various combat units in Auto Chess. Users can equip, upgrade, purchase, sell, and adjust the positions of virtual chess pieces.
[0039] Preparation Period: Auto Chess games are divided into two phases, alternating between the Preparation Period and the Battle Period. The Preparation Period is the rest period before each battle, during which users can perform operations such as board layout, purchase pieces, and review the enemy lineup.
[0040] Virtual Board: Each user has a home board, where they build their lineup during the preparation period. At the start of a match, a portal transports the user's virtual chess piece to the enemy's home board (or, in some cases, to their own home board) to begin the battle.
[0041] Bonds: Each virtual chess piece has at least two bonds. Bonds can provide additional strength for virtual chess pieces. To activate a bond, at least two virtual chess pieces with the bond must be on the battlefield at the same time.
[0042] In related technologies, during the preparation period, users can use virtual resources to obtain the required pieces and arrange them on their own board. They can also view the lineup on the enemy board and adjust their own piece layout accordingly. However, in related technologies, users need to go to the enemy board to observe the enemy lineup and layout behavior, and then return to their own board to formulate corresponding strategies. Moreover, the enemy lineup may change at any time after the user returns to their own board, requiring users to check and adjust the lineup multiple times, making the layout operation relatively cumbersome.
[0043] In order to solve the above technical problems, the present invention provides a method for displaying a virtual chessboard. Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a first terminal 110, a server 120 and a second terminal 130.
[0044] The first terminal 110 has an application 111 installed and running that supports a virtual chess board. This application 111 may be an auto chess application. When the first terminal runs the application 111, the user interface of the application 111 is displayed on the screen of the first terminal 110. The first terminal 110 is used by a first user 112. The first user 112 uses the first terminal 110 to control a first virtual chess piece located on the first virtual chess board, performing operations such as equipping, upgrading, purchasing, selling, and adjusting the position of the chess piece to complete the lineup. The first virtual chess piece may be referred to as the master virtual chess piece of the first user 112. Schematically, the first virtual chess piece is a first virtual character, such as a simulated character or an anime character.
[0045] The second terminal 130 has an application 131 installed and running that supports a virtual chessboard. This application 131 may be an Auto Chess application. When the second terminal 130 runs application 131, the user interface of application 131 is displayed on the screen of the second terminal 130. The second terminal 130 is used by a second user 132. The second user 132 uses the second terminal 130 to control a second virtual chess piece located on the second virtual chessboard, performing operations such as equipping, upgrading, purchasing, selling, and adjusting the position of the chess piece to complete the lineup. The second virtual chess piece may be referred to as the master virtual chess piece of the second user 132. Illustratively, the second virtual chess piece is a second virtual character, such as a simulated or animated character.
[0046] Optionally, the first virtual chess piece and the second virtual chess piece may belong to the same camp, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual chess piece and the second virtual chess piece may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0047] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of applications on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another of the multiple terminals. This embodiment uses the first terminal 110 and the second terminal 130 as examples. The first terminal 110 and the second terminal 130 can be of the same or different device types, including at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.
[0048] Figure 1 Only two terminals are shown, but in different embodiments, multiple other terminals can access the server 120. Optionally, there are one or more terminals corresponding to developers, on which a development and editing platform for an application supporting virtual chess pieces is installed. Developers can edit and update the application on these terminals and transmit the updated application installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application installation package from the server 120 to update the application.
[0049] The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 via a wireless or wired network. When a terminal receives a user operation such as adding, adjusting, removing, or eliminating a virtual chess piece, it sends the operation data to the backend server 120 based on the corresponding operation result. The backend server then updates the chess piece information of each virtual chess piece. When a terminal receives a marking operation for a target virtual chess piece, it sends a chess piece information acquisition request to the backend server 120 to obtain the chess piece information. Based on the chess piece information, the target virtual chess piece is displayed on the virtual chessboard corresponding to the terminal.
[0050] Server 120 includes at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services for applications that support the virtual chessboard. Optionally, server 120 performs primary computing tasks, while terminals perform secondary computing tasks; alternatively, server 120 performs secondary computing tasks, while terminals perform primary computing tasks; alternatively, server 120 and terminals utilize a distributed computing architecture for collaborative computing.
[0051] In an illustrative example, server 120 includes memory 121, processor 122, user account database 123, battle service module 124, and user-facing input / output interface (I / O interface) 125. Processor 122 is configured to load instructions stored in server 120 and process data in user account database 123 and battle service module 124. User account database 123 is configured to store user account data used by first terminal 110, second terminal 130, and other terminals, such as user account avatars, user account nicknames, user account combat power indexes, and the service areas where user accounts are located. Battle service module 124 is configured to provide multiple battle rooms for users to engage in battles, such as 1v1 battles, 2v2 battles, 3v3 battles, etc. User-facing I / O interface 125 is configured to establish communication and exchange data with first terminal 110 and / or second terminal 130 via a wireless or wired network.
[0052] Figure 2 A flowchart of a method for displaying a virtual chessboard provided by an exemplary embodiment of the present application is shown. This embodiment is described by taking the method applied to a terminal supporting a virtual environment as an example. The method includes the following steps.
[0053] Step 201: Display a first virtual chessboard, which includes a first virtual chess piece.
[0054] In one possible implementation, Auto Chess is divided into a preparation phase and a battle phase, which are performed alternately. During the preparation phase, the terminal displays a first virtual chessboard, and the user can adjust the first virtual chess piece on the first virtual chessboard, such as replacing chess pieces, acquiring chess pieces, upgrading chess piece levels, moving chess pieces, etc., to prepare for the next round of battle. The first virtual chessboard is the virtual chessboard corresponding to the currently logged-in account, and the first virtual chess piece is the virtual chess piece corresponding to the currently logged-in account. During the preparation phase, when an adjustment operation for the first virtual chess piece is received, the terminal executes the operation and adjusts the first virtual chess piece accordingly. During the battle phase, the terminal automatically controls the first virtual chess piece to fight.
[0055] Optionally, the terminal displays the first virtual chessboard through a virtual chessboard interface, which also displays battle information of each opponent (such as remaining health points, account identification, etc.) and interface elements such as user interface (UI) controls.
[0056] Step 202 : In response to a lineup viewing operation on a target opponent, a second virtual chessboard corresponding to the target opponent is displayed, wherein the second virtual chessboard includes a second virtual chess piece.
[0057] In one possible implementation, during the preparation phase, the user can trigger the display of a second virtual chessboard of the other opponent, containing second virtual chess pieces. The user can observe the other opponent's lineup and layout, consider corresponding strategies, and adjust the first virtual chess pieces to prepare for the next phase of the game.
[0058] Indicative, Figure 3 A schematic diagram of the process of switching from a first virtual chessboard to a second virtual chessboard is shown. When entering the preparation stage, the terminal displays the first virtual chessboard 301 through the virtual chessboard interface by default, and the first virtual chessboard 301 displays the first virtual chess piece 302. In the virtual chessboard interface, the battle information of each opponent (user nickname, user avatar, and remaining life value, etc.) is displayed on the right side of the first virtual chessboard 301. When a lineup viewing operation for the target opponent 306 is received, the terminal switches the first virtual chessboard 301 to the second virtual chessboard 303 corresponding to the target opponent 306 in the virtual chessboard interface. The second virtual chessboard 303 displays the second virtual chess piece on the field at the current moment. It is worth mentioning that only one first virtual chess piece 302 is marked in the figure, and the actual Figure 3 The CCP displays six first virtual chess pieces 302 .
[0059] While the second virtual chessboard is being displayed, the terminal obtains chess piece adjustment data of the target opponent from the background server, and updates the second virtual chess piece in the second virtual chessboard based on the chess piece adjustment data to achieve synchronous display of the target opponent's operations. The user can observe the opponent's layout operations through the second virtual chessboard.
[0060] Step 203: In response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, obtain chess piece information of the target virtual chess piece.
[0061] If a user views the other team's lineups and positions by viewing the second virtual chessboard, and then returns to the first virtual chessboard to adjust the lineup, they will need to rely on memory to make these adjustments. For one thing, when there are many opponents, it is difficult for the user to accurately remember the lineups of each opponent. For another, during the time it takes for the user to return from the second virtual chessboard to the first virtual chessboard and make lineup adjustments, the other opponents may continue to make lineup adjustments, resulting in discrepancies between the information the user remembers and the actual lineup, and the user may need to view the second virtual chessboard multiple times.
[0062] In one possible implementation, in order to improve the efficiency of lineup adjustment, an embodiment of the present application provides a virtual chess piece marking mechanism. The user can go to the virtual chess board of another opponent, observe and determine the virtual chess pieces in the opponent's lineup that have a greater impact on his own lineup, and mark them, so that the marked virtual chess pieces can still be observed after returning to the first virtual chess board.
[0063] After receiving the mark operation for the target virtual chess piece, the terminal obtains the chess piece information of the target virtual chess piece from the backend server. The number of target virtual chess pieces is at least one, and the number of target opponents is at least one. In other words, the user can mark multiple target virtual chess pieces for the same opponent, or can mark target virtual chess pieces on multiple second virtual chessboards for different opponents, although this embodiment of the application is not limited to this.
[0064] Step 204: Based on the chess piece information, display the first virtual chess piece and the target virtual chess piece on the first virtual chessboard.
[0065] When the return operation is received, the terminal switches from the second virtual chessboard to the first virtual chessboard. At this time, not only the first virtual chess piece but also the target virtual chess piece is displayed in the first virtual chessboard. In a possible embodiment, the terminal displays the target virtual chess piece based on the chess piece information of the target virtual chess piece, so that the target virtual chess piece displayed on the first virtual chessboard can reflect the situation of the target virtual chess piece in the corresponding second virtual chessboard (position, level, current attribute value, chess piece equipment, etc.). During the period when the terminal displays the target virtual chess piece through the first virtual chessboard, the terminal also obtains the chess piece adjustment data corresponding to the target virtual chess piece from the background server according to the target frequency, so that when the target opponent adjusts the target virtual chess piece, the terminal can synchronously update the chess piece information of the target virtual chess piece, so that the user can know the adjustment status of the target virtual chess piece through the first virtual chessboard without having to travel back and forth between the first virtual chessboard and the second virtual chessboard.
[0066] like Figure 3 As shown, when a mark operation is received on a target virtual chess piece 304 on the second virtual chessboard 303, the terminal obtains the chess piece information of the target virtual chess piece 304. When a trigger operation is received on the return control 305, the terminal switches the second virtual chessboard 303 to the first virtual chessboard 301, and displays the first virtual chess piece 302 and the target virtual chess piece 304 on the first virtual chessboard 301.
[0067] Illustratively, the target virtual chess piece displayed in the first virtual chessboard is not the virtual chess piece itself, but a phantom corresponding to the virtual chess piece, and its body is still displayed in the second virtual chessboard.
[0068] To sum up, in the embodiment of the present application, when a marking operation is received for a target virtual chess piece in the second virtual chess board, its chess piece information is obtained, and after returning to the first virtual chess board, the target virtual chess piece is displayed based on the chess piece information. Therefore, when the user goes to other opponent's chess boards to observe the chess piece layout during the preparation stage, the user can select important chess pieces in the opponent's field for marking according to the actual situation. After returning to the first virtual chess board of the user's own side, the user can observe the target virtual chess piece through the first virtual chess board and adjust the first virtual chess piece in the first virtual chess board at the same time without relying on memory for layout. This can avoid the user's memory errors affecting the arrangement of virtual chess pieces, or the situation where the user travels back and forth between the second virtual chess board and the first virtual chess board of each opponent multiple times, resulting in frequent operations and waste of preparation time, thereby improving the preparation efficiency.
[0069] In a possible implementation, after the terminal returns to the first virtual chess board and during the process of displaying the target virtual chess piece through the first virtual chess board, it is necessary to obtain the chess piece status of the target virtual chess piece based on the chess piece information. When the chess piece status indicates that the chess piece exists, the target virtual chess piece is displayed; otherwise, the target virtual chess piece is stopped from being displayed. Figure 4 A flowchart of a method for displaying a virtual chessboard provided by another exemplary embodiment of the present application is shown. This embodiment is described by taking the method applied to a terminal supporting a virtual environment as an example, and the method includes the following steps.
[0070] Step 401: Display a first virtual chessboard, which includes a first virtual chess piece.
[0071] Step 402 : In response to a lineup viewing operation on a target opponent, a second virtual chessboard corresponding to the target opponent is displayed, wherein the second virtual chessboard includes a second virtual chess piece.
[0072] Step 403: In response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, obtain chess piece information of the target virtual chess piece.
[0073] The specific implementation of steps 401 to 403 can refer to the above steps 201 to 203, and will not be repeated here in this embodiment of the present application.
[0074] Step 404: Determine the chess piece status of the target virtual chess piece based on the chess piece information.
[0075] Because the user marks the target virtual chess piece and returns to the first virtual chess board are two independent operations, the time interval between the two operations is not fixed.If the user marks the target virtual chess piece and returns to the first virtual chess board immediately, the interval between the two operations is shorter, during which the target virtual chess piece does not change usually (i.e., the target opponent may not have time to adjust the target virtual chess piece in the future).If the user marks the target virtual chess piece and does not return to the first virtual chess board immediately, but continues to observe the second virtual chess board of the target opponent, or goes to the second virtual chess board of other opponents to observe, then the interval between marking the target virtual chess piece and returning to the first virtual chess board is longer, during which the target opponent may have adjusted the target virtual chess piece, causing the target virtual chess piece to not exist.Therefore, in order to avoid the user returning to the first virtual chess board, the target virtual chess piece shown by the terminal is synchronous with the target virtual chess piece in the second virtual chess board of the target opponent, in a possible embodiment, in above-mentioned steps 403, the chess piece information that the terminal obtains comprises the chess piece identification of the target virtual chess piece and the account identification of the target opponent. Upon receiving a return operation, the terminal retrieves the target virtual chess piece's status from the backend server based on the account ID and the chess piece ID. This status includes whether the chess piece exists or not. Based on the status, the terminal displays the first virtual chessboard. If the chess piece exists, the terminal executes step 405; if not, the terminal executes step 406.
[0076] Illustratively, when each opponent adjusts a virtual chess piece, the terminal sends the corresponding chess piece adjustment data to the backend server based on the adjustment operation. The backend server then updates the corresponding chess piece status of each virtual chess piece based on the chess piece adjustment data. Upon receiving a chess piece addition operation from a terminal indicating that a virtual chess piece has been added to the virtual chessboard, the backend server determines that the chess piece status of the virtual chess piece is "present." Upon receiving chess piece replacement or removal adjustment data from a terminal indicating that a virtual chess piece has been removed from the virtual chessboard, the backend server updates the chess piece status of the virtual chess piece from "not present" to "present."
[0077] Step 405 : In response to the chess piece status being that the chess piece exists, displaying the first virtual chess piece and the target virtual chess piece on the first virtual chessboard.
[0078] When it is determined that the chess piece state of the target virtual chess piece is that the chess piece exists, the terminal displays the target virtual chess piece through the first virtual chess board.
[0079] In one possible implementation, to avoid a situation where an excessive number of virtual chess pieces on the first virtual chessboard results in cluttered display content and affects user observation and layout, a marked chess piece upper limit is set in the terminal. The terminal displays the first virtual chessboard based on the marked chess piece upper limit and the target number of virtual chess pieces currently displayed on the first virtual chessboard. Step 405 includes the following steps:
[0080] Step 405a: In response to the chess piece status being that the chess piece exists, determine the target chess piece position based on the chess piece information.
[0081] If it is determined that the target virtual chess piece exists, the terminal determines the target chess piece's position based on the chess piece information. In one possible embodiment, the chess piece information obtained by the terminal upon receiving a mark operation on the target virtual chess piece includes the chess piece's position, and the terminal directly determines the target chess piece's position based on the chess piece information when determining the chess piece's existence. Alternatively, the chess piece information obtained by the terminal includes the chess piece identifier of the target virtual chess piece and the account identifier of the target opponent. When the terminal sends the chess piece information to the backend server to request the chess piece's status, the terminal obtains the chess piece's position to ensure that the target chess piece's position within the first virtual chessboard is synchronized with the target virtual chess piece's position within the second virtual chessboard.
[0082] Among them, the chess piece position refers to the position (chess grid) of the virtual chess piece in the corresponding virtual chessboard. In the chess piece lineup of the same opponent, only one virtual chess piece can be placed in a chess piece position. Since the user can mark the virtual chess piece of at least one opponent in the embodiment of the present application, when there are at least two target opponents, there may be a situation where at least two target virtual chess pieces (of different opponents) are located at the same chess piece position. Therefore, the terminal needs to determine whether there are other virtual chess pieces at the target chess piece position of the first virtual chess board, thereby displaying the target virtual chess piece based on the judgment result.
[0083] Step 405b: In response to no virtual chess piece being placed at the target chess piece position in the first virtual chessboard, displaying the target virtual chess piece at the target chess piece position.
[0084] If no other virtual chess piece is placed at the target chess piece position in the first virtual chessboard, the terminal may directly display the target virtual chess piece at the target virtual position.
[0085] Step 405c: In response to a virtual chess piece being placed at the target chess piece position on the first virtual chess board, the first virtual chess piece and the target virtual chess piece are displayed on the first virtual chess board based on an upper limit for marking chess pieces, where the upper limit for marking chess pieces refers to the maximum number of virtual chess pieces that can be simultaneously marked and located at the same chess piece position.
[0086] If other virtual chess pieces have already been placed on the first virtual chessboard, the terminal must further determine whether the target virtual chess piece can be displayed at the target chess piece position. To avoid the situation where too many virtual chess pieces are displayed at the same chess piece position, which would cause confusion in the display and affect the user's observation and layout, the terminal is set with an upper limit on the number of virtual chess pieces that can be marked at the same chess piece position. The upper limit is the maximum number of virtual chess pieces that can be marked at the same chess piece position at the same time. The terminal determines whether the target virtual chess piece can be displayed based on the upper limit and the number of chess pieces already placed at the target chess piece position.
[0087] In a possible implementation, if the number of chess pieces placed at the target chess piece position has not reached the upper limit of marked chess pieces, then in this case, step 405c specifically includes the following steps:
[0088] Step 1: In response to a virtual chess piece being placed at a target chess piece position in a first virtual chessboard and the number of placed chess pieces not reaching an upper limit of marked chess pieces, the first virtual chess piece and the target virtual chess piece are displayed on the first virtual chessboard.
[0089] When the number of chess pieces placed at the target chess piece position does not reach the upper limit of marked chess pieces, the terminal hides the virtual chess piece displayed at the target chess piece position in the first virtual chessboard (i.e., the virtual chess piece marked by the user before), and displays the target virtual chess piece (i.e., the virtual chess piece marked in this operation) at the target chess piece position.
[0090] Schematically, the upper limit for marking chess pieces is 3, that is, a maximum of 3 target virtual chess pieces can be placed at the same chess piece position. When returning to the first virtual chessboard, the terminal obtains the number of chess pieces placed at the target chess piece position. If the number of placed chess pieces is 1, which does not reach the upper limit for marking chess pieces, the terminal displays the target virtual chess piece at the target chess piece position and hides the virtual chess piece previously placed at the target chess piece position.
[0091] Step 2: Displaying the chess piece identifiers of other virtual chess pieces at the target chess piece position around the target chess piece position.
[0092] After the terminal displays the target virtual chess piece at the target chess piece position, the other virtual chess pieces at the target chess piece position are hidden. The terminal displays chess piece identifiers (e.g., thumbnails, chess piece names, etc.) of the hidden virtual chess pieces at the target chess piece position around the target chess piece position, helping the user understand the chess piece marking status of each chess piece position and reminding the user that there are other marked second virtual chess pieces at the target chess piece position.
[0093] In the above process, when at least two virtual chess pieces are placed at the target chess piece position, the terminal displays the target virtual chess piece that was marked most recently by default. In another possible embodiment, before displaying the target virtual chess piece, if the terminal determines that another virtual chess piece has been placed at the target chess piece position, a chess piece selection pop-up window is displayed for the user to manually select the virtual chess piece to be displayed first.
[0094] After the terminal displays the target virtual chess piece and hides other virtual chess pieces at the target chess piece's position, the method for displaying a virtual chessboard provided by the embodiment of the present application further includes the following steps:
[0095] Step three: in response to a triggering operation on a target chess piece identifier in the chess piece identifiers, switching the target virtual chess piece displayed at the target chess piece position to a virtual chess piece corresponding to the target chess piece identifier.
[0096] In one possible implementation, the chess piece identifier corresponding to the hidden chess piece is displayed as a triggerable UI control. If the user wants to view the hidden virtual chess piece, they can trigger the corresponding chess piece identifier to cause the terminal to switch chess pieces, switching the target virtual chess piece displayed at the target chess piece position to the virtual chess piece corresponding to the target chess piece identifier.
[0097] Indicative, such as Figure 5 As shown, a virtual chess piece 502 is displayed at the target virtual position of a first virtual chessboard 501. The terminal determines that the target virtual chess piece 504 is also located at the target virtual position, and the upper limit of the marked chess pieces is 3. Then, the terminal displays the target virtual chess piece 504 at the target chess piece position and displays a chess piece identifier 503 corresponding to the virtual chess piece 502 around the target position. When a trigger operation is received on the chess piece identifier 503, and the chess piece positions of the virtual chess piece 502 and the target virtual chess piece 504 do not change, the terminal displays the virtual chess piece 503 at the target chess piece position and displays a chess piece identifier 505 corresponding to the target virtual chess piece 504 around the target chess piece position.
[0098] In a possible implementation, if the number of chess pieces placed at the target chess piece position reaches the upper limit of marked chess pieces, then in this case, step 405c specifically includes the following steps:
[0099] Step 4: In response to a virtual chess piece being placed at the target chess piece position in the first virtual chessboard and the number of placed chess pieces reaching an upper limit of marked chess pieces, a first prompt pop-up window is displayed.
[0100] When the number of chess pieces placed at the target virtual position on the first virtual chessboard reaches the upper limit of the marked chess pieces, the terminal displays a first prompt pop-up window. The first prompt pop-up window includes prompt information for prompting the user that the number of virtual chess pieces placed at the target chess piece position corresponding to the target virtual chess piece has reached the upper limit.
[0101] Schematically, only one marked second virtual chess piece can be placed at the same chess piece position on the first virtual chessboard. When the terminal determines that a virtual chess piece has been placed at the target chess piece position, the terminal displays a first prompt pop-up window.
[0102] Step 5: In response to the triggering operation of the chess piece replacement control in the first prompt pop-up window, the display of at least one virtual chess piece at the target chess piece position is stopped.
[0103] Since the marked second virtual chess pieces are all virtual chess pieces that the user has confirmed to be more important, in order to facilitate the user to select the virtual chess piece to be retained at the target virtual position according to needs, the first prompt pop-up window also displays a chess piece replacement control and a mark cancellation control. When the chess piece replacement control is triggered, the terminal displays the target virtual chess piece at the target chess piece position and determines at least one virtual chess piece from the other virtual chess pieces that have been placed and stops displaying it (i.e., cancels the mark of the at least one virtual chess piece at the target chess piece position).
[0104] Optionally, the terminal stops displaying the virtual chess piece that receives the mark operation earliest at the target chess piece position, or stops displaying any virtual chess piece at the target chess piece position, or stops displaying the virtual chess piece manually selected by the user. This embodiment of the application does not limit this.
[0105] Step six: display the first virtual chess piece and the target virtual chess piece on the first virtual chessboard.
[0106] Indicative, such as Figure 6 As shown, a marked virtual chess piece 602 is displayed at the target virtual position of the first virtual chessboard 601. The upper limit of the marked chess pieces is 1, so the terminal displays a first prompt pop-up window 603. When a trigger operation is received on the chess piece replacement control 604 in the first prompt pop-up window 603, the terminal stops displaying the virtual chess piece 602 (cancels the mark of the virtual chess piece 602) and displays the target virtual chess piece 606 at the target virtual position.
[0107] After step 4, the method provided in the embodiment of the present application further includes the following steps:
[0108] Step seven: in response to the triggering operation of the marked cancel control in the first prompt pop-up window, stop displaying the target virtual chess piece.
[0109] If a trigger operation of the mark cancellation control in the first prompt pop-up window is received, the terminal stops displaying the target virtual chess piece, that is, cancels the mark of the target virtual chess piece.
[0110] like Figure 6 As shown, if a user trigger operation on the mark cancellation control 605 is received, the terminal stops displaying the target virtual chess piece 606 and still displays the virtual chess piece 602 at the target virtual position.
[0111] Step 406: In response to the chess piece status being chess piece removal, stop displaying the target virtual chess piece.
[0112] If the terminal determines that the chess piece status of the target virtual chess piece is chess piece removal (chess piece does not exist) when returning to the first virtual chess board, the display of the target virtual chess piece is directly stopped.
[0113] In one possible implementation, after successfully displaying the target virtual chess piece, the terminal continues to obtain the status of each target virtual chess piece on the first virtual chessboard according to the target frequency. When it is determined that the target virtual chess piece does not exist on the board, the terminal stops displaying the target virtual chess piece. Step 406 includes the following steps:
[0114] Step 406a: In response to the chess piece status being chess piece removal, stop displaying the target virtual chess piece according to the target display effect.
[0115] The target display effect includes at least one of gradually changing to disappearance, flashing and disappearing, and displaying a stop mark prompt information around the target virtual chess piece corresponding to the chess piece identifier.
[0116] While the terminal is displaying the target virtual chess piece through the first virtual chess board, the target opponent may remove the target virtual chess piece (for example, withdrawing the target virtual chess piece from the layout and placing it in the spare chess piece queue, or selling the target virtual chess piece or the user exchanging it for other virtual chess pieces, etc.), causing the chess piece status of the target virtual chess piece to be non-existent, so the terminal stops displaying the target virtual chess piece.
[0117] In order to remind the user that the current chess piece status of the target virtual chess piece is that the chess piece does not exist, and to avoid directly stopping the display of the target virtual chess piece without the user's knowledge, causing the user to lose important information, the terminal stops displaying the target virtual chess piece according to the target display effect.
[0118] Optionally, if the terminal determines that the chess piece status of the target virtual chess piece previously displayed in the first virtual chess board is chess piece removal during display of the second virtual chess board, when receiving the return operation, the terminal stops displaying the target virtual chess piece according to the target display effect.
[0119] In another possible embodiment, while the terminal is displaying the target virtual chess piece on the first virtual chessboard, the target opponent may replace the target virtual chess piece with a candidate virtual chess piece that is more favorable to the target opponent. In this case, the candidate virtual chess piece is usually also a relatively important virtual chess piece in the target opponent's camp, that is, the user may need to mark the candidate virtual chess piece. In order to further simplify user operations and improve battle preparation efficiency, step 406 includes the following steps:
[0120] Step 406b: In response to the chess piece status being chess piece removal, and the target opponent replacing the target virtual chess piece with a candidate virtual chess piece, a second prompt pop-up window is displayed.
[0121] Among them, the second prompt pop-up window contains prompt information for indicating that the target virtual chess piece has been replaced, the candidate virtual chess piece has the same bond with the target virtual chess piece, and the chess piece level of the candidate virtual chess piece is higher than the chess piece level of the target virtual chess piece and / or the candidate virtual chess piece inherits the chess piece equipment of the target virtual chess piece. Among them, the chess piece level does not refer to the game experience level (such as star rating), but is related to the amount of virtual resources consumed in exchanging virtual chess pieces. The chess piece level of low-consumption chess pieces is lower than the chess piece level of high-consumption chess pieces. For example, the chess piece level of a virtual chess piece that requires 1 virtual gold coin to exchange is lower than the chess piece level of a virtual chess piece that requires 2 virtual gold coins to exchange.
[0122] Step 406c: in response to the triggering operation of the chess piece replacement control in the second prompt pop-up window, the target virtual chess piece in the first virtual chessboard is replaced with the candidate virtual chess piece based on the chess piece information of the candidate virtual chess piece.
[0123] To facilitate the user's need to mark a candidate virtual chess piece, without having to trigger the process of going to the second virtual chessboard corresponding to the target opponent to mark it again, the terminal displays a second prompt pop-up window after determining that the target opponent has replaced the target virtual chess piece with the candidate virtual chess piece. The second prompt pop-up window contains a prompt indicating that the target virtual chess piece has been replaced, as well as a chess piece replacement control. The user can trigger the chess piece replacement control to replace the chess piece in the first virtual chessboard with a single click.
[0124] In a possible implementation, when a trigger operation for canceling the replacement control in the second prompt pop-up window is received, the terminal stops displaying the target virtual chess piece, and the terminal no longer obtains chess piece information of the candidate virtual chess piece.
[0125] Indicative, such as Figure 7 As shown, a target virtual chess piece 702 is displayed on a first virtual chessboard 701. The terminal determines that the target opponent has removed the target virtual chess piece 702 and placed a candidate virtual chess piece 706 in the same position, and then displays a second prompt pop-up window 703. When a trigger operation is received on the chess piece replacement control 704 in the second prompt pop-up window 703, the terminal replaces the target virtual chess piece 702 displayed on the first virtual chessboard 701 with the candidate virtual chess piece 706. If a trigger operation is received on the cancel replacement control 705 in the second prompt pop-up window 703, the terminal stops displaying the target virtual chess piece 702.
[0126] Step 407: Obtain chess piece adjustment data of the target virtual chess piece.
[0127] In one possible implementation, while the terminal displays the target virtual chess piece on the first virtual chessboard, the target opponent may adjust the target virtual chess piece, such as by moving the target virtual chess piece's position, upgrading it, replacing it, or adding equipment to it. The terminal obtains chess piece adjustment data for the target virtual chess piece at a target frequency to synchronize the target virtual chess piece, allowing the user to observe the target opponent's adjustments to the target virtual chess piece on the first virtual chessboard and adjust the layout in a timely manner.
[0128] Step 408: Update the target virtual chess piece based on the chess piece adjustment method indicated by the chess piece adjustment data.
[0129] The chess piece adjustment method includes at least one of chess piece position adjustment, chess piece level adjustment and chess piece equipment adjustment.
[0130] Indicative, such as Figure 8 As shown, a target virtual chess piece 802 is displayed on the first virtual chessboard 801. The terminal obtains chess piece adjustment data corresponding to the target virtual chess piece 802, and the chess piece adjustment data indicates that the chess piece position of the target virtual chess piece 802 is moved from a first position to a second position. Then, based on the chess piece adjustment data, the terminal moves the target virtual chess piece 802 displayed at the first position to the second position on the first virtual chessboard 801 for display.
[0131] In an embodiment of the present application, it supports marking the second virtual chess piece of at least one target opponent. When at least two target virtual chess pieces are placed at the same target chess piece position, the terminal displays the chess piece identification of one of the target virtual chess pieces and the other virtual chess pieces. The user can switch the display by triggering the chess piece identification, which is convenient for the user to simultaneously observe the important chess pieces of multiple opponents in the first virtual chess board, without having to switch multiple times between the second virtual chess boards of each opponent and the first virtual chess board of the user, further simplifying the steps for the user to mark the virtual chess pieces and improving the efficiency of preparation for battle; in the process of displaying the target virtual chess piece through the first virtual chess board, the chess piece adjustment data is obtained, and the target virtual chess piece is updated based on the chess piece adjustment data to realize the synchronous display of the adjustment operation of the target opponent.
[0132] In combination with the above embodiment, in an illustrative example, the process of the terminal executing the virtual chess piece marking task is as follows: Figure 9 As shown, the process includes the following steps.
[0133] Step 901: Receive a marking operation on a target virtual chess piece.
[0134] Step 902: Determine whether the target virtual chess piece exists. If yes, proceed to step 904; if no, proceed to step 903.
[0135] Step 903: Stop displaying the target virtual chess piece.
[0136] Step 904: Determine whether the target virtual chess piece has changed. If so, execute step 906; if not, execute step 905.
[0137] Step 905: Keep the display state of the target virtual chess piece on the first virtual chessboard unchanged.
[0138] Step 906: Update the target virtual chess piece in the first virtual chessboard based on the chess piece adjustment data.
[0139] In order to facilitate the user to distinguish the first virtual chess piece and the target virtual chess piece in the first virtual chessboard and avoid confusion caused by too many virtual chess pieces, the terminal displays the first virtual chess piece and the target virtual chess piece in different display modes in different display areas. Figure 10 A flowchart of a method for displaying a virtual chessboard provided by another exemplary embodiment of the present application is shown. This embodiment is described by taking the method applied to a terminal supporting a virtual environment as an example, and the method includes the following steps.
[0140] Step 1001: Display a first virtual chessboard, which includes a first virtual chess piece.
[0141] Step 1002 : In response to a lineup viewing operation on a target opponent, a second virtual chessboard corresponding to the target opponent is displayed, wherein the second virtual chessboard includes a second virtual chess piece.
[0142] The specific implementation of steps 1001 to 1002 can refer to the above steps 201 to 202, and will not be repeated here in this embodiment of the present application.
[0143] Step 1003 : In response to the selection operation on the target virtual chess piece, a mark setting pop-up window corresponding to the target virtual chess piece is displayed, wherein the mark setting pop-up window includes a mark control.
[0144] In one possible implementation, the user can actively select a second virtual chess piece to be marked. Upon receiving a selection operation for a target virtual chess piece among the second virtual chess pieces (e.g., a trigger operation on a chess piece model corresponding to the target virtual chess piece), the terminal displays a pop-up window for setting a mark for the target virtual chess piece. The user can obtain chess piece information for the target virtual chess piece and set a mark in the pop-up window.
[0145] Indicative, such as Figure 11As shown, when a selection operation is received for a target virtual chess piece 1103 in the second virtual chessboard 1102, the terminal displays a mark setting pop-up window 1105 corresponding to the target virtual chess piece 1103. The mark setting pop-up window 1105 includes chess piece information such as the name, type, and equipment of the target virtual chess piece 1103, and also includes a mark control 1106.
[0146] Step 1004 : In response to the triggering operation on the mark control, obtain the chess piece information of the target virtual chess piece.
[0147] When a trigger operation on the mark control is received, the terminal determines that a mark operation on the target virtual chess piece is received, and obtains chess piece information of the target virtual chess piece.
[0148] Step 1005: Display the first virtual chess piece in the first display area of the first virtual chess board, and display the target virtual chess piece in the second display area of the first virtual chess board based on the chess piece information.
[0149] In one possible implementation, the virtual chessboard in the preparation phase corresponds to the virtual chessboard in the game phase, and the virtual chessboard includes a first display area and a second display area. The first virtual chess piece is located in the first display area of the first virtual chessboard, and the second virtual chess piece is located in the second display area of the second virtual chessboard.
[0150] The first virtual chess piece and the target virtual chess piece are displayed in different display areas of the first virtual chessboard. On the one hand, it can simulate the arrangement of chess pieces in the battle stage, making it easier for users to think about layout strategies. On the other hand, it can help users distinguish between the first virtual chess piece and the target virtual chess piece to avoid confusion.
[0151] like Figure 11 As shown, the second virtual chess pieces are all displayed in the second display area 1102b of the second virtual chessboard 1102. When a marking operation is received on the target virtual chess piece 1103 and a trigger operation is received on the return control 1104, the terminal displays the first virtual chessboard 1101, displays the first virtual chess pieces in the first display area 1101a of the first virtual chessboard 1101, and displays the target virtual chess piece 1103 in the second display area 1101b.
[0152] To further distinguish the first virtual chess piece from the target virtual chess piece, in one possible embodiment, the display mode of the first virtual chess piece in the first virtual chessboard is different from the display mode of the target virtual chess piece. The difference in display mode between the first virtual chess piece and the target virtual chess piece includes at least one of the following: the chess piece orientation of the first virtual chess piece is different from the chess piece orientation of the target virtual chess piece (for example, the first virtual chess piece and the target virtual chess piece are placed opposite each other, and their orientations correspond to the attack direction in the battle phase); the transparency of the first virtual chess piece is different from the transparency of the target virtual chess piece (for example, the transparency of the first virtual chess piece is 0, and the target virtual chess piece is a phantom of the corresponding second virtual chess piece, and its transparency is 50%); the attribute bar color of the first virtual chess piece is different from the attribute bar color of the target virtual chess piece; the target virtual chess piece is highlighted (for example, the side of the target virtual chess piece is highlighted, or a special color mark is displayed below the target virtual chess piece, etc.); the account identifier of the opponent to which the target virtual chess piece belongs is displayed around the target virtual chess piece (for example, the user avatar of the opponent is displayed above the target virtual chess piece, etc.).
[0153] Step 1006: In response to the mark stop operation, stop displaying the target virtual chess piece indicated by the mark stop operation.
[0154] In a possible implementation, if the user determines that it is no longer necessary to display a target virtual chess piece on the first virtual chessboard, the terminal may stop displaying the target virtual chess piece through a mark stop operation.
[0155] Illustratively, when a selection operation is received for a target virtual chess piece on the first virtual chessboard, a mark cancellation pop-up window is displayed. The mark cancellation pop-up window includes a mark cancellation control. When the mark cancellation control is triggered, the terminal stops displaying the target virtual chess piece. A mark clear control is also displayed on the virtual chessboard interface corresponding to the first virtual chessboard. When the mark clear control is triggered, the terminal stops displaying all target virtual chess pieces on the first virtual chessboard.
[0156] Step 1007 : In response to the end of the battle preparation phase, the display of the target virtual chess piece in the first virtual screen is stopped.
[0157] In a possible implementation, the user can mark the second virtual chess piece during the game preparation phase. When the game preparation phase ends and the game phase begins, the terminal automatically stops displaying the target virtual chess piece in the first virtual screen.
[0158] Optionally, when the terminal stops displaying the target virtual chess piece due to the end of the battle preparation phase, the terminal retains the mark of the target virtual chess piece, and at the beginning of the next battle preparation phase, determines whether the target virtual chess piece in the previous battle preparation phase exists. If so, the target virtual chess piece is displayed through the first virtual chessboard; or, after the battle preparation phase ends, the terminal clears the marks of all target virtual chess pieces.
[0159] In an embodiment of the present application, the user can trigger the selection of a target virtual chess piece in the second virtual chessboard, mark a single virtual chess piece, and display it in the first virtual chessboard. The user can transfer more important virtual objects that have a greater impact on his or her own layout to the first virtual chessboard for display according to his or her own needs, so that the user can adjust the layout while observing the target virtual object, simplifying the game preparation process and improving the efficiency of game preparation.
[0160] Figure 12 This is a structural block diagram of a virtual chessboard display device provided by an exemplary embodiment of the present application. The device is composed of the following components:
[0161] A first display module 1201 is configured to display a first virtual chessboard containing first virtual chess pieces;
[0162] The second display module 1202 is configured to display a second virtual chessboard corresponding to the target opponent in response to a lineup viewing operation on the target opponent, wherein the second virtual chessboard includes second virtual chess pieces;
[0163] A first acquisition module 1203 is configured to acquire, in response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, chess piece information of the target virtual chess piece;
[0164] The third display module 1204 is configured to display the first virtual chess piece and the target virtual chess piece on the first virtual chess board based on the chess piece information.
[0165] Optionally, the third display module 1204 includes:
[0166] A first determining unit, configured to determine a chess piece state of the target virtual chess piece based on the chess piece information;
[0167] a first display unit, configured to display the first virtual chess piece and the target virtual chess piece on the first virtual chess board in response to the chess piece status being chess piece existence;
[0168] The device further comprises:
[0169] The first control module is configured to stop displaying the target virtual chess piece in response to the chess piece status being chess piece removal.
[0170] Optionally, the first display unit is further configured to:
[0171] In response to the chess piece status being that the chess piece exists, determining a target chess piece position based on the chess piece information;
[0172] In response to no virtual chess piece being placed at the target chess piece position in the first virtual chessboard, displaying the target virtual chess piece at the target chess piece position;
[0173] In response to a virtual chess piece being placed at the target chess piece position in the first virtual chess board, the first virtual chess piece and the target virtual chess piece are displayed on the first virtual chess board based on an upper limit for marking chess pieces, where the upper limit for marking chess pieces refers to the maximum number of virtual chess pieces that can be marked at the same chess piece position at the same time.
[0174] Optionally, the first display unit is further configured to:
[0175] In response to a virtual chess piece being placed at the target chess piece position on the first virtual chessboard, and the number of placed chess pieces not reaching the upper limit of marked chess pieces, displaying the first virtual chess piece and the target virtual chess piece on the first virtual chessboard;
[0176] Displaying chess piece identifiers of other virtual chess pieces at the target chess piece position around the target chess piece position;
[0177] The device further comprises:
[0178] The second control module is configured to, in response to a triggering operation on a target chess piece identifier in the chess piece identifiers, switch the target virtual chess piece displayed at the target chess piece position to a virtual chess piece corresponding to the target chess piece identifier.
[0179] Optionally, the first display unit is further configured to:
[0180] In response to a virtual chess piece being placed at the target chess piece position in the first virtual chessboard and the number of placed chess pieces reaching the upper limit of marked chess pieces, displaying a first prompt pop-up window;
[0181] In response to a triggering operation on a chess piece replacement control in the first prompt pop-up window, stopping display of at least one virtual chess piece at the target chess piece position;
[0182] displaying the first virtual chess piece and the target virtual chess piece through the first virtual chess board;
[0183] The device further comprises:
[0184] The third control module is configured to stop displaying the target virtual chess piece in response to a triggering operation of a marked cancel control in the first prompt pop-up window.
[0185] Optionally, the device further includes:
[0186] A second acquisition module is used to acquire chess piece adjustment data of the target virtual chess piece;
[0187] An updating module is configured to update the target virtual chess piece based on a chess piece adjustment method indicated by the chess piece adjustment data, wherein the chess piece adjustment method includes at least one of chess piece position adjustment, chess piece level adjustment, and chess piece equipment adjustment.
[0188] Optionally, the first control module includes:
[0189] The control unit is configured to, in response to the chess piece status being chess piece removal, stop displaying the target virtual chess piece according to a target display effect, wherein the target display effect includes at least one of gradually changing to disappearance, flashing and disappearing, and displaying a cancellation mark prompt information around the target virtual chess piece.
[0190] Optionally, the control unit is further configured to:
[0191] In response to the chess piece status being chess piece removal, and the target opponent replacing the target virtual chess piece with a candidate virtual chess piece, displaying a second prompt pop-up window, the second prompt pop-up window including prompt information for indicating that the target virtual chess piece is replaced, the candidate virtual chess piece and the target virtual chess piece have the same bond, the chess piece level of the candidate virtual chess piece is higher than the chess piece level of the target virtual chess piece, and / or the candidate virtual chess piece inherits the chess piece equipment of the target virtual chess piece;
[0192] In response to a triggering operation on a chess piece replacement control in the second prompt pop-up window, the target virtual chess piece in the first virtual chessboard is replaced with the candidate virtual chess piece based on the chess piece information of the candidate virtual chess piece.
[0193] Optionally, a display mode of the first virtual chess piece in the first virtual chessboard is different from a display mode of the target virtual chess piece;
[0194] The difference between the display modes of the first virtual chess piece and the target virtual chess piece includes at least one of the following:
[0195] The chess piece orientation of the first virtual chess piece is different from the chess piece orientation of the target virtual chess piece;
[0196] The transparency of the first virtual chess piece is different from the transparency of the target virtual chess piece;
[0197] The color of the attribute bar of the first virtual chess piece is different from the color of the attribute bar of the target virtual chess piece;
[0198] The target virtual chess piece is highlighted;
[0199] The target virtual chess piece is surrounded by an account identifier of the opponent.
[0200] Optionally, the virtual chessboard includes a first display area and a second display area, the first virtual chess piece is located in the first display area of the first virtual chessboard, and the second virtual chess piece is located in the second display area of the second virtual chessboard;
[0201] The third display module 1204 includes:
[0202] The second display unit is configured to display the first virtual chess piece through the first display area of the first virtual chess board, and based on the chess piece information, display the target virtual chess piece through the second display area of the first virtual chess board.
[0203] Optionally, the first obtaining module 1203 includes:
[0204] a third display unit, configured to display a mark setting pop-up window corresponding to the target virtual chess piece in response to a selection operation on the target virtual chess piece, wherein the mark setting pop-up window includes a mark control;
[0205] An acquiring unit is configured to acquire the chess piece information of the target virtual chess piece in response to a triggering operation on the mark control.
[0206] Optionally, the device further includes:
[0207] a fourth control module, configured to, in response to a mark stop operation, stop displaying a target virtual chess piece indicated by the mark stop operation;
[0208] The fifth control module is configured to stop displaying the target virtual chess piece in the first virtual screen in response to the end of the battle preparation phase.
[0209] To sum up, in the embodiment of the present application, when a marking operation is received for a target virtual chess piece in the second virtual chess board, its chess piece information is obtained, and after returning to the first virtual chess board, the target virtual chess piece is displayed based on the chess piece information. Therefore, when the user goes to other opponent's chess boards to observe the chess piece layout during the preparation stage, the user can select important chess pieces in the opponent's field for marking according to the actual situation. After returning to the first virtual chess board of the user's own side, the user can observe the target virtual chess piece through the first virtual chess board and adjust the first virtual chess piece in the first virtual chess board at the same time without relying on memory for layout. This can avoid the user's memory errors affecting the arrangement of virtual chess pieces, or the situation where the user travels back and forth between the second virtual chess board and the first virtual chess board of each opponent multiple times, resulting in frequent operations and waste of preparation time, thereby improving the preparation efficiency.
[0210] Please refer to Figure 13 , which shows a block diagram of the structure of a terminal 1300 provided by an exemplary embodiment of the present application. Terminal 1300 may be a portable mobile terminal, such as a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, or a Moving Picture Experts Group Audio Layer IV (MP4) player. Terminal 1300 may also be referred to as user equipment, a portable terminal, or other names.
[0211] Typically, the terminal 1300 includes a processor 1301 and a memory 1302 .
[0212] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0213] Memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1302 is used to store at least one instruction, which is used to be executed by processor 1301 to implement the method provided in the embodiments of the present application.
[0214] In some embodiments, the terminal 1300 may further include a peripheral device interface 1303 and at least one peripheral device. Specifically, the peripheral device may include at least one of a radio frequency circuit 1304 , a touch screen display 1305 , a camera 1306 , an audio circuit 1307 , a positioning component 1308 , and a power supply 1309 .
[0215] The peripheral device interface 1303 can be used to connect at least one input / output (I / O)-related peripheral device to the processor 1301 and the memory 1302. In some embodiments, the processor 1301, the memory 1302, and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0216] The radio frequency circuit 1304 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1304 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a wireless fidelity (WiFi) network. In some embodiments, the radio frequency circuit 1304 may also include circuits related to near field communication (NFC), which is not limited in this application.
[0217] The touchscreen display 1305 is used to display a user interface (UI). This UI may include graphics, text, icons, videos, or any combination thereof. The touchscreen display 1305 is also capable of collecting touch signals on or above the surface of the touchscreen display 1305. These touch signals can be input as control signals to the processor 1301 for processing. The touchscreen display 1305 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be a single touchscreen display 1305, located on the front panel of the terminal 1300. In other embodiments, there may be at least two touchscreen displays 1305, located on different surfaces of the terminal 1300 or in a foldable design. In still other embodiments, the touchscreen display 1305 may be a flexible display, located on a curved or foldable surface of the terminal 1300. Furthermore, the touchscreen display 1305 may be configured as a non-rectangular, irregular shape, also known as a special-shaped screen. The touchscreen display 1305 may be made of materials such as a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
[0218] The camera assembly 1306 is used to capture images or videos. Optionally, the camera assembly 1306 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize photo or video shooting. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and virtual reality (VR) shooting function. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0219] The audio circuit 1307 is used to provide an audio interface between the user and the terminal 1300. The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1301 for processing, or input into the RF circuit 1304 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1300. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1301 or the RF circuit 1304 into sound waves. The speaker may be a traditional thin-film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1307 may also include a headphone jack.
[0220] The positioning component 1308 is used to locate the current geographic location of the terminal 1300 to implement navigation or location-based services (LBS). The positioning component 1308 can be a positioning component of the Global Positioning System (GPS), the Beidou system, or the Galileo system.
[0221] Power supply 1309 is used to power various components in terminal 1300. Power supply 1309 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1309 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.
[0222] In some embodiments, the terminal 1300 further includes one or more sensors 1310 , including but not limited to: an acceleration sensor 1311 , a gyroscope sensor 1312 , a pressure sensor 1313 , a fingerprint sensor 1314 , an optical sensor 1315 , and a proximity sensor 1316 .
[0223] The accelerometer 1311 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 1300. For example, the accelerometer 1311 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1301 can control the touch screen display 1305 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1311. The accelerometer 1311 can also be used to collect game or user motion data.
[0224] The gyroscope sensor 1312 can detect the orientation and rotation angle of the terminal 1300. It can work with the accelerometer 1311 to collect the user's 3D movements on the terminal 1300. Based on the data collected by the gyroscope sensor 1312, the processor 1301 can implement the following functions: motion sensing (for example, changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0225] The pressure sensor 1313 can be located on the side frame of the terminal 1300 and / or below the touchscreen display 1305. When located on the side frame of the terminal 1300, the pressure sensor 1313 can detect a user's gripping signal on the terminal 1300 and perform left-hand or right-hand identification or shortcut operations based on the gripping signal. When located below the touchscreen display 1305, the pressure sensor 1313 can be used to control operable controls on the UI based on the user's pressure on the touchscreen display 1305. Operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0226] The fingerprint sensor 1314 is used to collect the user's fingerprint and identify the user based on the collected fingerprint. When the user's identity is recognized as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1314 can be set on the front, back, or side of the terminal 1300. When a physical button or manufacturer logo is provided on the terminal 1300, the fingerprint sensor 1314 can be integrated with the physical button or manufacturer logo.
[0227] Optical sensor 1315 is used to detect ambient light intensity. In one embodiment, processor 1301 can control the display brightness of touchscreen display 1305 based on the ambient light intensity detected by optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of touchscreen display 1305 is increased; when the ambient light intensity is low, the display brightness of touchscreen display 1305 is decreased. In another embodiment, processor 1301 can also dynamically adjust the shooting parameters of camera assembly 1306 based on the ambient light intensity detected by optical sensor 1315.
[0228] Proximity sensor 1316, also known as a distance sensor, is typically located on the front of terminal 1300. Proximity sensor 1316 is used to measure the distance between the user and the front of terminal 1300. In one embodiment, when proximity sensor 1316 detects that the distance between the user and the front of terminal 1300 is gradually decreasing, processor 1301 controls touchscreen display 1305 to switch from the screen-on state to the screen-off state. When proximity sensor 1316 detects that the distance between the user and the front of terminal 1300 is gradually increasing, processor 1301 controls touchscreen display 1305 to switch from the screen-off state to the screen-on state.
[0229] Those skilled in the art will understand that Figure 13 The structure shown in the figure does not constitute a limitation on the terminal 1300, and the terminal 1300 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0230] An embodiment of the present application further provides a computer-readable storage medium storing at least one instruction, wherein the at least one instruction is loaded and executed by a processor to implement the method for displaying a virtual chessboard as described in the above embodiments.
[0231] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual chessboard display method provided in various optional implementations of the above-mentioned aspects.
[0232] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0233] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for displaying a virtual chessboard, characterized in that: The method comprises: Displaying a first virtual chessboard of Auto Chess, wherein the first virtual chessboard includes a first virtual chess piece; In response to a lineup viewing operation on a target opponent, displaying a second virtual chessboard corresponding to the target opponent, wherein the second virtual chessboard includes second virtual chess pieces, and the number of the target opponent is at least one; In response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, obtaining chess piece information of the target virtual chess piece; Determine the chess piece state and target chess piece position of the target virtual chess piece based on the chess piece information; In response to the chess piece status being that the chess piece exists and a virtual chess piece has been placed at the target chess piece position in the first virtual chess board, the first virtual chess piece and the target virtual chess piece are displayed through the first virtual chess board based on an upper limit for marked chess pieces, where the upper limit for marked chess pieces refers to the maximum number of virtual chess pieces that can be marked at the same chess piece position at the same time.
2. The method according to claim 1, characterized in that The method further comprises: In response to the chess piece status being chess piece removal, the display of the target virtual chess piece is stopped.
3. The method according to claim 1, characterized in that The method further comprises: In response to the chess piece status being that the chess piece exists and no virtual chess piece is placed at the target chess piece position in the first virtual chessboard, the target virtual chess piece is displayed at the target chess piece position.
4. The method according to claim 1, wherein In response to the chess piece status being that the chess piece exists and a virtual chess piece has been placed at the target chess piece position on the first virtual chess board, displaying the first virtual chess piece and the target virtual chess piece on the first virtual chess board based on an upper limit of marked chess pieces includes: In response to a virtual chess piece being placed at the target chess piece position on the first virtual chessboard, and the number of placed chess pieces not reaching the upper limit of marked chess pieces, displaying the first virtual chess piece and the target virtual chess piece on the first virtual chessboard; Displaying chess piece identifiers of other virtual chess pieces at the target chess piece position around the target chess piece position; The method further comprises: In response to a triggering operation on a target chess piece identifier among the chess piece identifiers, the target virtual chess piece displayed at the target chess piece position is switched to a virtual chess piece corresponding to the target chess piece identifier.
5. The method according to claim 1, wherein In response to the chess piece status being that the chess piece exists and a virtual chess piece has been placed at the target chess piece position on the first virtual chess board, displaying the first virtual chess piece and the target virtual chess piece on the first virtual chess board based on an upper limit of marked chess pieces includes: In response to a virtual chess piece being placed at the target chess piece position in the first virtual chessboard and the number of placed chess pieces reaching the upper limit of marked chess pieces, displaying a first prompt pop-up window; In response to a triggering operation on a chess piece replacement control in the first prompt pop-up window, stopping display of at least one virtual chess piece at the target chess piece position; displaying the first virtual chess piece and the target virtual chess piece through the first virtual chess board; The method further comprises: In response to a triggering operation on a marked cancel control in the first prompt pop-up window, the display of the target virtual chess piece is stopped.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining chess piece adjustment data of the target virtual chess piece; The target virtual chess piece is updated based on the chess piece adjustment method indicated by the chess piece adjustment data, where the chess piece adjustment method includes at least one of chess piece position adjustment, chess piece level adjustment, and chess piece equipment adjustment.
7. The method according to claim 2, characterized in that In response to the chess piece status being chess piece removal, stopping display of the target virtual chess piece includes: In response to the chess piece status being the chess piece removed, the target virtual chess piece is stopped from being displayed according to a target display effect, wherein the target display effect includes at least one of gradually changing to disappearance, flashing and disappearing, and displaying a cancellation mark prompt information around the target virtual chess piece.
8. The method according to claim 2, characterized in that In response to the chess piece status being chess piece removal, stopping display of the target virtual chess piece includes: In response to the chess piece status being the chess piece being removed, and the target opponent replacing the target virtual chess piece with a candidate virtual chess piece, displaying a second prompt pop-up window, the second prompt pop-up window including prompt information indicating that the target virtual chess piece is replaced, the candidate virtual chess piece and the target virtual chess piece have the same bond, the chess piece level of the candidate virtual chess piece is higher than the chess piece level of the target virtual chess piece, and / or the candidate virtual chess piece inherits the chess piece equipment of the target virtual chess piece; In response to a triggering operation on a chess piece replacement control in the second prompt pop-up window, the target virtual chess piece in the first virtual chessboard is replaced with the candidate virtual chess piece based on the chess piece information of the candidate virtual chess piece.
9. The method according to any one of claims 1 to 5, characterized in that: The display mode of the first virtual chess piece in the first virtual chessboard is different from the display mode of the target virtual chess piece; The difference between the display modes of the first virtual chess piece and the target virtual chess piece includes at least one of the following: The chess piece orientation of the first virtual chess piece is different from the chess piece orientation of the target virtual chess piece; The transparency of the first virtual chess piece is different from the transparency of the target virtual chess piece; The color of the attribute bar of the first virtual chess piece is different from the color of the attribute bar of the target virtual chess piece; The target virtual chess piece is highlighted; The target virtual chess piece is surrounded by an account identifier of the opponent.
10. The method according to any one of claims 1 to 5, characterized in that: The virtual chessboard includes a first display area and a second display area, the first virtual chess piece is located in the first display area of the first virtual chessboard, and the second virtual chess piece is located in the second display area of the second virtual chessboard; The displaying of the first virtual chess piece and the target virtual chess piece through the first virtual chess board includes: The first virtual chess piece is displayed in the first display area of the first virtual chess board, and based on the chess piece information, the target virtual chess piece is displayed in the second display area of the first virtual chess board.
11. The method according to any one of claims 1 to 5, characterized in that: The step of obtaining the chess piece information of at least one target virtual chess piece in response to a marking operation on the target virtual chess piece includes: In response to a selection operation on the target virtual chess piece, a mark setting pop-up window corresponding to the target virtual chess piece is displayed, wherein the mark setting pop-up window includes a mark control; In response to a triggering operation on the mark control, the chess piece information of the target virtual chess piece is acquired.
12. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: In response to a mark stop operation, stopping display of a target virtual chess piece indicated by the mark stop operation; In response to the end of the battle preparation phase, the display of the target virtual chess piece on the first virtual chessboard is stopped.
13. A virtual chessboard display device, characterized in that: The device comprises: A first display module is configured to display a first virtual chessboard of Auto Chess, wherein the first virtual chessboard includes a first virtual chess piece; a second display module, configured to display a second virtual chessboard corresponding to a target opponent in response to a lineup viewing operation on the target opponent, wherein the second virtual chessboard includes second virtual chess pieces, and the number of the target opponent is at least one; a first acquisition module, configured to acquire, in response to a marking operation on at least one target virtual chess piece among the second virtual chess pieces, chess piece information of the target virtual chess piece; a third display module, configured to determine a chess piece state and a target chess piece position of the target virtual chess piece based on the chess piece information; In response to the chess piece status being that the chess piece exists and a virtual chess piece has been placed at the target chess piece position in the first virtual chess board, the first virtual chess piece and the target virtual chess piece are displayed through the first virtual chess board based on an upper limit for marked chess pieces, where the upper limit for marked chess pieces refers to the maximum number of virtual chess pieces that can be marked at the same chess piece position at the same time.
14. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the virtual chessboard display method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that At least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by the processor to implement the method for displaying a virtual chessboard according to any one of claims 1 to 12.
16. A computer program product or a computer program, characterized in that The computer program product or computer program includes computer instructions, which are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the virtual chessboard display method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Game display control method and device
CN113101660A
Virtual object position prompting method and device, terminal and storage medium
CN113198178A