Game control method, device and equipment, readable storage medium and program product
By using the terminal to display the target screen in chess games and converting the touch operation into vibration encoding, the problem of visually impaired users with low control accuracy in chess games is solved, and the experience of barrier-free chess is achieved.
Patent Information
- Application Number
- CN202311114261.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2025-02-28
AI Technical Summary
Visually impaired users need to concentrate on voice broadcasting in chess games, which affects the thinking of the chess game and makes it difficult to accurately control the game in noisy environments.
The game target screen is displayed by the terminal, the user's touch operation on screen elements is detected, and the touch operation is converted into vibration encoding based on the preset mapping relationship table, and the vibration signal is generated to reflect the operation, realizing barrier-free chess board operation and chess-playing assistance.
Users can sense the board status and chess movement information through vibration, improve the control accuracy of chess games, and achieve barrier-free chess experience.
Smart Images

Figure CN119524381A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a game control method, device, equipment, readable storage medium and program product. Background Art
[0002] In the prior art, in chess game scenarios, voice screen reading or voice input can help visually impaired users obtain the status of the chessboard and perform chessboard operations. However, since many chess and board game scenarios require a lot of voice content to be broadcast, visually impaired users must focus on the voice content, which affects their thinking about the chess game. At the same time, in some specific noisy environments, visually impaired users can easily hear the voice unclearly, resulting in low accuracy in controlling chess games by visually impaired users, which seriously affects their chess game experience. Summary of the invention
[0003] In view of the shortcomings of existing methods, the present application proposes a game control method, device, equipment, computer-readable storage medium and computer program product to solve the problem of how to improve the accuracy of visually impaired users in controlling chess games.
[0004] In a first aspect, the present application provides a game control method, comprising:
[0005] Display the target screen in the game through the terminal;
[0006] In response to the detected touch operation on the element in the target screen, convert the touch operation into a corresponding vibration code based on a preset mapping relationship table;
[0007] A corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal. The vibration signal is used to represent the touch operation on the element.
[0008] In one embodiment, displaying a target screen in a game through a terminal includes:
[0009] A target screen in a chess game is displayed through a terminal. The target screen includes multiple operation controls, multiple grids on a chessboard, and chess pieces of opposing sides on the chessboard. Any of the multiple grids is composed of vertical lines and horizontal lines, and the intersection of the vertical lines and the horizontal lines is the landing point of the chess piece on the chessboard.
[0010] In one embodiment, the types of vibration codes include at least one of vibration codes corresponding to numbers, vibration codes corresponding to move identifiers, vibration codes corresponding to chess pieces on the board, vibration codes corresponding to move information, and vibration codes corresponding to operation controls, and the move identifiers include at least one of chess pieces of opposing parties, states of chess pieces, and move states.
[0011] In one embodiment, the element is any one of a plurality of operation controls, and in response to a detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0012] In response to a detected touch operation on any operating control in the target screen, a vibration code corresponding to any operating control is determined based on a preset mapping relationship table;
[0013] Among them, the preset mapping relationship table includes a mapping relationship between any operation control and the vibration code corresponding to any operation control, the control type of any operation control is any one of a chess game operation type control, a system operation type control, and a confirmation and cancellation type control, and the sub-code combination representing the vibration frequency in the vibration code corresponding to any operation control is used to determine the control type.
[0014] In one embodiment, the element is a chess piece landing point on a chessboard, and in response to a detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0015] In response to the detected touch operation on the chess piece landing point in the target screen, determining the vibration code corresponding to the position coordinates of the chess piece landing point based on the preset mapping relationship table, where the type of the vibration code corresponding to the coordinates is a vibration code corresponding to a number;
[0016] The preset mapping relationship table includes a mapping relationship between values corresponding to position coordinates and vibration codes corresponding to numbers.
[0017] In one embodiment, the element is any chess piece of a plurality of chess pieces of one of the two opposing parties, and in response to a detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0018] In response to a detected touch operation on any chess piece in the target screen, a vibration code corresponding to any chess piece is determined based on a preset mapping relationship table, and the type of the vibration code corresponding to any chess piece is the vibration code corresponding to the chess piece on the chessboard.
[0019] In one embodiment, the touch operation on the element in the target screen is that any chess piece of a plurality of chess pieces of one of the two opposing parties moves from a first chess piece landing point to a second chess piece landing point. In response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0020] In response to detecting that any chess piece moves from a first chess piece landing point to a second chess piece landing point, based on a preset mapping relationship table, determining that the type of vibration code corresponding to the movement of any chess piece from the first chess piece landing point to the second chess piece landing point is the vibration code corresponding to the chess move information;
[0021] The move information includes any one of the following: any chess piece moving forward, any chess piece moving backward, any chess piece moving horizontally, and any chess piece capturing a piece.
[0022] In one embodiment, the vibration code is used to characterize the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment, and generating a corresponding vibration signal based on the vibration code includes:
[0023] A corresponding vibration signal is generated based on the vibration coding, wherein the vibration signal includes the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment.
[0024] In one embodiment, vibration code information sent by other terminals is received, the vibration code information including a target vibration code corresponding to a move of any chess piece among multiple chess pieces of the other party of the confrontation; a corresponding target vibration signal is generated based on the target vibration code, and the terminal is controlled to vibrate accordingly based on the target vibration signal, so as to prompt that any chess piece has moved.
[0025] In a second aspect, the present application provides a game control device, comprising:
[0026] The first processing module is used to display the target screen in the game through the terminal;
[0027] A second processing module, configured to respond to a detected touch operation on an element in a target screen and convert the touch operation into a corresponding vibration code based on a preset mapping relationship table;
[0028] The third processing module is used to generate a corresponding vibration signal based on the vibration code, and control the terminal to vibrate accordingly based on the vibration signal, wherein the vibration signal is used to represent the touch operation on the element.
[0029] In a third aspect, the present application provides an electronic device, including: a processor, a memory, and a bus;
[0030] A bus, used to connect the processor and memory;
[0031] A memory, used for storing operation instructions;
[0032] The processor is used to execute the game control method of the first aspect of the present application by calling an operation instruction.
[0033] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, and the computer program is used to execute the game control method of the first aspect of the present application.
[0034] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the game control method in the first aspect of the present application when the computer program is executed by a processor.
[0035] The technical solution provided in the embodiments of the present application has at least the following beneficial effects:
[0036] The target screen in the game is displayed through the terminal; in response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table; a corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; in this way, the user can intuitively obtain the relevant information of the chessboard positioning, the move of the player, and the move of the opponent through vibration without being affected by the external environment, so as to achieve barrier-free chess playing; the chessboard positioning is achieved, for example, the user (visually impaired user) is fed back through vibration the current selection area The board position, such as the invalid area outside the board, the specific positioning of the board, buttons, etc.; chess move assistance is implemented, for example, vibration feedback is used to provide feedback on whether the position of the chess piece selected by the user can be moved normally, the changes in the chessboard after the move, etc. The changes in the chessboard after the move are such as "eating an opponent's chess piece", "check", etc.; feedback on the opponent's moves is implemented, for example, vibration feedback is used to provide feedback on the opponent's moves (for example, "horse two to three"), the impact of the moves on the chess game (for example, eating one of our chess pieces, threatening our chess pieces, "check", etc.), etc.; vibration prompts are used in chess games to improve the accuracy of visually impaired users in controlling chess games. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.
[0038] Figure 1 A schematic diagram of the architecture of a game control system provided in an embodiment of the present application;
[0039] Figure 2 A flowchart of a game control method provided in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of game control provided in an embodiment of the present application;
[0041] Figure 4 A schematic diagram of game control provided in an embodiment of the present application;
[0042] Figure 5 A schematic diagram of game control provided in an embodiment of the present application;
[0043] Figure 6 A schematic diagram of game control provided in an embodiment of the present application;
[0044] Figure 7 A flowchart of a game control method provided in an embodiment of the present application;
[0045] Figure 8 A flowchart of a game control method provided in an embodiment of the present application;
[0046] Fig. 9 A schematic diagram of the structure of a game control device provided in an embodiment of the present application;
[0047] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0049] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" indicates that it is implemented as "A", or implemented as "B", or implemented as "A and B".
[0050] It is understandable that in the specific implementation of this application, data related to game control is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0052] The embodiment of the present application is a game control method provided by a recognition system, and the game control method relates to fields such as maps.
[0053] Intelligent Traffic System (ITS), also known as Intelligent Transportation System, effectively and comprehensively applies advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) to transportation, service control and vehicle manufacturing, strengthens the connection between vehicles, roads and users, and thus forms a comprehensive transportation system that ensures safety, improves efficiency, improves the environment and saves energy.
[0054] In order to better understand and illustrate the solutions of the embodiments of the present application, some technical terms involved in the embodiments of the present application are briefly explained below.
[0055] Chess: Chess uses a square grid chessboard with 32 round chess pieces, 16 red and 16 black pieces each, which are placed and moved at the intersections.
[0056] The solution provided in the embodiments of the present application relates to game control technology. The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0057] In order to better understand the solution provided by the embodiment of the present application, the solution is described below in conjunction with a specific application scenario.
[0058] In one embodiment, Figure 1 FIG. 1 shows a schematic diagram of the architecture of a game control system applicable to an embodiment of the present application. It can be understood that the game control method provided in the embodiment of the present application can be applicable to but not limited to applications such as Figure 1 In the application scenario shown.
[0059] In this example, Figure 1As shown, the architecture of the game control system in this example may include but is not limited to a server 10, multiple terminals 20 and a database 30. The server 10, multiple terminals 20 and the database 30 may interact with each other through a network 40. A target screen in the game is displayed through a terminal 20; the terminal 20 responds to the detected touch operation on the element in the target screen, and converts the touch operation into a corresponding vibration code based on a preset mapping relationship table; the terminal 20 generates a corresponding vibration signal based on the vibration code, and controls the terminal 20 to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; the terminal 20 receives vibration code information sent by other terminals 20 through the server 10, and the vibration code information includes a target vibration code corresponding to the move of any chess piece of the other party (the user corresponding to the terminal 20 and the user corresponding to the other terminal 20) of the two opposing parties (the user corresponding to the terminal 20 and the user corresponding to the other terminal 20); the terminal 20 generates a corresponding target vibration signal based on the target vibration code, and controls the terminal 20 to vibrate accordingly based on the target vibration signal, so as to prompt that any chess piece has moved. The database 30 stores a preset mapping relationship table.
[0060] It is understandable that the above is only an example and this embodiment is not limited here.
[0061] Among them, terminals include but are not limited to smart phones (such as Android phones, iOS phones, etc.), mobile phone simulators, tablet computers, laptops, digital broadcast receivers, MIDs (Mobile Internet Devices), PDAs (Personal Digital Assistants), intelligent voice interaction devices, smart home appliances, car terminals, etc.
[0062] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server or server cluster that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0063] Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, allowing various application systems to obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". From the user's perspective, the resources in the "cloud" are infinitely scalable and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0064] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0065] According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. SaaS can also be deployed directly on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.
[0066] The so-called artificial intelligence cloud service is generally also called AIaaS (AI as a Service). This is the service mode of a mainstream artificial intelligence platform. Specifically, the AIaaS platform will split several common AI services and provide independent or packaged services in the cloud. This service model is similar to opening an AI theme mall: all developers can access and use one or more artificial intelligence services provided by the platform through the API interface. Some senior developers can also use the AI framework and AI infrastructure provided by the platform to deploy and operate their own cloud artificial intelligence services.
[0067] The above network may include but is not limited to: wired network, wireless network, wherein the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, Wi-Fi and other networks that realize wireless communication. The specific can also be determined based on the actual application scenario requirements and is not limited here.
[0068] See also Figure 2 , Figure 2 The flowchart of a game control method provided by an embodiment of the present application is shown, wherein the method can be executed by any electronic device, such as a terminal, etc. As an optional implementation, the method can be executed by a terminal. For the convenience of description, in the description of some optional embodiments below, the terminal will be used as an example to illustrate the execution subject of the method. Figure 2 As shown, the game control method provided in the embodiment of the present application includes the following steps:
[0069] S201, displaying a target screen in the game through a terminal.
[0070] Specifically, the visually impaired user displays the target screen in the game through the client on the terminal, and the game is such as a chess game, and the chess game is such as a chess game. Figure 3 and Figure 4 The target screen in the chess game shown includes a chess board, chess pieces on the board, etc. The chess board is composed of a grid of 9 (vertical lines) × 10 (horizontal lines), wherein the vertical lines are counted from 1 from the right side of the visually impaired user's position, with a total of 9 vertical lines, and the horizontal lines are counted from 1 from the bottom of the user's position, with a total of 10 horizontal lines. The intersection of any vertical line and any horizontal line is the landing point of the chess piece on the chess board.
[0071] S202 : In response to a detected touch operation on an element in a target screen, convert the touch operation into a corresponding vibration code based on a preset mapping relationship table.
[0072] Specifically, the touch operation is such as a visually impaired user clicking on chess pieces on a chessboard in a chess game, for example, Figure 3 As shown in the figure, the visually impaired user clicks on the chess piece "rook" on the chessboard in the chess game. The chess piece lands at point A, and the coordinate point of point A is (6, 8). In (6, 8), 6 indicates that the vertical line position of the "rook" is the 6th vertical line, and 8 indicates that the horizontal line position of the "rook" is the 8th horizontal line. The elements in the target screen include the chess pieces on the chessboard in the chess game, the places where the chess pieces land on the chessboard, etc.
[0073] S203, generating a corresponding vibration signal based on the vibration code, and controlling the terminal to vibrate accordingly based on the vibration signal, wherein the vibration signal is used to represent the touch operation on the element.
[0074] Specifically, the vibration signal may include the vibration frequency, vibration intensity, vibration duration, etc.; based on the vibration signal, the terminal controls the motor of the terminal to vibrate accordingly, and prompts the visually impaired user through the vibration, thereby improving the accuracy of the visually impaired user in controlling chess games.
[0075] In the embodiment of the present application, a target screen in the game is displayed through a terminal; in response to a detected touch operation on an element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table; a corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; in this way, the user can intuitively obtain relevant information on chessboard positioning, our moves, and the opponent's moves through vibration without being affected by the external environment, thereby achieving barrier-free chess playing; chessboard positioning is achieved, for example, the user (visually impaired user) is fed back the current selection through vibration. The system can also provide feedback on the chessboard position of the selected area, such as the invalid area outside the chessboard, the specific positioning of the chessboard, buttons, etc.; it realizes chess move assistance, for example, through vibration feedback whether the position of the chess piece selected by the user can be moved normally, the changes on the chessboard after the move, etc. The changes on the chessboard after the move are such as "eating an opponent's chess piece" and "check", etc.; it realizes feedback on the opponent's moves, for example, through vibration feedback on the opponent's moves (such as "horse two to three"), the impact of the move on the chess game (such as eating one of our chess pieces, threatening our chess pieces, "check", etc.); through vibration prompts in chess games, the accuracy of visually impaired users in controlling chess games can be improved.
[0076] In one embodiment, displaying a target screen in a game through a terminal includes:
[0077] A target screen in a chess game is displayed through a terminal. The target screen includes multiple operation controls, multiple grids on a chessboard, and chess pieces of opposing sides on the chessboard. Any of the multiple grids is composed of vertical lines and horizontal lines, and the intersection of the vertical lines and the horizontal lines is the landing point of the chess piece on the chessboard.
[0078] Specifically, for example, Figure 5 The target screen in the chess game shown includes multiple operation controls, multiple grids on the chess board, chess pieces facing each other on the chess board, etc. The operation controls are function buttons, such as draw (seeking a draw), surrender, regret, exit, voice instructions (turn on voice), microphone (turn on microphone), confirm, cancel, etc. Among them, if the confirmation of the previous operation needs to be confirmed again, a confirmation button or a cancel button will pop up in the client. For example, Figure 5 The point A is in the invalid area. Figure 5 Point B (7, 8) is shown in the blank area. Figure 3 The black chess "soldier" at point C (7, 4) is our chess piece, and the red chess "soldier" at point D (5, 8) is the opponent's chess piece.
[0079] In one embodiment, the types of vibration codes include at least one of vibration codes corresponding to numbers, vibration codes corresponding to move identifiers, vibration codes corresponding to chess pieces on the board, vibration codes corresponding to move information, and vibration codes corresponding to operation controls, and the move identifiers include at least one of chess pieces of opposing parties, states of chess pieces, and move states.
[0080] Specifically, the vibration coding needs to identify the vibration frequency, vibration intensity, vibration duration, etc., and there can be long vibration or short vibration implementation methods. The vibration coding is as follows:
[0081] {len, [{freq, intensity, duration}, {freq, intensity, duration}, {freq, intensity, duration}, {freq, intensity, duration}]}
[0082] Among them, len is an 8-byte positive integer, and len represents the number of vibration segments; if len is 1, it means that the vibration is a short vibration; if len is greater than 1, it means that the vibration is a long vibration. For example, if len is 4, it means that the long vibration is described by 4 consecutive vibration segments; Freq is an 8-byte integer, and Freq represents the vibration frequency; Intensity is an 8-byte integer, and Intensity represents the vibration intensity; Duration is an 8-byte integer, and Duration represents the vibration duration.
[0083] In one embodiment, for the vibration coding corresponding to the numbers, the numbers need to be 10 numbers from 1 to 10. In order to reduce the user's learning cost, the vibration effects of the three numbers 1, 2, and 5 are designed, and the other numbers 3, 4, 6, 7, 8, 9, and 10 are composed of these three numbers. The numbers 1-10 are 1 (1), 2 (2), 3 (2, 1), 4 (2, 2), 5 (5), 6 (5, 1), 7 (5, 2), 8 (5, 2, 1), 9 (5, 2, 2), and 10 (5, 5); for example, 9 (5, 2, 2) represents the continuous vibration of the number 5, the vibration of the number 2, and the vibration of the number 2, that is, the above three consecutive vibrations are used to represent the vibration of 9.
[0084] The vibration code of the number 1 is represented by a high-frequency short vibration, and the vibration code of the number 1 is {1, [{80, 50, 200}]}; among them, the number 1 in {1, [{80, 50, 200}]} indicates that the vibration is a short vibration, 80 in the vibration code of the number 1 indicates that the vibration frequency is 80, 50 in the vibration code of the number 1 indicates that the vibration intensity is 50, and 200 in the vibration code of the number 1 indicates that the vibration duration is 200ms.
[0085] The vibration code of the number 2 is represented by a short low-frequency vibration. The vibration code of the number 2 is {1, [{30, 50, 200}]}.
[0086] The vibration code of the number 5 is represented by a long vibration, and the vibration code of the number 5 is {4, [{20, 30, 100}, {40, 50, 100}, {40, 60, 100}, {50, 80, 100}]}; among them, the number 4 in the vibration code of the number 5 indicates that the vibration is a long vibration, and the 4 consecutive vibration segments {20, 30, 100}, {40, 50, 100}, {40, 60, 100} and {50, 80, 100} in the vibration code of the number 5 represent the changing process of the vibration.
[0087] In one embodiment, the vibration codes corresponding to the move identifiers are shown in Table 1, where the chess pieces of the opposing parties are such as the opponent's chess pieces and our chess pieces, the status of the chess pieces is such as danger, and the move status is such as no chess piece, reachable, unreachable, checkmate, etc.
[0088] Table 1: Vibration codes corresponding to move markers
[0089]
[0090] It should be noted that the area outside the chessboard is invalid, that is, it is unreachable; visually impaired users cannot operate in the invalid area. Generally, in order to remind visually impaired users, "unreachable" can correspond to a low but recognizable vibration, so that visually impaired users can be reminded that this is an invalid area.
[0091] In one embodiment, the vibration codes corresponding to the chess pieces on the chessboard are shown in Table 2, wherein the chess pieces on the chessboard include a general, a scholar, an minister, a horse, a chariot, a cannon, a soldier, etc.
[0092] Table 2: Vibration codes corresponding to chess pieces on the board
[0093]
[0094] It should be noted that after a visually impaired user selects a coordinate (the point where the chess piece lands), if there is a chess piece at that coordinate, it is necessary to clearly inform the visually impaired user through vibration whether the chess piece at that coordinate is our chess piece or the opponent's chess piece, as well as the specific name of the chess piece at that coordinate. The specific name of the chess piece may be a chariot, horse, prime minister, scholar, general, cannon, soldier, etc.
[0095] In one embodiment, the vibration coding corresponding to the chess move information is shown in Table 3:
[0096] Table 3: Vibration encoding corresponding to chess move information
[0097]
[0098] In one embodiment, since the visually impaired user cannot see the screen information clearly, when the visually impaired user selects the corresponding button (operation control), the corresponding vibration of the operation control is used to inform the visually impaired user of the corresponding button function. After the visually impaired user determines that it is the function he needs, the visually impaired user triggers the corresponding button function by double-clicking.
[0099] The functions corresponding to the buttons (operation controls) are divided into three categories, namely chess game operation controls, system operation controls, and confirmation and cancellation controls. Different categories can be represented by specific frequency combinations, and then different buttons in the same category can be represented by specific intensity changes. Among them, the vibration codes corresponding to chess game operation controls are shown in Table 4:
[0100] Table 4: Vibration codes corresponding to chess game operation controls
[0101]
[0102] The vibration codes corresponding to the system operation controls are shown in Table 5:
[0103] Table 5: Vibration codes corresponding to system operation controls
[0104]
[0105] The vibration codes corresponding to the confirmation and cancellation controls are shown in Table 6. For example, a visually impaired user clicks the "Exit Game" button, the client pops up a confirmation message, and corresponding vibrations occur, and the user then clicks the "Confirm" button.
[0106] Table 6: Cancel vibration code corresponding to the control
[0107]
[0108] In one embodiment, the element is any one of a plurality of operation controls, and in response to a detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0109] In response to a detected touch operation on any operating control in the target screen, a vibration code corresponding to any operating control is determined based on a preset mapping relationship table;
[0110] Among them, the preset mapping relationship table includes a mapping relationship between any operation control and the vibration code corresponding to any operation control, the control type of any operation control is any one of a chess game operation type control, a system operation type control, and a confirmation and cancellation type control, and the sub-code combination representing the vibration frequency in the vibration code corresponding to any operation control is used to determine the control type.
[0111] Specifically, for example, in response to a detected touch operation on an operation control in a target screen, based on a mapping relationship table as shown in Table 4, Table 5 or Table 6, a vibration code corresponding to the operation control is determined. For example, as shown in Table 4, in response to a detected touch operation on an operation control “Sum” in a target screen, based on a mapping relationship table as shown in Table 4, a vibration code {4, [{20, 20, 50}, {40, 40, 50}, {60, 40, 50}, {80, 20, 50}]} corresponding to the operation control “Sum” is determined; wherein the mapping relationship table includes the operation control “Sum” and the vibration code {4, [{20, 20, 50}, {40, 40, 50}, {60, 40, 50}, {80, 20, 50}]}, the control type of the operation control "sum" is a chess game operation control, and the sub-code combinations representing the vibration frequencies in the vibration code {4, [{20, 20, 50}, {40, 40, 50}, {60, 40, 50}, {80, 20, 50}]} corresponding to the operation control "sum" (the frequency combination of 20, 40, 60 and 80 in the vibration code corresponding to the operation control "sum") are used to represent the control type of the operation control "sum", that is, a chess game operation control.
[0112] In one embodiment, the element is a chess piece landing point on a chessboard, and in response to a detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0113] In response to the detected touch operation on the chess piece landing point in the target screen, determining the vibration code corresponding to the position coordinates of the chess piece landing point based on the preset mapping relationship table, where the type of the vibration code corresponding to the coordinates is a vibration code corresponding to a number;
[0114] The preset mapping relationship table includes a mapping relationship between values corresponding to position coordinates and vibration codes corresponding to numbers.
[0115] Specifically, for example, in response to a detected touch operation on a chess piece landing point (9, 10) in a target screen, the vibration code corresponding to the position coordinates of the chess piece landing point (9, 10) is determined based on a mapping relationship table, and the values corresponding to the position coordinates of the chess piece landing point (9, 10) are 9 and 10, respectively, that is, the vibration corresponding to the number 9 is performed first, and then the vibration corresponding to the number 10 is performed; wherein, 9 (5, 2, 2) represents the continuous vibration of the number 5, the vibration of the number 2, and the vibration of the number 2, that is, the above three continuous vibrations are used to represent the vibration of the number 9; 10 (5, 5) represents the continuous vibration of the number 5 and the vibration of the number 5, that is, the above two continuous vibrations are used to represent the vibration of the number 10.
[0116] In one embodiment, the element is any chess piece of a plurality of chess pieces of one of the two opposing parties, and in response to a detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0117] In response to a detected touch operation on any chess piece in the target screen, a vibration code corresponding to any chess piece is determined based on a preset mapping relationship table, and the type of the vibration code corresponding to any chess piece is the vibration code corresponding to the chess piece on the chessboard.
[0118] Specifically, for example, in response to a detected touch operation on a chess piece "Soldier" in the target screen, based on the mapping relationship table shown in Table 2, the vibration code corresponding to the chess piece "Soldier" is determined to be {4, [{80, 50, 50}, {50, 70, 50}, {40, 60, 50}, {80, 50, 50}]}.
[0119] In one embodiment, the touch operation on the element in the target screen is that any chess piece of a plurality of chess pieces of one of the two opposing parties moves from a first chess piece landing point to a second chess piece landing point. In response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including:
[0120] In response to detecting that any chess piece moves from a first chess piece landing point to a second chess piece landing point, based on a preset mapping relationship table, determining that the type of vibration code corresponding to the movement of any chess piece from the first chess piece landing point to the second chess piece landing point is the vibration code corresponding to the chess move information;
[0121] The move information includes any one of the following: any chess piece moving forward, any chess piece moving backward, any chess piece moving horizontally, and any chess piece capturing a piece.
[0122] Specifically, for example, a visually impaired user clicks on the chess piece "Knight" located at the chess piece landing point (8, 3), and vibrations corresponding to "(8, 3)", "our chess piece", and "Knight" occur in sequence; a visually impaired user clicks on the chess piece landing point (6, 4), and because the opponent's chess piece "Cannon" is at the chess piece landing point (6, 4), vibrations corresponding to "(6, 4)", "the opponent's chess piece", and "Cannon" occur in sequence; a visually impaired user double-clicks (clicks twice in a row) at any position on the chessboard, and the "Knight" moves from the chess piece landing point (8, 3) to the chess piece landing point (6, 4), and eats the "Cannon" at the chess piece landing point (6, 4), and vibrations corresponding to "our chess piece", "Knight", "8", "advance", "6", "eat piece", "the opponent's chess piece", and "Cannon" occur in sequence, that is, the vibration of "Knight 8 moves forward to 6 and eats cannon".
[0123] In one embodiment, the vibration code is used to characterize the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment, and generating a corresponding vibration signal based on the vibration code includes:
[0124] A corresponding vibration signal is generated based on the vibration coding, wherein the vibration signal includes the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment.
[0125] Specifically, the vibration coding needs to identify the vibration frequency, vibration intensity, vibration duration, etc., and there can be long vibration or short vibration implementation methods. The vibration coding is as follows:
[0126] {len, [{freq, intensity, duration}, {freq, intensity, duration}, {freq, intensity, duration}, {freq, intensity, duration}]}
[0127] Among them, len is an 8-byte positive integer, len represents the number of vibration segments. If len is 1, it means that the vibration is a short vibration. If len is greater than 1, it means that the vibration is a long vibration. Freq is an 8-byte integer, Freq represents the vibration frequency; Intensity is an 8-byte integer, Intensity represents the vibration intensity, and Duration is an 8-byte integer, Duration represents the vibration duration.
[0128] For example, when len is 4, it means that the long vibration is described by 4 consecutive vibration segments. The corresponding vibration signal is generated based on the vibration coding. The vibration signal includes the number of vibration segments 4, the vibration frequency of each of the 4 vibration segments, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment.
[0129] In one embodiment, vibration code information sent by other terminals is received, the vibration code information including a target vibration code corresponding to a move of any chess piece among multiple chess pieces of the other party of the confrontation; a corresponding target vibration signal is generated based on the target vibration code, and the terminal is controlled to vibrate accordingly based on the target vibration signal, so as to prompt that any chess piece has moved.
[0130] Specifically, other terminals send vibration code information to the server, and the server forwards the vibration code information to the terminal.
[0131] For example, Figure 4As shown, the opponent's knight (red chess piece) moves from chess piece landing point A (9, 3) to chess piece landing point C (7, 2), and vibrations corresponding to "knight", "nine", "advance", "seven", and "check" occur in sequence, that is, knight nine advances seven to check; the vibration code information sent by other terminals (opposite parties) includes the vibration code corresponding to "knight nine advances seven to check".
[0132] For example, a visually impaired user A controls a game of chess through the client of terminal A. The other party playing chess is another user B, who controls the game through the client of terminal B. User B operates "Knight Nine Advances Seven, General". The client of terminal B transfers the information "Knight Nine Advances Seven, General" to the client of terminal A through the game server, and the client of terminal A notifies the visually impaired user A of the information "Knight Nine Advances Seven, General" through vibration.
[0133] In one embodiment, the visually impaired user moves the chess pieces by himself and selects the pieces he wants to move. Since the visually impaired user cannot see the chessboard, a vibration feedback is required to be given to the visually impaired user during this process. Figure 5 As shown, point A represents an invalid area. If a visually impaired user clicks point A, the vibration corresponding to the invalid area is triggered; point B represents a blank area. If a visually impaired user clicks point B, the vibration corresponding to the chess piece landing point (7, 8) is triggered; point C represents our chess piece. If a visually impaired user clicks point C, the vibrations corresponding to the chess piece landing point (7, 4), "our chess piece", and "soldier" are triggered in sequence; point D represents the opponent's chess piece. If a visually impaired user clicks point D, the vibrations corresponding to the chess piece landing point (5, 8), "the opponent's chess piece", and "soldier" are triggered in sequence; point E represents the function key "Propose a draw". If a visually impaired user clicks point E, the vibration corresponding to the function key "Propose a draw" is triggered.
[0134] The visually impaired user finds the position to make the move. The areas selected by the visually impaired user include invalid areas, button areas, blank grids that do not comply with the rules of chess, blank grids that comply with the rules of chess, our chess pieces, opponent chess pieces, positions that can capture opponent chess pieces, positions that can be checkmated, etc.
[0135] For example, Figure 6 As shown in the figure, if a visually impaired user selects his own chess piece, he will have to choose where to move to next, including the following situations:
[0136] Point A: The position where chess can be played normally. The vibrations triggered are the vibrations corresponding to the chess piece landing point (8, 8), "chess piece" and "reachable" in order;
[0137] Point B: The position where the chess piece cannot be moved. The vibration effects triggered are the chess piece landing point (7, 7) and the vibration corresponding to "unreachable";
[0138] Point C: The position where you can move chess normally and capture the opponent's "Xiang". The vibration effects triggered are the vibrations corresponding to the chess piece landing point (5, 8), "the opponent's chess piece" and "Xiang" in turn;
[0139] Point D: The position where you can move chess and checkmate. The vibration effects triggered are the vibrations corresponding to the chess piece landing point (9, 10), "no chess piece" and "checkmate" in order;
[0140] Point E: A position where chess can be moved but there is danger. The vibration effects triggered are the vibrations corresponding to the chess piece landing point (6, 8), "no chess piece" and "danger".
[0141] In one embodiment, a simple and easy-to-learn vibration effect is defined, and key simple information is fed back through vibration, which is independent of voice and more convenient. Vibration information (vibration signal) and voice output cooperate with each other, and key simple information is fed back through vibration, which can be more efficient and independent of the external environment. Complex information is fed back through voice, which reduces the user's learning cost for vibration effects. Vibration reminds the user of operation information (for example, our or the opponent's chess move information), which is not only more intuitive, but also independent of the surrounding environment, so that the user's overall experience can be greatly improved.
[0142] The application of the embodiments of the present application has at least the following beneficial effects:
[0143] The target screen in the game is displayed through the terminal; in response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table; a corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; in this way, chessboard positioning is achieved, for example, the chessboard position of the current selected area of the user (visually impaired user) is fed back through vibration, such as the invalid area outside the chessboard, the specific positioning of the chessboard, buttons, etc.; chess moving assistance is achieved, for example, whether the position of the chess piece selected by the user can be moved normally, the changes in the chessboard after the move, etc., the changes in the chessboard after the move, such as "eating an opponent's chess piece", "check", etc.; feedback on the opponent's chess move is achieved, for example, the situation of the opponent's chess move (such as "horse two to three"), the impact of the move on the chess game (such as eating one of our chess pieces, threatening our chess pieces, "check", etc.) are fed back through vibration; through vibration prompts in chess games, the accuracy of visually impaired users in controlling chess games is improved.
[0144] In order to better understand the method provided in the embodiment of the present application, the scheme of the embodiment of the present application is further explained below with reference to examples of specific application scenarios.
[0145] In a specific application scenario embodiment, for example, the chess game scenario, see Figure 7, shows a processing flow of a game control method, such as Figure 7 As shown, the processing flow of the game control method provided in the embodiment of the present application includes the following steps:
[0146] S701: A user performs a touch operation on a screen of a terminal.
[0147] Specifically, the user is, for example, a visually impaired user, and the screen of the terminal displays a target screen, which is a screen displayed by a game client of the terminal. The visually impaired user performs a touch operation on the target screen.
[0148] S702, the game client determines the element on the screen selected by the user's touch operation.
[0149] Specifically, since the user cannot see the screen on the terminal clearly, it is necessary to determine the element on the screen selected by the user's touch operation, that is, the element on the target screen, through the game client.
[0150] It should be noted that if the user selects an invalid area on the screen, the terminal will directly inform the user of relevant information through the vibration corresponding to the invalid area, and the user-related information includes the invalid area; if the user selects a position on the screen where there is no chess piece, the terminal will directly inform the user of the position (coordinates) where there is no chess piece through the vibration corresponding to the position where there is no chess piece.
[0151] S703: If the game client determines that the user has selected the opponent's chess piece, the terminal vibrates accordingly.
[0152] Specifically, if the user selects an opponent's chess piece, the terminal will inform the user that the chess piece is an "opponent's chess piece" through the vibration corresponding to the "opponent's chess piece", inform the user of the type of the chess piece (for example, "soldier") through the vibration corresponding to the type of the chess piece, and inform the user of the position (coordinates) of the chess piece through the vibration corresponding to the position of the chess piece (for example, the chess piece landing point (5, 8)).
[0153] S704: If the game client determines that the user has selected a key, the terminal informs the user of the specific type of the key through the vibration corresponding to the key.
[0154] Specifically, if the user selects a key, the terminal informs the user of the specific type of the key through the vibration corresponding to the key, and the specific type of the key is, for example, exiting the game.
[0155] S705, the user determines whether the selected key is the expected key; if the user determines that the selected key is not the expected key, the user restarts the touch operation.
[0156] Specifically, after the user obtains the specific type of the key through vibration, the user determines whether the key selected in step S704 is the expected touch operation, that is, whether the key is the key expected by the user; if the user determines that the selected key is not the expected key, the user restarts the touch operation, that is, executes S701.
[0157] S706: If the user determines that the selected button is the button expected by the user, the user directly triggers the button by double-clicking, and the game client responds to the user's touch operation according to the actual function of the button.
[0158] S707: If the game client determines that the chess piece selected by the user is our chess piece, the terminal vibrates accordingly.
[0159] Specifically, if the user selects our chess piece, the terminal will inform the user that the chess piece is our chess piece through the vibration corresponding to our chess piece, inform the user of the type of the chess piece (for example, "soldier") through the vibration corresponding to the type of the chess piece, and inform the user of the position (coordinates) of the chess piece through the vibration corresponding to the position of the chess piece (for example, the chess piece landing point (5, 8)).
[0160] S708, the user selects a move position.
[0161] Specifically, the user determines whether the chess piece is the chess piece the user wants to move. If the chess piece is not the chess piece the user wants to move, the process is restarted; if the chess piece is the chess piece the user wants to move, the user starts to locate the position where the chess piece is to be moved, that is, the user chooses the position to move the chess piece.
[0162] S709, the game client determines whether the move position is a valid move position.
[0163] Specifically, after the user selects a chess move position (chess piece landing point), the game client automatically determines whether the chess move position is a valid chess move position.
[0164] S710: If it is determined that it is not a valid move position, the game client prompts the user to reselect.
[0165] Specifically, the game client can inform the user of the currently selected position information, such as the selected chess move position (chess piece landing point), etc. through the vibration generated by the terminal.
[0166] S711: If it is determined that the move position is a valid move position, the terminal notifies the user of relevant information through vibration.
[0167] Specifically, relevant information includes, for example, the position of the move (coordinate position, i.e., the point where the chess piece lands), whether there is an opponent's chess piece at the move position, and the type of the opponent's chess piece.
[0168] S712: The user confirms the move by double-clicking according to the vibration generated by the terminal.
[0169] S713, the game client responds to the user's move.
[0170] S714, the terminal informs the user of relevant information after the move through vibration.
[0171] Specifically, relevant information after a move includes whether the opponent's piece is captured, whether the move is a checkmate, whether the game is won, etc.
[0172] S715, after the move is completed, the user waits for the other party to respond.
[0173] In a specific application scenario embodiment, for example, in a chess game scenario, after a move is completed, the user interacts while waiting for the other party to respond. Figure 8 , shows a processing flow of a game control method, such as Figure 8 As shown, the processing flow of the game control method provided in the embodiment of the present application includes the following steps:
[0174] S801, the user performs a touch operation while waiting for the other party to respond.
[0175] Specifically, the user is, for example, a visually impaired user, and the screen of the terminal displays a target screen, which is a screen displayed by a game client of the terminal. The visually impaired user performs a touch operation on the target screen.
[0176] S802: The game client determines the element on the screen selected by the user.
[0177] Specifically, after the user touches the screen of the terminal, the game client of the terminal determines the element on the screen selected by the user.
[0178] S803: If the game client determines that the user has selected a chess piece, the terminal notifies the user of relevant information through vibration.
[0179] Specifically, the relevant information includes the position of chess pieces, identification of the enemy and us (our chess pieces or the opponent's chess pieces), the type of chess pieces, etc. The types of chess pieces include generals, scholars, ministers, horses, chariots, cannons, soldiers, etc.
[0180] The terminal informs the user that the chess piece is our chess piece through the vibration corresponding to the chess piece, informs the user of the type of the chess piece (for example, "soldier") through the vibration corresponding to the type of the chess piece, and informs the user of the position (coordinates) of the chess piece through the vibration corresponding to the position of the chess piece (for example, the chess piece landing point (5, 8)).
[0181] The terminal informs the user that the chess piece is an "opponent chess piece" through the vibration corresponding to the "opponent chess piece", informs the user of the type of the chess piece (for example, "soldier") through the vibration corresponding to the type of the chess piece, and informs the user of the position (coordinates) of the chess piece through the vibration corresponding to the position of the chess piece (for example, the chess piece landing point (5, 8)).
[0182] S804: If the game client determines that the user has selected an invalid position, the terminal notifies the user through vibration.
[0183] Specifically, for example, Figure 3 As shown, point A represents an invalid area. If a visually impaired user clicks point A, vibration corresponding to the invalid area is triggered; an invalid position is, for example, an invalid area.
[0184] S805: If the game client determines that the user has selected a key, the terminal informs the user of the specific type of the key through vibration.
[0185] Specifically, the specific type of the button is any one of a chess game operation type control, a system operation type control, and a confirmation and cancellation type control.
[0186] S806: The user determines whether the key is the key expected by the user.
[0187] Specifically, after the user identifies the specific type of the key according to the vibration, it is determined whether the key is the key expected by the user. If the key is not the expected key, the user continues to repeat the touch operation on the screen until the expected key is selected, or the other party completes the move and enters the state as shown in the figure. Figure 7 The chess process shown.
[0188] S807: If the user determines that the button is the button expected by the user, the user double-clicks to execute the button operation, and the game client responds to the button operation.
[0189] S808: The terminal informs the user of the corresponding key operation result through vibration.
[0190] Specifically, after the user completes the key operation, the terminal informs the user of the corresponding key operation result through vibration.
[0191] The application of the embodiments of the present application has at least the following beneficial effects:
[0192] The target screen in the chess game is displayed through the terminal; in response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table; a corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; in this way, the user can intuitively obtain the relevant information of the chessboard positioning, the move of the player, and the move of the opponent through vibration without being affected by the external environment, so as to achieve barrier-free chess playing; the chessboard positioning is achieved, for example, the current selection area of the user (visually impaired user) is fed back through vibration The chessboard position, such as the invalid area outside the chessboard, the specific positioning of the chessboard, buttons, etc.; chess move assistance is realized, for example, vibration feedback is used to provide feedback on whether the position of the chess piece selected by the user can be moved normally, the changes on the chessboard after the move, etc. The changes on the chessboard after the move are such as "eating an opponent's chess piece" and "checkmate", etc.; feedback on the opponent's moves is realized, for example, vibration feedback is used to provide feedback on the opponent's moves (such as "horse two to three"), the impact of the moves on the chess game (such as eating one of our chess pieces, threatening our chess pieces, "checkmate", etc.); vibration prompts are used in the chess game to improve the accuracy of visually impaired users in controlling the chess game.
[0193] The present application also provides a game control device. The structural diagram of the game control device is as follows: Fig. 9 As shown, the game control device 90 includes a first processing module 901 , a second processing module 902 and a third processing module 903 .
[0194] The first processing module 901 is used to display the target screen in the game through the terminal;
[0195] The second processing module 902 is used to respond to the detected touch operation on the element in the target screen and convert the touch operation into a corresponding vibration code based on a preset mapping relationship table;
[0196] The third processing module 903 is used to generate a corresponding vibration signal based on the vibration code, and control the terminal to vibrate accordingly based on the vibration signal, where the vibration signal is used to represent the touch operation on the element.
[0197] In one embodiment, the first processing module 901 is specifically configured to:
[0198] A target screen in a chess game is displayed through a terminal. The target screen includes multiple operation controls, multiple grids on a chessboard, and chess pieces of opposing sides on the chessboard. Any of the multiple grids is composed of vertical lines and horizontal lines, and the intersection of the vertical lines and the horizontal lines is the landing point of the chess piece on the chessboard.
[0199] In one embodiment, the types of vibration codes include at least one of vibration codes corresponding to numbers, vibration codes corresponding to move identifiers, vibration codes corresponding to chess pieces on the board, vibration codes corresponding to move information, and vibration codes corresponding to operation controls, and the move identifiers include at least one of chess pieces of opposing parties, states of chess pieces, and move states.
[0200] In one embodiment, the element is any one of a plurality of operation controls, and the second processing module 902 is specifically configured to:
[0201] In response to a detected touch operation on any operating control in the target screen, a vibration code corresponding to any operating control is determined based on a preset mapping relationship table;
[0202] Among them, the preset mapping relationship table includes a mapping relationship between any operation control and the vibration code corresponding to any operation control, the control type of any operation control is any one of a chess game operation type control, a system operation type control, and a confirmation and cancellation type control, and the sub-code combination representing the vibration frequency in the vibration code corresponding to any operation control is used to determine the control type.
[0203] In one embodiment, the element is a chess piece landing point on a chessboard, and the second processing module 902 is specifically configured to:
[0204] In response to the detected touch operation on the chess piece landing point in the target screen, determining the vibration code corresponding to the position coordinates of the chess piece landing point based on the preset mapping relationship table, where the type of the vibration code corresponding to the coordinates is a vibration code corresponding to a number;
[0205] The preset mapping relationship table includes a mapping relationship between values corresponding to position coordinates and vibration codes corresponding to numbers.
[0206] In one embodiment, the element is any chess piece of a plurality of chess pieces of one of the two opposing parties, and the second processing module 902 is specifically configured to:
[0207] In response to a detected touch operation on any chess piece in the target screen, a vibration code corresponding to any chess piece is determined based on a preset mapping relationship table, and the type of the vibration code corresponding to any chess piece is the vibration code corresponding to the chess piece on the chessboard.
[0208] In one embodiment, the touch operation on the element in the target screen is that any chess piece of a plurality of chess pieces of one of the two opposing parties moves from a first chess piece landing point to a second chess piece landing point, and the second processing module 902 is specifically configured to:
[0209] In response to detecting that any chess piece moves from a first chess piece landing point to a second chess piece landing point, based on a preset mapping relationship table, determining that the type of vibration code corresponding to the movement of any chess piece from the first chess piece landing point to the second chess piece landing point is the vibration code corresponding to the chess move information;
[0210] The move information includes any one of the following: any chess piece moving forward, any chess piece moving backward, any chess piece moving horizontally, and any chess piece capturing a piece.
[0211] In one embodiment, the vibration code is used to characterize the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment. The third processing module 903 is specifically used to:
[0212] A corresponding vibration signal is generated based on the vibration coding, wherein the vibration signal includes the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment.
[0213] In one embodiment, the third processing module 903 is further configured to:
[0214] Receive vibration code information sent by other terminals, where the vibration code information includes a target vibration code corresponding to a move of any chess piece among multiple chess pieces of the other party of the confrontation; generate a corresponding target vibration signal based on the target vibration code, and control the terminal to vibrate accordingly based on the target vibration signal, so as to prompt that any chess piece has moved.
[0215] The application of the embodiments of the present application has at least the following beneficial effects:
[0216] The target screen in the game is displayed through the terminal; in response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table; a corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; in this way, the user can intuitively obtain the relevant information of the chessboard positioning, the move of the player, and the move of the opponent through vibration without being affected by the external environment, so as to achieve barrier-free chess playing; the chessboard positioning is achieved, for example, the user (visually impaired user) is fed back through vibration the current selection area The board position, such as the invalid area outside the board, the specific positioning of the board, buttons, etc.; chess move assistance is implemented, for example, vibration feedback is used to provide feedback on whether the position of the chess piece selected by the user can be moved normally, the changes in the chessboard after the move, etc. The changes in the chessboard after the move are such as "eating an opponent's chess piece", "check", etc.; feedback on the opponent's moves is implemented, for example, vibration feedback is used to provide feedback on the opponent's moves (for example, "horse two to three"), the impact of the moves on the chess game (for example, eating one of our chess pieces, threatening our chess pieces, "check", etc.), etc.; vibration prompts are used in chess games to improve the accuracy of visually impaired users in controlling chess games.
[0217] The present application also provides an electronic device. The structural diagram of the electronic device is as follows: Fig.10 As shown, Fig.10 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0218] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0219] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0220] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0221] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0222] Among them, electronic equipment includes but is not limited to: terminals, etc.
[0223] The application of the embodiments of the present application has at least the following beneficial effects:
[0224] The target screen in the game is displayed through the terminal; in response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table; a corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, and the vibration signal is used to characterize the touch operation on the element; in this way, the user can intuitively obtain the relevant information of the chessboard positioning, the move of the player, and the move of the opponent through vibration without being affected by the external environment, so as to achieve barrier-free chess playing; the chessboard positioning is achieved, for example, the user (visually impaired user) is fed back through vibration the current selection area The board position, such as the invalid area outside the board, the specific positioning of the board, buttons, etc.; chess move assistance is implemented, for example, vibration feedback is used to provide feedback on whether the position of the chess piece selected by the user can be moved normally, the changes in the chessboard after the move, etc. The changes in the chessboard after the move are such as "eating an opponent's chess piece", "check", etc.; feedback on the opponent's moves is implemented, for example, vibration feedback is used to provide feedback on the opponent's moves (for example, "horse two to three"), the impact of the moves on the chess game (for example, eating one of our chess pieces, threatening our chess pieces, "check", etc.), etc.; vibration prompts are used in chess games to improve the accuracy of visually impaired users in controlling chess games.
[0225] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0226] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0227] Based on the same principle as the method provided in the embodiment of the present application, the embodiment of the present application further provides a computer program product or a computer program, which includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in any optional embodiment of the present application.
[0228] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0229] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A game control method, characterized in that: include: Display the target screen in the game through the terminal; In response to the detected touch operation on the element in the target screen, converting the touch operation into a corresponding vibration code based on a preset mapping relationship table; A corresponding vibration signal is generated based on the vibration code, and the terminal is controlled to vibrate accordingly based on the vibration signal, wherein the vibration signal is used to represent a touch operation on the element.
2. The method according to claim 1, characterized in that The displaying of the target screen in the game through the terminal includes: A target screen in a chess game is displayed through a terminal, wherein the target screen includes multiple operation controls, multiple grids on a chessboard, and chess pieces of two opposing sides on the chessboard, wherein any of the multiple grids is composed of vertical lines and horizontal lines, and the intersection of the vertical lines and the horizontal lines is the landing point of the chess piece on the chessboard.
3. The method according to claim 2, characterized in that The type of the vibration code includes at least one of a vibration code corresponding to a number, a vibration code corresponding to a move mark, a vibration code corresponding to a chess piece on the chessboard, a vibration code corresponding to move information, and a vibration code corresponding to an operation control; the move mark includes at least one of chess pieces of opposing parties, states of chess pieces, and move states.
4. The method according to claim 3, characterized in that The element is any one of the multiple operation controls, and in response to the detected touch operation on the element in the target screen, converting the touch operation into a corresponding vibration code based on a preset mapping relationship table includes: In response to the detected touch operation on any operation control in the target screen, determining a vibration code corresponding to any operation control based on a preset mapping relationship table; Among them, the preset mapping relationship table includes a mapping relationship between any operation control and the vibration code corresponding to any operation control, the control type of any operation control is any one of a chess game operation type control, a system operation type control, and a confirmation and cancellation type control, and the combination of sub-codes representing the vibration frequency in the vibration code corresponding to any operation control is used to determine the control type.
5. The method according to claim 3, characterized in that: The element is a point where a chess piece on the chessboard falls, and in response to the detected touch operation on the element in the target screen, converting the touch operation into a corresponding vibration code based on a preset mapping relationship table includes: In response to the detected touch operation on the chess piece landing point in the target screen, determining the vibration code corresponding to the position coordinates of the chess piece landing point based on a preset mapping relationship table, wherein the type of the vibration code corresponding to the coordinates is the vibration code corresponding to the number; The preset mapping relationship table includes a mapping relationship between the value corresponding to the position coordinate and the vibration code corresponding to the number.
6. The method according to claim 3, characterized in that The element is any one of the multiple chess pieces of one of the two opposing parties, and in response to the detected touch operation on the element in the target screen, converting the touch operation into a corresponding vibration code based on a preset mapping relationship table includes: In response to a detected touch operation on any chess piece in the target screen, a vibration code corresponding to any chess piece is determined based on a preset mapping relationship table, and the type of the vibration code corresponding to any chess piece is the vibration code corresponding to the chess piece on the chessboard.
7. The method according to claim 3, characterized in that The touch operation on the element in the target screen is that any chess piece of the multiple chess pieces of one of the two opposing parties moves from a first chess piece landing point to a second chess piece landing point, and in response to the detected touch operation on the element in the target screen, the touch operation is converted into a corresponding vibration code based on a preset mapping relationship table, including: In response to detecting that any chess piece moves from a first chess piece landing point to a second chess piece landing point, based on a preset mapping relationship table, determining that the type of vibration code corresponding to the movement of any chess piece from the first chess piece landing point to the second chess piece landing point is the vibration code corresponding to the chess move information; The move information includes any one of the following: any one of the chess pieces moving forward, any one of the chess pieces moving backward, any one of the chess pieces moving horizontally, and any one of the chess pieces capturing pieces.
8. The method according to claim 1, characterized in that The vibration code is used to represent the number of at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment. The generating a corresponding vibration signal based on the vibration code includes: A corresponding vibration signal is generated based on the vibration code, wherein the vibration signal includes the number of the at least one vibration segment, the vibration frequency of each vibration segment in the at least one vibration segment, the vibration intensity of each vibration segment, and the vibration duration of each vibration segment.
9. The method according to claim 2, characterized in that: Also includes: receiving vibration code information sent by other terminals, wherein the vibration code information includes a target vibration code corresponding to a move of any chess piece among a plurality of chess pieces of the other party of the confrontation; A corresponding target vibration signal is generated based on the target vibration code, and the terminal is controlled to vibrate accordingly based on the target vibration signal, so as to prompt that any chess piece has moved.
10. A game control device, characterized in that: include: The first processing module is used to display the target screen in the game through the terminal; A second processing module, configured to respond to a detected touch operation on an element in the target screen and convert the touch operation into a corresponding vibration code based on a preset mapping relationship table; The third processing module is used to generate a corresponding vibration signal based on the vibration code, and control the terminal to vibrate accordingly based on the vibration signal, wherein the vibration signal is used to represent the touch operation on the element.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.