A method, device, equipment and storage medium for publishing training game resources

By obtaining and configuring game templates and questions, and generating a flexible training game interface, the problem of inflexible configuration of traditional training online games is solved, and the attractiveness and teaching efficiency of the game are improved.

CN114797101BActive Publication Date: 2024-11-19PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210370887.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2024-11-19
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

The configuration of traditional training online games is not flexible enough, lacks attractiveness, has too few game resources, and is solidified in the game form, which cannot effectively meet the students' learning needs.

Method used

By obtaining the game title and the corresponding game URL address, configuring the preset game template, generating the original game interface, and nesting and configuring the interface according to the nested instructions and game rules uploaded by the instructor, generating the final game interface and pushing it to On the student side, it realizes flexible configuration and personalized settings of the game interface.

Benefits of technology

Reduces game development time, reduces R&D costs, expands training game resources, increases configuration flexibility, helps lecturers understand students' knowledge mastery and weak links, improves teaching efficiency, and pushes appropriate games according to students' preferences. template.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114797101B_ABST
    Figure CN114797101B_ABST
Patent Text Reader

Abstract

The present invention relates to artificial intelligence technology, and discloses a method for publishing training game resources, including: obtaining a game title, querying a game URL address corresponding to the game title, and sequentially obtaining a game template to obtain an original game interface; receiving a nesting instruction uploaded by a lecturer, nesting the game title and the original game interface according to the nesting instruction, and generating a preliminary game interface; loading the pre-uploaded game rules in the preliminary game interface and configuring the preliminary game interface to obtain a final game interface; publishing the final game interface to a game resource library, and pushing the final game interface to a trainee terminal through an interface. In addition, the present invention also relates to blockchain technology, and product portraits and user portraits can be stored in nodes of a blockchain. The present invention also proposes a method for publishing training game resources, an electronic device, and a storage medium. The present invention can improve the flexibility of configuring online training games.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device, electronic device and computer-readable storage medium for publishing training game resources. Background Art

[0002] With the continuous advancement of learning concepts, more and more traditional training institutions have introduced gamification training teaching methods. Gamification training combines traditional teaching theories with game methods, which improves students' learning enthusiasm and increases their learning efficiency.

[0003] Gamified training is a training method that uses gamification, mainly including digital learning and game interaction. Instructors use gamification to impart specific knowledge and skills to trainees, using games as a communication and learning platform with trainees to understand the learning effects of trainees. Most of the existing training games are online training games. Currently, traditional online training games in the industry generally have too few game resources, rigid game formats, and lack of appeal to trainees. Therefore, the configuration of traditional online training games is not flexible enough. Summary of the invention

[0004] The present invention provides a method and device for publishing training game resources and a computer-readable storage medium, the main purpose of which is to solve the problem that the configuration of training online games is not flexible enough.

[0005] To achieve the above object, the present invention provides a method for publishing training game resources, comprising:

[0006] Obtain a game title, query a game URL address corresponding to the game title, configure a preset game template according to the game URL address, and obtain an original game interface;

[0007] Receiving the nesting instruction uploaded by the instructor, and nesting the game title and the original game interface according to the nesting instruction to generate a preliminary game interface;

[0008] Loading the pre-uploaded game rules into the preliminary game interface, configuring the preliminary game interface according to the loaded game rules to obtain a final game interface;

[0009] The final game interface is published to the game resource library, and the final game interface is pushed to the student end through the interface.

[0010] Optionally, configuring a preset game template according to the game URL address to obtain an original game interface includes:

[0011] Parsing the path parameters of the game URL address;

[0012] The pre-obtained basic template is configured using the path parameters to obtain a link template;

[0013] In the selection page of the link template, the preview parameters of the link template are set through the iframe function to obtain the original game interface.

[0014] Optionally, nesting the game title and the original game interface according to the nesting instruction includes:

[0015] Acquire game content data according to the game URL address in the original game interface;

[0016] The game content data is used to replace and fill in the filling items in the original game interface.

[0017] Optionally, acquiring game content data according to the game URL address in the original game interface includes:

[0018] Call the data class corresponding to the game URL address;

[0019] Generate page data through the print stream object in the data class;

[0020] The game content data is extracted from the page data using a preset asynchronous transmission method.

[0021] Optionally, the loading of the pre-uploaded game rules into the preliminary game interface includes at least one of the following:

[0022] Load the game rules that display the right and wrong answer screen;

[0023] Load the game rules that shuffle the order of game levels;

[0024] Load the game rules to determine whether the game is cleared;

[0025] Loads the game rules that show the detailed analysis of the game.

[0026] Optionally, the loading of the game rules for displaying the correct or incorrect answer screen includes:

[0027] Setting a click event for the answer option, wherein the click event includes a correct answer click event and an incorrect answer click event;

[0028] When the correct answer click event is detected to be triggered, at least one of the following operations is performed: increasing the game points of the student terminal that triggered the correct answer click event, and performing a UI special effect animation display on the student terminal that triggered the correct answer click event;

[0029] When the triggering of the wrong answer click event is detected, at least one of the following operations is performed: reducing the game points of the student end that triggered the wrong answer click event, and performing a failure animation prompt on the student end that triggered the wrong answer click event.

[0030] Optionally, the loading of game rules for determining whether the game is cleared includes:

[0031] In the game, a counter is set to record the user's game points;

[0032] Determine the game type according to the game title;

[0033] Setting corresponding levels for the game according to the game type, and setting the score thresholds for the corresponding levels;

[0034] An action trigger event is set for each level page. When the user jumps to the level page, the action trigger event is executed, wherein the action trigger event includes comparing the user's accumulated game points with the point threshold of the level. When the accumulated game points are greater than or equal to the point threshold of the level, it is judged as a successful clearance; when the accumulated points are less than the point threshold of the level, it is judged as a failed clearance.

[0035] In order to solve the above problems, the present invention also provides a publishing device for training game resources, the device comprising:

[0036] A game acquisition module, used to acquire a game title, query a game URL address corresponding to the game title, configure a preset game template according to the game URL address, and obtain an original game interface;

[0037] A game nesting module, used to receive a nesting instruction uploaded by the instructor, and nest the game title and the original game interface according to the nesting instruction to generate a preliminary game interface;

[0038] A game rule module, used to load the pre-uploaded game rules into the preliminary game interface, configure the preliminary game interface according to the loaded game rules, and obtain a final game interface;

[0039] The game publishing module is used to publish the final game interface to the game resource library and push the final game interface to the student end through the interface.

[0040] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0041] at least one processor; and,

[0042] a memory communicatively connected to the at least one processor; wherein,

[0043] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned method for publishing training game resources.

[0044] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned method for publishing training game resources.

[0045] The embodiment of the present invention adopts a method of nesting game templates and game titles to generate games, so that programmers do not have to consider game copywriting and title content, which reduces game development time and reduces game research and development costs; through the connection between the game template library and the lecturer, the lecturer can freely select the matching game template and game rules according to the title to generate the final game interface, thereby expanding the training game resources and increasing the flexibility of training game configuration; obtaining the game feedback of the trainees, it is convenient for the lecturer to understand the knowledge and skills mastery and weak links of the trainees, improve the teaching efficiency of the lecturer, and also facilitate the administrator to understand the game preferences of the trainees and further push game templates that meet the preferences of the trainees. Therefore, the publishing method, device, equipment and medium of the training game resources proposed by the present invention can solve the problem that the configuration of online training games is not flexible enough. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a flow chart of a method for publishing training game resources provided by an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of a flow chart of configuring an original game interface provided by an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of a process for obtaining game content data provided by an embodiment of the present invention;

[0049] Figure 4 A functional module diagram of a device for publishing training game resources provided by an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of the structure of an electronic device for implementing the method for publishing training game resources provided by an embodiment of the present invention.

[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0053] The embodiment of the present application provides a method for publishing training game resources. The execution subject of the method for publishing training game resources includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the method for publishing training game resources can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0054] Reference Figure 1 FIG. 1 is a flow chart of a method for publishing training game resources provided by an embodiment of the present invention. In this embodiment, the method for publishing training game resources includes:

[0055] S1. Obtain a game title, query a game URL address corresponding to the game title, configure a preset game template according to the game URL address, and obtain an original game interface;

[0056] In an embodiment of the present invention, the game title may be a game title pre-stored in a blockchain, including training knowledge point cases, supporting correct answers and wrong answers, specific case analysis, etc. The game title may be pre-input and uploaded by a user.

[0057] Specifically, the game template can be any game template that is easy to transplant and modularize, such as an H5 game template, a WeChat applet game template, etc.

[0058] In the embodiment of the present invention, since different game support files are stored in different network addresses, a python query statement can be used to query and obtain the game URL address corresponding to the game title, so as to facilitate the subsequent detailed configuration of the content corresponding to the game title and improve the accuracy of the configuration.

[0059] In detail, see Figure 2 As shown, the preset game template is configured according to the game URL address to obtain the original game interface, including:

[0060] S21, parsing the path parameters of the game URL address;

[0061] S22, configuring the pre-acquired basic template using the path parameters to obtain a link template;

[0062] S23. In the link template selection page, the preview parameters of the link template are set through the iframe function to obtain the original game interface.

[0063] In detail, the game URL address can be parsed using a preset parser to obtain path parameters, wherein the parser includes: a host address parser, a port number parser, and a path parameter parser; the path parameter is the storage path of the game-related data corresponding to the game title.

[0064] The preview parameters include the border size, position and other parameters of the link template, and are paired with the game URL address, so that the game template can be previewed in real time within the page border, which is convenient for the instructor to select.

[0065] S2, receiving the nesting instruction uploaded by the instructor, and nesting the game title and the original game interface according to the nesting instruction to generate a preliminary game interface;

[0066] In an application scenario of the present invention, the front-end page of the instructor can preview the game templates and game titles in the database, and issue nested instructions through UI interaction.

[0067] In detail, the lecturer end is an operating device for lecturers. For example, in the process of teaching students, the computer terminal used by the teacher is the lecturer end.

[0068] Specifically, nesting the game title and the original game interface according to the nesting instruction includes:

[0069] Acquire game content data according to the game URL address in the original game interface;

[0070] The game content data is used to replace and fill in the filling items in the original game interface.

[0071] In detail, the game content data includes but is not limited to:

[0072] Game UI interface configuration parameters;

[0073] Game background image, storage path of the background image;

[0074] Game background music, storage path of the background music;

[0075] The game's functions trigger events and respond with animation effects.

[0076] Further, Figure 3 As shown, the obtaining of game content data according to the game URL address in the original game interface includes:

[0077] S31, calling the data class corresponding to the game URL address;

[0078] S32, generating page data through the print stream object in the data class;

[0079] S33. Extract the game content data from the page data using a preset asynchronous transmission method.

[0080] In detail, the data class can be a servlet class, which is a small program running in the front-end server. Since the front-end page needs to transmit a large amount of data with the database in real time, servlet can be used as a transfer station to reduce the possibility of data exposure and improve data security.

[0081] In detail, the page data may be XML data, where XML is an extensible markup language. XML can be used to classify form data for easy subsequent replacement.

[0082] In detail, the asynchronous transmission method can be an ajax method. Ajax is a browser technology independent of server software and is used to complete front-end data exchange. It enables the front-end to refresh part of the data without refreshing the entire page, thereby achieving a real-time preview effect.

[0083] The obtained game title data is associated with the replacement item in the original game interface on the temporary server through the data receiving method, and the replacement statement is called through the asynchronous transmission method to replace it.

[0084] S3. Load the pre-uploaded game rules into the preliminary game interface, configure the preliminary game interface according to the loaded game rules, and obtain the final game interface.

[0085] In the embodiment of the present invention, the loading of the pre-uploaded game rules into the preliminary game interface includes at least one of the following:

[0086] Load the game rules that display the right and wrong answer screen;

[0087] Load the game rules that shuffle the order of game levels;

[0088] Load the game rules to determine whether the game is cleared;

[0089] Loads the game rules that show the detailed analysis of the game.

[0090] In detail, the game rule of scrambling the order of game questions refers to changing the order of appearance of questions in the question bank during the game, for example, exchanging the game question numbered 1 with the game question numbered 4, so as to reduce the behavior of students memorizing answers.

[0091] In the embodiment of the present invention, by loading the at least one game rule mentioned above, the selectivity of the subsequent configuration of the preliminary game interface can be improved, thereby improving the flexibility of the game configuration.

[0092] Furthermore, the game rules for loading and displaying the screen showing whether the answer is right or wrong include:

[0093] Setting a click event for the answer option, wherein the click event includes a correct answer click event and an incorrect answer click event;

[0094] When the correct answer click event is detected to be triggered, at least one of the following operations is performed: increasing the game points of the student terminal that triggered the correct answer click event, and performing a UI special effect animation display on the student terminal that triggered the correct answer click event;

[0095] When the triggering of the wrong answer click event is detected, at least one of the following operations is performed: reducing the game points of the student end that triggered the wrong answer click event, and performing a failure animation prompt on the student end that triggered the wrong answer click event.

[0096] Furthermore, the loading of game rules for determining whether the game is cleared includes:

[0097] In the game, a counter is set to record the user's game points;

[0098] Determine the game type according to the game title;

[0099] Setting corresponding levels for the game according to the game type, and setting the score thresholds for the corresponding levels;

[0100] An action trigger event is set for each level page. When the user jumps to the level page, the action trigger event is executed, wherein the action trigger event includes comparing the user's accumulated game points with the point threshold of the level. When the accumulated game points are greater than or equal to the point threshold of the level, it is judged as a successful clearance; when the accumulated points are less than the point threshold of the level, it is judged as a failed clearance.

[0101] Furthermore, the loading of the game rules for disrupting the order of the game titles includes:

[0102] Setting a sequence array for the game title list, and associating the game title list with array items through the sequence array;

[0103] Using a random function to shuffle the array items;

[0104] When loading game data, call the shuffled array, refresh the page data through the asynchronous transmission method, and get the shuffled game levels.

[0105] S4. Publish the final game interface to the game resource library, and push the final game interface to the student end through the interface.

[0106] In the embodiment of the present invention, the student terminal is an operating device for the student group. For example, when the students are learning games, the computer terminal used by the students is the student terminal.

[0107] In an application scenario of the present invention, the instructor renames the final game interface and uploads it from the temporary storage server to the game resource library. The game resource library provides a standard interface, which can be connected to a third-party training and teaching platform, and synchronizes the final game interface to the student terminal in real time through the interface;

[0108] The game resource library applies for the URL address of the game. The instructor can directly share the URL address of the game and let the students scan the code to participate in the game interaction.

[0109] In the embodiment of the present invention, after the final game interface is pushed to the student terminal through the interface, the method further includes:

[0110] Recovering the user data generated by the student terminal;

[0111] The user data is fed back to the instructor end.

[0112] Specifically, the recovering of the user data generated by the student terminal includes:

[0113] Set a counter for the game question to record the result after the student plays the question. The background will count the correct rate of the question based on the result.

[0114] Set a play counter and a clearance counter for the game levels to record the number of times students play the level and the number of times they complete the level. The background will count the clearance rate of the game based on the number of times the level is completed.

[0115] The obtained results such as the correct rate of questions and the rate of passing levels are pushed to the instructor, so that the instructor can understand the students' knowledge and skills and their weak links, and improve the instructor's teaching efficiency.

[0116] In other embodiments of the present invention, the data obtained after the user data is sorted can also be fed back to a preset administrator end. The administrator end can understand the students' gaming preferences based on the feedback data and further push game templates that meet the students' preferences.

[0117] The embodiment of the present invention adopts a method of nesting game templates and game titles to generate games, so that programmers do not have to consider game copywriting and title content, which reduces game development time and reduces game research and development costs; through the connection between the game template library and the lecturer, the lecturer can freely select the matching game template and game rules according to the title to generate the final game interface, thereby expanding the training game resources and increasing the flexibility of training game configuration; obtaining the game feedback of the trainees, it is convenient for the lecturer to understand the knowledge and skills mastery and weak links of the trainees, improve the teaching efficiency of the lecturer, and also facilitate the administrator to understand the game preferences of the trainees and further push the game templates that meet the preferences of the trainees. Therefore, the publishing method of training game resources proposed by the present invention can solve the problem that the configuration of online training games is not flexible enough.

[0118] like Figure 4 , which is a functional module diagram of a device for publishing training game resources provided by an embodiment of the present invention.

[0119] The apparatus 100 for publishing training game resources of the present invention can be installed in an electronic device. According to the functions to be implemented, the apparatus 100 for publishing training game resources can include a game acquisition module 101, a game nesting module 102, a game rule module 103, and a game publishing module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, and is stored in the memory of the electronic device.

[0120] In this embodiment, the functions of each module / unit are as follows:

[0121] The game acquisition module 101 is used to acquire a game title, query a game URL address corresponding to the game title, configure a preset game template according to the game URL address, and obtain an original game interface;

[0122] The game nesting module 102 is used to receive the nesting instruction uploaded by the instructor, and nest the game title and the original game interface according to the nesting instruction to generate a preliminary game interface;

[0123] A game rule module 103, used to load the pre-uploaded game rules into the preliminary game interface, configure the preliminary game interface according to the loaded game rules, and obtain a final game interface;

[0124] The game publishing module 104 is used to publish the final game interface to the game resource library and push the final game interface to the student end through an interface.

[0125] In detail, each module described in the apparatus 100 for publishing training game resources in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The same technical means are used as the method for publishing training game resources described in , and can produce the same technical effects, so I will not go into details here.

[0126] like Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a method for publishing training game resources provided by an embodiment of the present invention.

[0127] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a product recommendation program based on user portraits.

[0128] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a product recommendation program based on user portraits, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.

[0129] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a product recommendation program based on a user portrait, but can also be used to temporarily store data that has been output or is to be output.

[0130] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0131] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0132] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0133] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0134] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0135] The publishing program of the training game resources stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0136] Obtain a game title, query a game URL address corresponding to the game title, configure a preset game template according to the game URL address, and obtain an original game interface;

[0137] Receiving the nesting instruction uploaded by the instructor, and nesting the game title and the original game interface according to the nesting instruction to generate a preliminary game interface;

[0138] Loading the pre-uploaded game rules into the preliminary game interface, configuring the preliminary game interface according to the loaded game rules to obtain a final game interface;

[0139] The final game interface is published to the game resource library, and the final game interface is pushed to the student end through the interface.

[0140] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0141] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0142] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0143] Obtain a game title, query a game URL address corresponding to the game title, configure a preset game template according to the game URL address, and obtain an original game interface;

[0144] Receiving the nesting instruction uploaded by the instructor, and nesting the game title and the original game interface according to the nesting instruction to generate a preliminary game interface;

[0145] Loading the pre-uploaded game rules into the preliminary game interface, configuring the preliminary game interface according to the loaded game rules to obtain a final game interface;

[0146] The final game interface is published to the game resource library, and the final game interface is pushed to the student end through the interface.

[0147] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0148] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, 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.

[0149] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0150] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0151] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0152] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0153] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0154] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for publishing training game resources, characterized in that: The method comprises: Obtain a game title, query a game URL address corresponding to the game title, parse the path parameters of the game URL address, configure a pre-obtained basic template using the path parameters to obtain a link template, set a preview parameter of the link template through an iframe function in a selection page of the link template, and obtain an original game interface; Receive the nested instruction uploaded by the instructor, call the data class corresponding to the game URL address according to the nested instruction to obtain game content data, and use the game content data to replace and fill in the fill items in the original game interface to generate a preliminary game interface; Loading the pre-uploaded game rules into the preliminary game interface, configuring the preliminary game interface according to the loaded game rules to obtain a final game interface; The final game interface is published to the game resource library, and the final game interface is pushed to the student end through the interface.

2. The method for publishing training game resources as claimed in claim 1, characterized in that: The step of acquiring game content data by calling the data class corresponding to the game URL address according to the nested instruction includes: Call the data class corresponding to the game URL address; Generate page data through the print stream object in the data class; The game content data is extracted from the page data using a preset asynchronous transmission method.

3. The method for publishing training game resources according to claim 1, characterized in that: The step of loading the pre-uploaded game rules into the preliminary game interface includes at least one of the following: Load the game rules that display the right and wrong answers screen; Load the game rules that shuffle the order of game levels; Load the game rules to determine whether the game is cleared; Loads the game rules that show the specific analysis of the game.

4. The method for publishing training game resources according to any one of claims 3, wherein the loading of the game rules for displaying the right and wrong answer screen comprises: Setting a click event for the answer option, wherein the click event includes a correct answer click event and an incorrect answer click event; When the correct answer click event is detected to be triggered, at least one of the following operations is performed: increasing the game points of the student terminal that triggered the correct answer click event, and performing a UI special effect animation display on the student terminal that triggered the correct answer click event; When the triggering of the wrong answer click event is detected, at least one of the following operations is performed: reducing the game points of the student end that triggered the wrong answer click event, and performing a failure animation prompt on the student end that triggered the wrong answer click event.

5. The method for publishing training game resources according to any one of claims 1 to 4, characterized in that: The loading of the game rules for determining whether the game is cleared includes: In the game, a counter is set to record the user's game points; Determine the game type according to the game title; Setting corresponding levels for the game according to the game type, and setting the score thresholds for the corresponding levels; An action trigger event is set for each level page. When the user jumps to the level page, the action trigger event is executed, wherein the action trigger event includes comparing the user's accumulated game points with the point threshold of the level. When the accumulated game points are greater than or equal to the point threshold of the level, it is judged as a successful clearance; when the accumulated points are less than the point threshold of the level, it is judged as a failed clearance.

6. A device for publishing training game resources, characterized in that: The device comprises: A game acquisition module is used to acquire a game title, query a game URL address corresponding to the game title, parse the path parameters of the game URL address, configure a pre-acquired basic template using the path parameters to obtain a link template, and set a preview parameter of the link template through an iframe function in a selection page of the link template to obtain an original game interface; The game nesting module is used to receive the nesting instruction uploaded by the instructor, call the data class corresponding to the game URL address according to the nesting instruction to obtain the game content data, and use the game content data to replace and fill in the filling items in the original game interface to generate a preliminary game interface; A game rule module, used to load the pre-uploaded game rules into the preliminary game interface, configure the preliminary game interface according to the loaded game rules, and obtain a final game interface; The game publishing module is used to publish the final game interface to the game resource library and push the final game interface to the student end through the interface.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for publishing training game resources according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for publishing training game resources according to any one of claims 1 to 5 is implemented.