Game game display method, device and system, electronic equipment and storage medium

Through the connection interface and action interface between the front-end and the back-end, the visual display of the game confrontation engine is realized, which solves the problem of insufficient visualization of the game confrontation engine in the existing technology, and provides real-time game process display and adversarial mode compatibility.

CN119113513APending Publication Date: 2024-12-13PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411104222.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing game confrontation engines are insufficient in terms of visualization and cannot provide intuitive visualization, which affects users' comprehensive understanding of the entire game confrontation process and their understanding of the algorithmic decision-making process.

Method used

Establish a long connection through the connection interface between the front-end and the back-end, obtain the matching relationship between the game agent agent, and render the game game screen on the front-end page, send instructions to perform game confrontation in response to user operations, and update data display in real time.

Benefits of technology

Real-time display of the game process is realized, and users can intuitively observe the game process, enhance their understanding of the algorithmic decision-making process, and are compatible with different confrontation modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119113513A_ABST
    Figure CN119113513A_ABST
Patent Text Reader

Abstract

The invention discloses a game match display method, device and system, electronic equipment and a storage medium, and the method comprises the steps: responding to a game connection operation triggered by a target object on a front-end page, and generating a game connection request; sending the game connection request to a rear end through the connection interface, and obtaining game match association information returned by the rear end; rendering and displaying the first game playing picture on the front-end page according to the game playing association information; in response to a game operation triggered by the target object, sending a game operation instruction to a rear end through the action interface, so as to execute game confrontation with other target game agents in a game game according to a machine game instruction; gaming game data returned after the rear end executes gaming game confrontation in the gaming game are obtained through a state interface between the front end and the rear end, and the gaming game data are subjected to picture rendering display on a front end page. According to the embodiment of the invention, the game process can be displayed in real time, and a user can understand the game process conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, system, electronic device and storage medium for displaying a gaming game. Background Art

[0002] From ancient Go, chess, and shogi to modern Mahjong, Landlord, and Texas Hold'em, multiplayer turn-based board games have always been popular social entertainment activities, greatly enriching the lives of players. Since humans invented computers, researchers have been trying to let machines play games with human players and hope to develop game-playing algorithms.

[0003] Game adversarial engines provide a platform for algorithm researchers to train and test the performance of game adversarial algorithms by competing with game adversarial engines. Although these game adversarial engines have played an important role in promoting the advancement of game adversarial algorithms, their shortcomings in visualization are obvious. During the confrontation process, game adversarial engines often do not provide intuitive visualization, and users can only understand the behavior of the algorithm and the evolution of the game through limited output information. This deficiency affects the user's comprehensive understanding of the entire process of game confrontation, making it impossible for users to deeply understand the decision-making process of the algorithm and the changes in the game situation. For example, Go is a game that relies on visual perception. If you are not a professional player, it is often difficult to understand the game process without a chessboard image. Summary of the invention

[0004] The embodiments of the present application provide a method, device, system, electronic device and storage medium for displaying a game, which can realize real-time display of the game process and facilitate users to understand the game process.

[0005] In a first aspect, an embodiment of the present application provides a method for displaying a game, including: In response to a game connection operation triggered by a target object on a front-end page, a game connection request is generated; Sending the game connection request to the back end through the connection interface between the front end and the back end, and obtaining the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identifier carried in the game connection request; The game match association information is generated by the backend binding the game agent in the game confrontation engine based on the game connection request, and after the game agent and other target game agents are matched to form a game match; Rendering and displaying a first game game screen on the front-end page according to the game game related information; In response to a game operation triggered by the target object based on the first game game screen, a game operation instruction is sent to the back end through an action interface between the front end and the back end, so that the back end converts the game operation instruction into a machine game instruction through the game agent, and then performs a game confrontation with the other target game agents in the game according to the machine game instruction; The game data returned by the back end after the game confrontation is performed in the game is obtained through the status interface between the front end and the back end, and the game data is rendered and displayed on the front end page.

[0006] In some embodiments, after sending the gaming operation instruction to the back end through the action interface between the front end and the back end, the method further includes: A request for executing a preset legal action code is sent to the back end, and when the back end detects that the game action corresponding to the machine game instruction is a valid action through the running legal action code, the game confrontation with the other target game agents is executed in the game according to the machine game instruction.

[0007] In some embodiments, rendering and displaying the first game game screen on the front-end page according to the game game association information includes: Determine confrontation mode information according to the game-related information, and generate a start instruction according to the confrontation mode information, wherein the confrontation mode information is used to characterize the number of rounds of the game and the number of agents participating in each round of the game; Sending the start instruction to the back end, so that the back end determines a first number of game agent agents participating in the game and a second number of target game agents according to the start instruction, starts the first number of game agent agents, and starts the second number of target game agents; The first game play screen is rendered and displayed on the front-end page according to the confrontation mode information.

[0008] In some embodiments, rendering and displaying the first game game screen on the front-end page according to the confrontation mode information includes: Determining the gaming time of the first round of gaming according to the confrontation mode information; The round of the game and the game time are displayed on the front-end page to render the first game screen.

[0009] In some embodiments, after obtaining, through a status interface between a front end and a back end, game data returned by the back end after executing the game confrontation in the game, and rendering and displaying the game data on the front end page, the method further includes: Determine, according to the game match association information, an agent identifier of a next object of the target object in the game operation; Sending an operation instruction to the back end through an action interface between the front end and the back end, so that the back end converts the operation instruction into a battle game instruction through a target game agent corresponding to the proxy identifier; Sending a target execution request for a preset legal action code to the backend, and when the backend detects that the game action corresponding to the battle game instruction is a valid action through the running of the legal action code, executing the game confrontation with the game agent in the game according to the battle game instruction; The result data returned by the backend after executing the game confrontation in the game is obtained through the status interface between the frontend and the backend, and the result data is rendered and displayed on the frontend page.

[0010] In some embodiments, after obtaining, through a status interface between the front end and the back end, result data returned by the back end after executing the game confrontation in the game match, and rendering and displaying the result data on the front end page, the method further includes: Determine the number of game rounds according to the confrontation mode information, and determine the number of confrontations in the current game; When the number of confrontations does not reach the number of game rounds, the game reset information returned by the back end after the end of this round of game is obtained through the reset interface between the front end and the back end, and the game reset information is rendered and displayed on the front end page.

[0011] In some embodiments, after determining the number of game rounds according to the confrontation mode information and determining the number of confrontations in the current game, the method further includes: When the number of confrontations reaches the number of game rounds, the end information returned by the back end after the end of this round of game is obtained through the end interface between the front end and the back end, and the end information is rendered and displayed on the front end page.

[0012] In a second aspect, an embodiment of the present application provides a display device for a gaming game, including: A game connection module, used to generate a game connection request in response to a game connection operation triggered by a target object on a front-end page; An identification binding module, used to send the game connection request to the back end through the connection interface between the front end and the back end, and obtain the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identification carried in the game connection request; wherein the game match association information is generated by the back end binding the game agent intelligent body in the game confrontation engine based on the game connection request, and matching between the game agent intelligent body and other target game intelligent bodies to form a game match; A page rendering module, configured to render and display a first game game screen on the front-end page according to the game game related information; a game confrontation module, configured to respond to a game operation triggered by the target object based on the first game game screen, and to send a game operation instruction to the back end through an action interface between the front end and the back end, so that the back end converts the game operation instruction into a machine game instruction through the game agent, and then executes a game confrontation with the other target game agents in the game according to the machine game instruction; A screen rendering module is used to obtain the game data returned by the back end after the back end executes the game confrontation in the game through the status interface between the front end and the back end, and to render and display the game data on the front end page.

[0013] In a third aspect, an embodiment of the present application provides an electronic device comprising at least one processor and a memory for communicating with the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for displaying a gaming game as described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a system for displaying a game, including: A front end, for generating a game connection request in response to a game connection operation triggered by a target object on a front end page; and sending the game connection request to the back end through a connection interface between the front end and the back end; The backend is used to bind the game agent in the game confrontation engine based on the game connection request, and generate game game association information after the game agent and other target game agents are matched to form a game game; The front end is further used to obtain the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identifier carried in the game connection request; The front end is further configured to render and display a first game game screen on the front end page according to the game game association information; in response to a game operation triggered by the target object based on the first game game screen, send a game operation instruction to the back end through an action interface between the front end and the back end; The backend is further used to biomimetically convert the game operation instructions into machine game instructions through the game agent, and execute the game confrontation with the other target game agents in the game according to the machine game instructions; The front end is also used to obtain the game data returned by the back end after the back end executes the game confrontation in the game through the status interface between the front end and the back end, and to render and display the game data on the front end page.

[0015] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for displaying a gaming game as described in the first aspect.

[0016] The game display method, system, electronic device and storage medium provided by the embodiments of the present application have at least the following beneficial effects: in response to a game connection operation triggered by a target object on a front-end page, a game connection request is generated, and then the game connection request is sent to the back-end through the connection interface between the front-end and the back-end, thereby establishing a long connection between the front-end and the back-end, realizing information interaction between the front-end and the back-end, and obtaining the game match association information returned by the back-end after binding the corresponding game agent intelligent body according to the target agent identifier carried in the game connection request, so that the matching relationship between the game agent intelligent body and other target game intelligent bodies in the game can be determined through the game match association information, and then, according to the game match association information, the first game match screen is rendered and displayed on the front-end page to realize the game The rendering and display of the game screen enables the user to intuitively observe the process of the game. Afterwards, in response to the game operation triggered by the target object based on the first game screen, the game operation instruction is sent to the back end through the action interface between the front end and the back end, so that the back end can convert the game operation instruction into a machine game instruction through the game agent intelligent body, and then perform the game confrontation with other target game intelligent bodies in the game according to the machine game instruction, thereby realizing the game between the game agent intelligent body and other target game intelligent bodies. Finally, the game data returned by the back end after executing the game confrontation in the game is obtained through the state interface between the front end and the back end, and the game data is rendered and displayed on the front end page to realize the real-time display of the game process. In addition, the embodiment of the present application realizes data interaction through the connection interface, the action interface and the state interface, and can be compatible with different confrontation modes through the above interfaces, further realizing the real-time display of different confrontation mode processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a specific method flow chart of a method for displaying a gaming game provided by an embodiment of the present application; Figure 2 is a specific method flow chart of a method for displaying a gaming game provided by another embodiment of the present application; Figure 3 It is a flowchart of a specific method for rendering and displaying a first game game screen on a front-end page according to game game related information provided by an embodiment of the present application; Figure 4 It is a flowchart of a specific method for rendering and displaying a first game game screen on a front-end page according to confrontation mode information provided by an embodiment of the present application; Figure 5 is a specific method flow chart of a method for displaying a gaming game provided by another embodiment of the present application; Figure 6 is a specific method flow chart of a method for displaying a gaming game provided by another embodiment of the present application; Figure 7 is a specific method flow chart of a method for displaying a gaming game provided by another embodiment of the present application; Figure 8 It is a schematic diagram of the system architecture of a gaming game display system provided by an embodiment of the present application; Fig. 9 It is a schematic diagram of the structure of a display device for a gaming game provided by an embodiment of the present application; Fig.10 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0019] From ancient Go, chess, and shogi to modern Mahjong, Landlord, and Texas Hold'em, multiplayer turn-based board games have always been popular social entertainment activities, greatly enriching the lives of players. Since humans invented computers, researchers have been trying to let machines play games with human players and hope to develop game-playing algorithms.

[0020] Game adversarial engines provide a platform for algorithm researchers to train and test the performance of game adversarial algorithms by competing with game adversarial engines. Although these game adversarial engines have played an important role in promoting the advancement of game adversarial algorithms, their shortcomings in visualization are obvious. During the confrontation process, game adversarial engines often do not provide intuitive visualization, and users can only understand the behavior of the algorithm and the evolution of the game through limited output information. This deficiency affects the user's comprehensive understanding of the entire process of game confrontation, making it impossible for users to deeply understand the decision-making process of the algorithm and the changes in the game situation. For example, Go is a game that relies on visual perception. If you are not a professional player, it is often difficult to understand the game process without a chessboard image.

[0021] In order to solve the above problems, the present embodiment provides a method, system, electronic device and storage medium for displaying a game game, which have at least the following beneficial effects: in response to a game connection operation triggered by a target object on a front-end page, a game connection request is generated, and then the game connection request is sent to the back-end through a connection interface between the front-end and the back-end, thereby establishing a long connection between the front-end and the back-end, realizing information interaction between the front-end and the back-end, and obtaining game game association information returned by the back-end after binding the corresponding game agent intelligent body according to the target agent identifier carried in the game connection request, so that the matching relationship between the game agent intelligent body and other target game intelligent bodies in the game game can be determined through the game game association information, and then, the first game game screen is rendered and displayed on the front-end page according to the game game association information. The rendering and display of the game screen is realized so that the user can intuitively observe the process of the game. After that, in response to the game operation triggered by the target object based on the first game screen, the game operation instruction is sent to the back end through the action interface between the front end and the back end, so that the back end can convert the game operation instruction into a machine game instruction through the game agent intelligent body, and then perform the game confrontation with other target game intelligent bodies in the game according to the machine game instruction, thereby realizing the game between the game agent intelligent body and other target game intelligent bodies. Finally, the game data returned by the back end after the game confrontation is performed in the game is obtained through the state interface between the front end and the back end, and the game data is rendered and displayed on the front end page to realize the real-time display of the game process. In addition, the embodiment of the present application realizes data interaction through the connection interface, the action interface and the state interface, and can be compatible with different confrontation modes through the above interfaces, further realizing the real-time display of different confrontation mode processes.

[0022] Reference Figure 1 , Figure 1 It is a specific method flow chart of a method for displaying a gaming game provided in one embodiment of the present application. The method for displaying a gaming game includes but is not limited to steps S101 to S105.

[0023] Step S101, generating a game connection request in response to a game connection operation triggered by a target object on a front-end page.

[0024] In step S101 of some embodiments, in response to a game connection operation triggered by a target object on a front-end page, wherein the game connection operation is used to characterize the target object's intention to establish a long connection between the front-end and the back-end, a game connection request is generated to facilitate subsequent connection between the front-end and the back-end, realize data transmission, and improve the stability of communication between the front-end and the back-end.

[0025] It is understandable that the target object in the embodiment of the present application can trigger the game connection operation by clicking the relevant plug-in on the front-end page.

[0026] Step S102, sending a game connection request to the back end through the connection interface between the front end and the back end, and obtaining the game match association information returned by the back end after binding the corresponding game agent intelligent agent according to the target agent identifier carried in the game connection request, wherein the game match association information is generated by the back end after binding the game agent intelligent agent in the game confrontation engine based on the game connection request, and matching the game agent intelligent agent with other target game intelligent agents to form a game.

[0027] In step S102 of some embodiments, a game connection request is sent to the back end through the connection interface between the front end and the back end to establish a long connection between the front end and the back end. At this time, the back end will also bind the game agent in the game confrontation engine based on the game connection request, and will also match the game agent with other target game agents to obtain game match association information. Therefore, the embodiment of the present application will also obtain the game match association information returned by the back end after binding the corresponding game agent according to the target agent identifier carried in the game connection request, so as to achieve the binding between the target agent identifier and the game agent, and achieve accurate matching between the game agent and other target game agents, which can further meet the data interaction and interaction requirements in different confrontation modes.

[0028] It is worth noting that the game confrontation engine in the embodiment of the present application can support three modes: human-machine battle, human-human battle, and machine-machine battle. Therefore, the game agent in the embodiment of the present application can be a robot agent or a real person agent. Similarly, the target game agent can be a robot agent or a real person agent, that is, the identity of the game agent and the target game agent can be determined according to different confrontation modes. Specifically, in the case of human-machine battle, the game agent in the embodiment of the present application is a real person agent, and the target game agent is a robot agent; in the case of human-human battle, the game agent and the target game agent in the embodiment of the present application are both real person agents; in the case of machine-machine battle, the game agent and the target game agent in the embodiment of the present application are both robot agents.

[0029] In some embodiments, after the target object is connected and bound to the game agent agent through the front-end page, subsequent actions of the target object will be forwarded to the game agent agent, and then the game process is completed through the game agent agent and the target game agent.

[0030] Step S103, rendering and displaying the first game game screen on the front-end page according to the game game related information.

[0031] In step S103 of some embodiments, a first game screen is rendered and displayed on a front-end page according to the game-related information, so as to realize real-time display of the game process and visual display of the game process, so as to facilitate the target object to understand the game process.

[0032] Step S104, in response to the game operation triggered by the target object based on the first game game screen, sends a game operation instruction to the back end through the action interface between the front end and the back end, so that the back end converts the game operation instruction into a machine game instruction through the game agent intelligent body, and then executes the game confrontation with other target game agents in the game according to the machine game instruction.

[0033] In step S104 of some embodiments, in response to a game operation triggered by the target object based on the first game game screen, the target object triggers the game operation through the relevant controls on the first game game screen, and sends the game operation instructions to the back end through the action interface between the front end and the back end, so that the back end biomimetically converts the game operation instructions into machine game instructions through the game agent intelligent body, and then executes the game confrontation with other target game agents in the game according to the machine game instructions, thereby realizing the game between the game agent intelligent body and the target game agent.

[0034] It should be noted that the action interface in the embodiment of the present application is called by the front end to send the execution action of the target object to the back end.

[0035] Step S105, obtaining the game data returned by the back end after the game confrontation is performed in the game through the status interface between the front end and the back end, and rendering and displaying the game data on the front end page.

[0036] In step S105 of some embodiments, the game data returned by the backend after the backend executes the game confrontation in the game is obtained through the status interface between the frontend and the backend, wherein the status interface is called by the backend to inform the frontend of the latest status and to render and display the game data on the frontend page, thereby realizing real-time rendering of the frontend page, and the target object can observe the situation of the game through the frontend page.

[0037] It is worth noting that the embodiment of the present application provides a set of concise and unified front-end and back-end interfaces, making it easier to provide visual support for the game confrontation engine in various confrontation modes. Because the machine-machine mode, human-machine mode, and human-human confrontation mode all use the same set of interface designs, the front-end and back-end only need to be developed once to be compatible with different confrontation modes at the same time. In addition, the embodiment of the present application fully considers the characteristics of multiplayer turn-based chess and card game confrontation scenarios, and can easily be compatible with different types of game confrontation simulation engines, greatly reducing the amount of development.

[0038] Reference Figure 2 , Figure 2 It is a specific method flow chart of a method for displaying a game of chess provided in another embodiment of the present application. The method for displaying a game of chess includes but is not limited to step S201.

[0039] It should be noted that step S201 occurs after sending the game operation instruction to the back end through the action interface between the front end and the back end.

[0040] Step S201, sending an execution request for a preset legal action code to the back end, and when the back end detects that the game action corresponding to the machine game instruction is a valid action through the running legal action code, the game confrontation with other target game agents is executed in the game according to the machine game instruction.

[0041] In step S201 of some embodiments, after sending a game operation instruction to the back end through the action interface between the front end and the back end, the embodiments of the present application will also send an execution request for a preset legal action code to the back end, so that the back end calls the legal action code to perform effective action detection on the game action corresponding to the machine game instruction, and when the back end detects that the game action corresponding to the machine game instruction is a valid action through the running legal action code, the game confrontation with other target game agents in the game game is executed according to the machine game instruction, thereby ensuring that the operation of the target object in the game game is a valid operation, and ensuring that each step of the operation of the target object is a legal operation.

[0042] It is worth noting that the legal action code in the embodiment of the present application can be a legal action list or a legal action function. Taking the chess and card game scenario as an example, the actual cards that can be played can only be possible combinations of the cards currently in the player's hand, and these combinations are valid actions.

[0043] Reference Figure 3 , Figure 3 It is a flowchart of a specific method for rendering and displaying a first game game screen on a front-end page according to game game related information provided by an embodiment of the present application. The game game display method includes but is not limited to steps S301 to S303.

[0044] Step S301, determining confrontation mode information according to game-related information, and generating a start instruction according to the confrontation mode information, wherein the confrontation mode information is used to characterize the number of rounds of the game and the number of agents participating in each round of the game.

[0045] Step S302, sending a start instruction to the back end, so that the back end determines a first number of game agent agents participating in the game and a second number of target game agents according to the start instruction, starts the first number of game agent agents, and starts the second number of target game agents.

[0046] Step S303, rendering and displaying the first game screen on the front-end page according to the confrontation mode information.

[0047] In steps S301 to S303 of some embodiments, in the process of rendering and displaying the first game game screen on the front-end page according to the game game related information, first, the confrontation mode information is determined according to the game game related information, so that the mode of the game game can be determined, and the number of rounds of the game game and the number of agents participating in the game in the mode can be further determined, and a start instruction is generated according to the confrontation mode information. Before the game game starts, the embodiment of the present application will first start agents that are equal to the number of agents in the game game, specifically, send a start instruction to the back end, so that the back end determines the first number of game agent agents participating in the game game and the second number of target game agents according to the start instruction, starts the first number of game agent agents, and starts the second number of target game agents, and finally, renders and displays the first game game screen on the front-end page according to the confrontation mode information, thereby achieving real-time rendering of the first game game screen, so that the target object can understand the current game situation through the first game game screen.

[0048] Specifically, the confrontation mode information in the embodiments of the present application includes but is not limited to information on human-machine confrontation mode, information on human-human confrontation mode, and information on machine-machine confrontation mode. When it is determined that the mode corresponding to the confrontation mode information is the human-machine confrontation mode, first determine the first number of human agents and the second number of robot agents in the human-machine confrontation mode, for example, there are three human agents and four robot agents, and then open three human agents and four robot agents through the back end. The number of agents opened in the human-human confrontation mode and the machine-machine confrontation mode is consistent with the above, and the embodiments of the present application do not impose specific restrictions.

[0049] Reference Figure 4 , Figure 4 It is a flowchart of a specific method for rendering and displaying a first game match screen on a front-end page according to confrontation mode information provided by an embodiment of the present application, and the method includes but is not limited to steps S401 to S402.

[0050] Step S401, determining the game time of the first round of game according to the confrontation mode information.

[0051] Step S402, displaying the round of the game and the game time on the front-end page to render the first game screen.

[0052] In steps S401 to S402 of some embodiments, in the process of rendering and displaying the first game game screen on the front-end page according to the confrontation mode information, since the confrontation mode information includes at least one round of game games, the embodiment of the present application first determines the game time of the first round of game games according to the confrontation mode information, and then displays the rounds and game time of the game games on the front-end page to render the first game game screen, thereby adding information such as the rounds of the game games and the game time to the first game game screen, so that the target object can observe the current round of the game games and the remaining time, which is convenient for the target object to better plan the game strategy and time, and improve the transparency of the game.

[0053] It is worth noting that after determining the game time of the first round of game according to the confrontation mode information, if it is determined according to the confrontation mode information that there are multiple rounds of game, the embodiment of the present application will also display the time interval between two adjacent game rounds, thereby helping the target object to reasonably arrange the game time.

[0054] Reference Figure 5 , Figure 5 It is a specific method flow chart of a method for displaying a gaming game provided in another embodiment of the present application. The method for displaying a gaming game includes but is not limited to steps S501 to S504.

[0055] It should be noted that steps S501 to S504 occur after obtaining the game data returned by the back end after executing the game confrontation in the game through the status interface between the front end and the back end, and rendering and displaying the game data on the front end page.

[0056] Step S501, determining the proxy identifier of the next object of the target object in the game operation according to the game match association information.

[0057] Step S502, sending an operation instruction to the back end through the action interface between the front end and the back end, so that the back end converts the operation instruction into a battle game instruction through the game agent agent corresponding to the agent identifier.

[0058] Step S503, sending a target execution request for a preset legal action code to the back end, and when the back end detects that the game action corresponding to the battle game instruction is a valid action through the running legal action code, the game confrontation between the game agent and the game is executed in the game according to the battle game instruction.

[0059] Step S504, obtaining the result data returned by the backend after executing the game confrontation in the game through the status interface between the frontend and the backend, and rendering and displaying the result data on the frontend page.

[0060] In steps S501 to S504 of some embodiments, during the game process, the game agent corresponding to the target object and the target game agent matched therewith will interact in real time. After responding to the game operation triggered by the target object based on the first game screen, the embodiment of the present application also needs to determine the agent identifier of the next object of the target object in the game operation according to the game game association information, that is, the object of the next action to be performed, and then send the operation instruction to the back end through the action interface between the front end and the back end, so that the back end converts the operation instruction into a game instruction through the game agent corresponding to the agent identifier, and then sends the operation instruction to the back end for the preset The target running request of the legal action code is received, and when the game action corresponding to the battle game instruction is detected as a valid action by the running legal action code on the back end, the game confrontation with the game agent intelligent body is executed in the game according to the battle game instruction, so as to realize the game confrontation between the game agent intelligent body and the target game intelligent body. Finally, the result data returned by the back end after executing the game confrontation in the game is obtained through the state interface between the front end and the back end, and the result data is rendered and displayed on the front end page, so that the target object can observe the process of the game in real time, and the target object can clearly see every step of the game development, thereby improving the fairness and trust of the game.

[0061] Reference Figure 6 , Figure 6 It is a specific method flow chart of a method for displaying a gaming game provided in another embodiment of the present application. The method for displaying a gaming game includes but is not limited to steps S601 to S602.

[0062] It should be noted that step S601 to step S602 occur after obtaining the result data returned by the backend after executing the game confrontation in the game through the status interface between the frontend and the backend, and rendering and displaying the result data on the frontend page.

[0063] Step S601, determining the number of game rounds according to the confrontation mode information, and determining the number of confrontations in the current game.

[0064] Step S602, when the number of confrontations does not reach the number of game rounds, the game reset information returned by the back end after the end of this round of game is obtained through the reset interface between the front end and the back end, and the game reset information is rendered and displayed on the front end page.

[0065] In steps S601 to S602 of some embodiments, after obtaining the result data returned by the backend after executing the game confrontation in the game through the status interface between the front end and the back end, and rendering and displaying the result data on the front end page, since there may be multiple rounds of game games, in order to determine whether the current game game is over, the embodiment of the present application will determine the number of game rounds according to the confrontation mode information, and determine the number of confrontations in the current game game. When the number of confrontations does not reach the number of game rounds in the confrontation mode information, it means that the game game is not over. The embodiment of the present application will obtain the game reset information returned by the backend after the end of this round of game game through the reset interface between the front end and the back end, and render and display the game reset information on the front end page to remind the target object that there are still game games that have not started, avoid the target object leaving midway, and improve the fluency of the game process.

[0066] It is worth noting that the game reset information in the embodiment of the present application is used to characterize the game match-related information corresponding to the start of a new round of game matches. Specifically, since the matching relationship between the game agent and the target game agent may change at the beginning of each round of game matches, the embodiment of the present application will specifically send a message to notify the front end. The reset interface in the embodiment of the present application is called by the back end to inform the target object of the matching relationship between the game agent and the target game agent of the current round of game matches when a new round of game matches is started after a game match ends, thereby avoiding the situation where the game agent and the target game agent are matched incorrectly.

[0067] Reference Figure 7 , Figure 7 It is a specific method flow chart of a method for displaying a gaming game provided in another embodiment of the present application. The method for displaying a gaming game includes but is not limited to step S701.

[0068] It should be noted that step S701 occurs after the number of game rounds is determined according to the confrontation mode information and the number of confrontations in the current game is determined.

[0069] Step S701, when the number of confrontations reaches the number of game rounds, the end information returned by the back end after the end of this round of game is obtained through the end interface between the front end and the back end, and the end information is rendered and displayed on the front end page.

[0070] In step S701 of some embodiments, when the number of confrontations reaches the number of game rounds, it means that all rounds of the game have been completed. The embodiment of the present application will obtain the end information returned by the back end after the end of this round of game through the end interface between the front end and the back end, and render the end information on the front end page to display it, thereby prompting the target object that all rounds of the game have ended and the long connection will be closed.

[0071] Reference Figure 8 , Figure 8 It is a schematic diagram of the system architecture of a gaming game display system provided in one embodiment of the present application.

[0072] In some embodiments, a game display system includes a custom Web (World Wide Web) front-end page, an Env example, a robot agent, and a real-person agent. Specifically, the front-end in the embodiments of the present application is used to generate a game connection request in response to a game connection operation triggered by a target object on the front-end page; send the game connection request to the back-end through a connection interface between the front-end and the back-end; and obtain game-related information returned by the back-end after binding the corresponding game agent agent according to the target agent identifier carried in the game connection request.

[0073] In addition, the front end is also used to render and display the first game game screen on the front end page according to the game game related information; in response to the game operation triggered by the target object based on the first game game screen, send the game operation instruction to the back end through the action interface between the front end and the back end, and obtain the game game data returned by the back end after executing the game confrontation in the game through the status interface between the front end and the back end, and render and display the game game data on the front end page.

[0074] The backend is used to bind the game agent intelligent body in the game confrontation engine based on the game connection request, and to generate game match related information after the game agent intelligent body and other target game intelligent bodies are matched to form a game match; it is also used to biomimetically convert game operation instructions into machine game instructions through the game agent intelligent body, and execute game confrontation with other target game intelligent bodies in the game match according to the machine game instructions.

[0075] In order to more clearly illustrate the above-mentioned method of displaying the game, a specific example is given below.

[0076] Example 1: Example 1 is based on the traditional game-playing method of the interaction between an Env instance and multiple Agent instances, and is extended for visualization.

[0077] First of all, in order to support visualization in multiple confrontation modes such as machine-machine, human-machine, and human-human, the game confrontation engine must be compatible with different types of agents (robot agents and real-life agents). The existing game confrontation engine only supports machine agents by default, and does not consider the participation of real-life agents. To this end, the embodiment of the present application introduces the design of HumanAgent, which packages the behavior and attributes of human players into the same as those of robot agents, and allows HumanAgent to interact with the Env instance of the game confrontation engine on behalf of human players. In this way, human players interact with HumanAgent, and HumanAgent interacts with Env instances. Adding this layer of abstraction is equivalent to isolating the Env instance of the game confrontation engine from human players. In this way, the Env instance interacts with the robot agent and the real-life agent in the same way during operation, and there is no need to perceive whether the agent interacting with it is a robot or a real person, thus achieving the unity and compatibility of the interaction logic.

[0078] The introduction of HumanAgent isolates human players from the Env instance of the game confrontation engine. This example adopts the classic Server-Client architecture. When starting the Env instance of the game confrontation engine, a Server service is started at the same time. Human players can use the visual front-end page ( Fig. 9 The custom web front-end page in the client) is connected to the server corresponding to Env and acts as the client. In this way, the server can respond to the client's request from the front-end page and render the Env's screen data in real time through the client's page.

[0079] Specifically, when human players participate in the game, the server will start an equal number of HumanAgents according to the number of human players, and wait for human players to connect through the front-end page to bind with HumanAgent. After the human player connects and binds HumanAgent through the front-end page, the subsequent actions of the human player will be forwarded to HumanAgent, and then interact with Env through HumanAgent. The new state of Env can be continuously rendered through the custom Web front-end page, and human players take new actions after observing the new state. This cycle continues until the game ends.

[0080] Finally, in order to reduce the development workload of visual support for different game confrontation simulation environments, this solution designs a set of concise and complete front-end and back-end interaction interfaces that can meet the data interaction in various confrontation modes such as machine-machine, human-machine, and human-human. It includes the following interfaces: Connection interface (join): This interface is called by the front end to establish a persistent connection with the back end.

[0081] Specifically, the process of data interaction between the front-end and the back-end through the connection interface can be expressed as follows: request: { "type":"join", "agent_id":"xxx" } response: { "type":"join", "err_msg":"xx", "agent_id":xxx,#player ID "player_id":0,#The player's ID inside the env "mode":xxx,#competitive mode (0: machine-machine, 1: human-machine, 2: human-human) "remain_time":8,#Remaining action time "next_step_player_id":1, #The player id who will perform the next action "round":1, "action_timeout":10,#The time it takes for the player to perform an action "episode_gap_time":5#After one round ends, the waiting time before the next round starts } Action interface (action): This interface is called by the front end to send the player's latest action to the back end. The request of this interface does not require a response.

[0082] Specifically, the process of data interaction between the front-end and the back-end through the action interface can be expressed as follows: request: { "type":"action", "agent_id":"xxx", "action":xx } response: { } State interface (new_state): This interface is called by the backend to inform the frontend of the latest state. Because each player can see different information, different players may receive different information. The request of this interface does not require a response.

[0083] Specifically, the process of data interaction between the front-end and the back-end through the status interface can be expressed as follows: request: { "type":"new_state", "is_game_over":false, "winner":null, "last_step":{ "player_id":0,#The player id who just performed the play action "player_action":xx,#The action just performed by the previous player }, "next_step":{ "next_player_id":1,#The player id who will perform the action in the next round "legal_actions":[xx,xx], #Legal actions of the player who performs the action in the next round }, "is_player_over":{ "0":false, "1":false, }, "player_rewards":{ "0":0, "1":0, }, "player_obs":{ "0":{#The player's current status. The player can only see all his own information. "obs1":[xx,xx], "obs2":yy } "1":{#Only part of other players' information can be seen "obs1":[null,null],#Other players' cards cannot be seen "obs2":yy } "public":{#Information that all players can see "obs":[xx,xx] } }, "err_msg":"" } response: { } Reset interface (reset): This interface is called by the backend to inform the frontend of the correspondence between the agent_id and the player_id of the current round when a new round starts after the end of a round. The request of this interface does not require a response. Because at the beginning of each round, the agent's player_id may change. Therefore, a special message needs to be sent to notify the frontend.

[0084] Specifically, the process of data interaction between the front-end and the back-end through the reset interface can be expressed as follows: request: { "type":"reset", "agent_id":xx, "player_id":yy } response: { } End interface: This interface is called by the backend to inform the frontend that all episodes have ended and the long connection will be closed. The request of this interface does not require a response. Because the new_state returned each time can only tell whether the current round has ended. If it has ended, the win-loss information will be displayed, and then the next round will automatically begin. However, when the last round ends, the frontend does not know that it has ended. Therefore, an additional message notification is sent to the frontend.

[0085] Specifically, the process of data interaction between the front-end and the back-end through the end interface can be expressed as follows: request: { "type":"finish" } response: { } In some embodiments, the embodiments of the present application realize the compatible support of robot agents and real-person agents in the game confrontation system by introducing the HumanAgent design. The Env instance of the game confrontation engine does not need to care whether each specific agent is a game confrontation algorithm or a real person, because the HumanAgent representing the real person has an interface consistent with the robot Agent representing the game confrontation algorithm after packaging, and can interact with the Env instance indiscriminately, and all the differences between the two are isolated after unified abstraction. Therefore, the Env instance cannot perceive whether it is a real person or a machine that actually interacts with it. In this way, whether it is a machine-machine, human-machine or human-human confrontation mode, the system can adapt to and handle the connection and call of different types of agents, and provide flexible and consistent external support. Moreover, the embodiments of the present application provide a set of concise and unified front-end and back-end interfaces, making it easier to visualize the game engine in various confrontation modes. Because the machine-machine, human-machine and human-human confrontation modes all use the same set of interface designs, the front-end and back-end only need to be developed once, and different confrontation modes can be compatible at the same time.

[0086] In addition to being concise and unified, the data interaction interface of the embodiment of the present application is also versatile and scalable, and can easily support the visual expansion of different types of game confrontation simulation engines. For example, for game confrontation simulation engines such as OpenSpiel and RLCard, many different simulation environments are contained inside, and these simulation environments have consistent interfaces and data structure abstractions within the same simulation engine, so developers can use the same set of data interaction interfaces to adapt to different simulation environments. In addition, this set of interfaces has made special abstractions for multiplayer turn-based chess and card game confrontation scenarios, fully considering the characteristics of multiplayer turn-based chess and card game confrontation scenarios, and can be easily compatible with different types of game confrontation simulation engines, greatly reducing the amount of development.

[0087] See also Fig. 9 , Fig. 9 It is a structural diagram of a display device for a gaming game provided by an embodiment of the present application.

[0088] In some embodiments, the present application also provides a gaming game display device, the device comprising: The game connection module 901 is used to generate a game connection request in response to a game connection operation triggered by a target object on a front-end page; The identification binding module 902 is used to send the game connection request to the back end through the connection interface between the front end and the back end, and obtain the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identification carried in the game connection request; wherein the game match association information is generated by the back end after binding the game agent intelligent body in the game confrontation engine based on the game connection request, and matching between the game agent intelligent body and other target game intelligent bodies to form a game match; A page rendering module 903 is used to render and display a first game game screen on a front-end page according to the game game related information; The game confrontation module 904 is used to respond to the game operation triggered by the target object based on the first game game screen, and send the game operation instruction to the back end through the action interface between the front end and the back end, so that the back end converts the game operation instruction into a machine game instruction through the game agent, and then executes the game confrontation with other target game agents in the game according to the machine game instruction; The screen rendering module 905 is used to obtain the game data returned by the back end after the game confrontation is performed in the game through the status interface between the front end and the back end, and to render and display the game data on the front end page.

[0089] In addition, the game confrontation module 904 is also used to determine the proxy identifier of the next object of the target object in the game operation according to the game game related information; send the operation instruction to the back end through the action interface between the front end and the back end, so that the back end converts the operation instruction into a battle game instruction through the target game agent corresponding to the proxy identifier; and send a target operation request for a preset legal action code to the back end, and when the back end detects that the game action corresponding to the battle game instruction is a valid action through the running legal action code, the game confrontation between the game agent and the game agent is performed in the game according to the battle game instruction; obtain the result data returned by the back end after executing the game confrontation in the game through the status interface between the front end and the back end, and render the result data on the front end page.

[0090] In some embodiments, the display device of the game game of the embodiment of the present application also includes an action detection module, a game reset module and a game end module, wherein the action detection module is used to send an execution request for a preset legal action code to the back end, and when the back end detects that the game action corresponding to the machine game instruction is a valid action through the running legal action code, the game confrontation with other target game agents in the game game is executed according to the machine game instruction.

[0091] The game reset module is used to determine the number of game rounds based on the confrontation mode information, and determine the number of confrontations in the current game; and when the number of confrontations does not reach the number of game rounds, obtain the game reset information returned by the back end after the end of this round of game through the reset interface between the front end and the back end, and render and display the game reset information on the front end page.

[0092] The game end module is used to obtain the end information returned by the backend after the end of this round of game through the end interface between the frontend and the backend when the number of confrontations reaches the number of game rounds, and to render and display the end information on the frontend page.

[0093] The specific implementation of the display device for the game of this model is basically the same as the specific implementation of the method for displaying the game of the above-mentioned game, and will not be repeated here.

[0094] Reference Fig.10 , Fig.10 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application.

[0095] Fig.10 Take the control processor 1001 and memory 1002 in the electronic device 1000 as an example that can be connected via a bus. The memory 1002, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk memory, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1002 may optionally include a memory remotely arranged relative to the control processor 1001, and these remote memories may be connected to the electronic device 1000 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0096] Those skilled in the art will understand that Fig.10 The device structure shown in the figure does not constitute a limitation on the electronic device 1000, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0097] The embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors, for example, Fig.10 One of the control processors 1001 executes, which can enable the above-mentioned one or more control processors to execute the display method of the gaming game in the above-mentioned method embodiment.

[0098] It is worth noting that the electronic device in the embodiment of the present application can be a terminal device corresponding to the front end or a background server corresponding to the back end.

[0099] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0100] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A method for displaying a game, characterized in that: include: In response to a game connection operation triggered by a target object on a front-end page, a game connection request is generated; Sending the game connection request to the back end through the connection interface between the front end and the back end, and obtaining the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identifier carried in the game connection request; The game match association information is generated by the backend binding the game agent in the game confrontation engine based on the game connection request, and after the game agent and other target game agents are matched to form a game match; Rendering and displaying a first game game screen on the front-end page according to the game game related information; In response to a game operation triggered by the target object based on the first game game screen, a game operation instruction is sent to the back end through an action interface between the front end and the back end, so that the back end converts the game operation instruction into a machine game instruction through the game agent, and then performs a game confrontation with the other target game agents in the game according to the machine game instruction; The game data returned by the back end after the game confrontation is performed in the game is obtained through the status interface between the front end and the back end, and the game data is rendered and displayed on the front end page.

2. The method for displaying a game of a game according to claim 1, characterized in that: After sending the gaming operation instruction to the back end through the action interface between the front end and the back end, the method further includes: A request for executing a preset legal action code is sent to the back end, and when the back end detects that the game action corresponding to the machine game instruction is a valid action through the running legal action code, the game confrontation with the other target game agents is executed in the game according to the machine game instruction.

3. The method for displaying a game of game according to claim 1, characterized in that: The rendering and displaying the first game game screen on the front-end page according to the game game related information includes: Determine confrontation mode information according to the game-related information, and generate a start instruction according to the confrontation mode information, wherein the confrontation mode information is used to characterize the number of rounds of the game and the number of agents participating in each round of the game; Sending the start instruction to the back end, so that the back end determines a first number of game agent agents participating in the game and a second number of target game agents according to the start instruction, starts the first number of game agent agents, and starts the second number of target game agents; The first game play screen is rendered and displayed on the front-end page according to the confrontation mode information.

4. The method for displaying a game of game according to claim 3, characterized in that: The rendering and displaying of the first game game screen on the front-end page according to the confrontation mode information includes: Determining the gaming time of the first round of gaming according to the confrontation mode information; The round of the game and the game time are displayed on the front-end page to render the first game screen.

5. The method for displaying a game of game according to claim 1, characterized in that: After obtaining, through a status interface between the front end and the back end, the game data returned by the back end after executing the game confrontation in the game, and rendering and displaying the game data on the front end page, the method further includes: Determine, according to the game match association information, an agent identifier of a next object of the target object in the game operation; Sending an operation instruction to the back end through an action interface between the front end and the back end, so that the back end converts the operation instruction into a battle game instruction through a target game agent corresponding to the proxy identifier; Sending a target execution request for a preset legal action code to the backend, and when the backend detects that the game action corresponding to the battle game instruction is a valid action through the running of the legal action code, executing the game confrontation with the game agent in the game according to the battle game instruction; The result data returned by the backend after executing the game confrontation in the game is obtained through the status interface between the frontend and the backend, and the result data is rendered and displayed on the frontend page.

6. The method for displaying a game of game according to claim 5, characterized in that: After obtaining, through a status interface between the front end and the back end, result data returned by the back end after executing the game confrontation in the game match, and rendering and displaying the result data on the front end page, the method further includes: Determine the number of game rounds according to the confrontation mode information, and determine the number of confrontations in the current game; When the number of confrontations does not reach the number of game rounds, the game reset information returned by the back end after the end of this round of game is obtained through the reset interface between the front end and the back end, and the game reset information is rendered and displayed on the front end page.

7. The method for displaying a game of game according to claim 6, characterized in that: After determining the number of game rounds according to the confrontation mode information and determining the number of confrontations in the current game, the method further includes: When the number of confrontations reaches the number of game rounds, the end information returned by the back end after the end of this round of game is obtained through the end interface between the front end and the back end, and the end information is rendered and displayed on the front end page.

8. A display device for a game, characterized in that: include: A game connection module, used to generate a game connection request in response to a game connection operation triggered by a target object on a front-end page; An identification binding module, used to send the game connection request to the back end through the connection interface between the front end and the back end, and obtain the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identification carried in the game connection request; wherein the game match association information is generated by the back end binding the game agent intelligent body in the game confrontation engine based on the game connection request, and matching between the game agent intelligent body and other target game intelligent bodies to form a game match; A page rendering module, configured to render and display a first game game screen on the front-end page according to the game game related information; a game confrontation module, configured to respond to a game operation triggered by the target object based on the first game game screen, and to send a game operation instruction to the back end through an action interface between the front end and the back end, so that the back end converts the game operation instruction into a machine game instruction through the game agent, and then executes a game confrontation with the other target game agents in the game according to the machine game instruction; A screen rendering module is used to obtain the game data returned by the back end after the back end executes the game confrontation in the game through the status interface between the front end and the back end, and to render and display the game data on the front end page.

9. A game display system, characterized in that: include: A front end, for generating a game connection request in response to a game connection operation triggered by a target object on a front end page; Sending the gaming connection request to the back end via a connection interface between the front end and the back end; The backend is used to bind the game agent in the game confrontation engine based on the game connection request, and generate game game association information after the game agent and other target game agents are matched to form a game game; The front end is further used to obtain the game match association information returned by the back end after binding the corresponding game agent intelligent body according to the target agent identifier carried in the game connection request; The front end is further configured to render and display a first game game screen on the front end page according to the game game association information; in response to a game operation triggered by the target object based on the first game game screen, send a game operation instruction to the back end through an action interface between the front end and the back end; The backend is further used to biomimetically convert the game operation instructions into machine game instructions through the game agent, and execute the game confrontation with the other target game agents in the game according to the machine game instructions; The front end is also used to obtain the game data returned by the back end after the back end executes the game confrontation in the game through the status interface between the front end and the back end, and to render and display the game data on the front end page.

10. An electronic device, characterized in that: It includes at least one processor and a memory for communicating with the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for displaying a gaming game as described in any one of claims 1 to 7.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for displaying a gaming game as described in any one of claims 1 to 7.