Method, device and computer-readable storage medium for adjusting level difficulty
By dynamically adjusting the AI's batting operation in ball games based on the score and batting success rate of the player and the AI opponent, it solves the problem of inability to adapt the level difficulty in traditional ball games and achieves an improvement and balance in the game experience. sex.
Patent Information
- Application Number
- CN202410694260.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The level difficulty and virtual opponent game operations in traditional ball games are pre-configured and cannot be adapted to players of different game levels, resulting in the inability to guarantee the gaming experience of most game players.
By dynamically adjusting the AI opponent's batting operation based on the cumulative score between the player and the AI opponent, and adjusting the AI opponent's batting mode, ball flight distance, speed and speed in real time based on the player's spiking success rate and catch success rate. height to ensure that the game difficulty matches the player's level.
It is possible to dynamically adjust the difficulty of AI opponent's batting operation according to the player's score level, ensuring the balance and challenge of the game experience, and adapting to players of different game levels.
Smart Images

Figure CN118267717B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of program development, and in particular to a method and device for adjusting level difficulty and a computer-readable storage medium. Background Art
[0002] In traditional ball games, the difficulty of levels and the game operations of virtual opponents are pre-configured. However, the levels of game players vary greatly, and a set of pre-configured level difficulties cannot be adapted to players of different game levels, which makes it difficult to guarantee the gaming experience of most game players.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device and computer-readable storage medium for adjusting level difficulty, aiming to solve the technical problem that in traditional ball games, the level difficulty and the game operation of virtual opponents are pre-configured, which cannot be adapted to players of different game levels and is difficult to guarantee the gaming experience of most game players.
[0005] To achieve the above purpose, the present application provides a method for adjusting the level difficulty, and the method for adjusting the level difficulty comprises the following steps:
[0006] At the end of the current round, the score between the player and the AI opponent, as well as the player's corresponding spiking success rate and receiving success rate are determined based on the accumulated scores of the player and the AI opponent;
[0007] The batting operation of the AI opponent is dynamically adjusted according to the score, the spiking success rate and the receiving success rate.
[0008] In one embodiment, before the step of determining the score between the player and the AI opponent, and the corresponding spiking success rate and receiving success rate of the player according to the accumulated scores of the player and the AI opponent at the end of the current round, the step further includes:
[0009] Obtain the game level and game winning rate of the player;
[0010] Determine the weight values corresponding to the game level, the game winning rate and the spiking success rate respectively;
[0011] Calculating the player level index of the player according to the game level, the game winning rate and the spiking success rate and the corresponding weight values;
[0012] Based on the preset corresponding relationship between the player level index and the AI opponent level, the basic level of the AI opponent is determined, and the initial operation parameters of the AI opponent are set based on the basic level.
[0013] In one embodiment, the step of determining the score between the player and the AI opponent, and the corresponding spiking success rate and receiving success rate of the player according to the accumulated scores of the player and the AI opponent at the end of the current round further includes:
[0014] Based on the scores of each round between the player and the AI opponent, the scores of the player and the AI opponent are accumulated and counted;
[0015] Based on the monitored spiking events, catching events and event results triggered by the player in each round, the spiking success rate and catching success rate of the player are calculated.
[0016] In one embodiment, the step of dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate, and the receiving success rate comprises:
[0017] Based on the score, determining a score difference between the AI opponent and the player, and determining a batting mode to be adjusted by the AI opponent based on the score difference;
[0018] Obtaining the horizontal distance between the player and the AI opponent and the player's jumping height;
[0019] According to the spiking success rate and the receiving success rate, based on the horizontal distance and the player's jump height, adjusting the ball flight distance, ball flight speed and ball flight height of the AI opponent;
[0020] Based on the batting mode, the adjusted ball flight distance, ball flight speed and ball flight height, the AI opponent is controlled to perform a corresponding batting operation.
[0021] In one embodiment, the step of adjusting the ball flight distance, ball flight speed and ball flight height of the AI opponent according to the spiking success rate and the receiving success rate, based on the horizontal distance and the player's take-off height, includes:
[0022] Based on a preset ball path curve library, according to the spiking success rate, the horizontal distance and the player's jump height, the ball flight distance is retrieved and determined;
[0023] The flying height and the flying speed of the ball are determined according to the ball catching success rate and the player's jumping height.
[0024] In one embodiment, the step of controlling the AI opponent to perform a corresponding batting operation based on the batting mode, the adjusted ball flight distance, the ball flight speed, and the ball flight height comprises:
[0025] Determining a trigger probability of a spiking operation corresponding to the batting mode according to a magnitude relationship between the score difference and a preset difference interval;
[0026] determining a ball flight path based on the ball flight distance, the ball flight speed, and the ball flight height;
[0027] Based on the trigger probability and the ball flight path, the AI opponent is controlled to perform the hitting operation.
[0028] In one embodiment, after the step of dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate, the step further includes:
[0029] When the player completes the current level, collecting the operation behavior data of the player in each round in the current level;
[0030] Based on the operation behavior data, analyzing the influencing factors related to the level difficulty setting and the corresponding correlation degree;
[0031] According to the influencing factors and the degree of correlation, the initial operation values of the AI opponent at the next level are planned and configured.
[0032] In one embodiment, after the step of dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate, the step further includes:
[0033] When the player finishes the current level, displaying a feedback form based on the feedback interface;
[0034] According to the feedback data received by the feedback form, identifying corresponding user feedback opinions;
[0035] Based on the feedback, an adjustment strategy for adjusting the batting operation of the AI opponent is determined, and the batting operation of the AI opponent is adjusted based on the adjustment strategy.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a level difficulty adjustment device, which includes: a memory, a processor, and a level difficulty adjustment program stored in the memory and executable on the processor, and the level difficulty adjustment program is configured to implement the steps of the level difficulty adjustment method as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a level difficulty adjustment program is stored. When the level difficulty adjustment program is executed by a processor, the steps of the level difficulty adjustment method as described above are implemented.
[0038] The embodiment of the present application provides a method for adjusting the difficulty of a level. When a player ends a round, the score between the player and the AI opponent and the corresponding spiking success rate and receiving success rate are determined according to the cumulative score of the player and the AI opponent. The batting operation of the AI opponent is dynamically adjusted according to the score, the player's spiking success rate and the receiving success rate. The present application can dynamically adjust the batting operation difficulty of the AI opponent according to the player's score level in real time during the game, thereby ensuring a better gaming experience for the player. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 This is a flow chart of the first embodiment of the method for adjusting the level difficulty of this application;
[0042] Figure 2 This is a flow chart of a second embodiment of the method for adjusting the level difficulty of this application;
[0043] Figure 3 This is a flow chart of a third embodiment of the method for adjusting the level difficulty of this application;
[0044] Figure 4 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.
[0045] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] 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.
[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] The main solution of the embodiment of the present application is: when the player ends the round, the score between the player and the AI opponent and the corresponding spiking success rate and receiving success rate are determined according to the cumulative scores of the player and the AI opponent, and the AI opponent's batting operation is dynamically adjusted according to the score and the player's spiking success rate and receiving success rate.
[0049] In traditional ball games, the difficulty of levels and the game operations of virtual opponents are pre-configured. However, the levels of game players vary greatly, and a set of pre-configured level difficulties cannot be adapted to players of different game levels, which makes it difficult to guarantee the gaming experience of most game players.
[0050] This application combines the difficulty adjustment device of the level to dynamically adjust the difficulty of the AI opponent's batting operation according to the player's score level in real time during the player's game process, thereby ensuring a better gaming experience for the player.
[0051] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a level difficulty adjustment device, etc. The following takes the level difficulty adjustment device as an example to illustrate this embodiment and the following embodiments.
[0052] Based on this, the present application embodiment provides a method for adjusting the level difficulty, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for adjusting level difficulty of the present application.
[0053] In this embodiment, the method for adjusting the level difficulty includes:
[0054] Step S10: At the end of the current round, the score between the player and the AI opponent, as well as the corresponding spiking success rate and receiving success rate of the player are determined according to the accumulated scores of the player and the AI opponent.
[0055] In this embodiment, the types of ball games that players participate in can be badminton, table tennis, tennis, etc. In this game, the AI opponent that competes with the player is simulated by artificial intelligence. The AI opponent can make inferences and decisions based on the game rules and algorithms, thereby performing operations such as catching and hitting the ball. The ball game is set with multiple levels, and each level adopts a turn-based system. After each round in the game, the cumulative scores of the player and the AI opponent will be counted, and then the score of the player and the AI opponent will be determined, and the corresponding catching success rate and spiking success rate of the player and the AI opponent will be determined respectively. The score between the player and the AI opponent can reflect whether the game level of the player and the AI opponent matches, while the catching success rate and spiking success rate can reflect the player's batting habits and operating style.
[0056] Furthermore, after the player and the AI opponent finish the current round, the score changes, and the spiking success rate and receiving success rate of the player and the AI opponent also change accordingly. After the current round of the game ends, the cumulative scores of the player and the AI opponent are calculated according to the game rules and scoring mechanism, and the score is determined according to the cumulative scores. When the player is spiking and receiving the ball, he can do it by clicking the mouse or pressing the fixed operation keys on the keyboard, so a monitoring event can be added to the game program, and the monitoring event is used to monitor the number of spiking operations and receiving operations triggered by the player and the AI opponent respectively, and calculate the spiking success rate and receiving success rate of the player and the AI opponent respectively through the trigger results of both parties. As a feasible implementation method, the corresponding event type, callback function and optional Boolean value are set for the monitoring event. Among them, the event type is the specific event that needs to be monitored, such as click events, mouse movement events, keyboard key events, etc. The callback function is the function that is called when the event occurs. The logic of this function is to determine whether the spike is successful and how to calculate the success rate of the spike. When a specific event of spiking or receiving is detected, the system will automatically call the pre-registered callback function to handle the event, thereby obtaining the spiking success rate and receiving success rate of the player and AI opponent.
[0057] In this embodiment, by analyzing the player's score and the player's batting operation success rate, it is convenient to adjust the level difficulty to suit the player's current game level.
[0058] Step S20: dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate.
[0059] In this embodiment, after one side scores in each round, the scores of both sides, the success rate of spiking and the success rate of receiving the opponent's spiking are analyzed according to the real-time score of the game, so as to dynamically adjust the batting strategy of the AI. The score difference between the AI opponent and the player can be determined by the score, and the amount of the score difference can be used as a determining factor for adjusting the batting strategy of the AI opponent. The batting mode of the AI opponent is adjusted by the size relationship between the score difference and the preset difference interval. For example, if the player leads by more than 5 points, the AI opponent can be adjusted to an aggressive model to launch a spiking attack as much as possible to improve the offensive ability. If the player leads by 2-5 points, the AI opponent is adjusted to a strong defense mode to force the player to make mistakes. If the difference is less than two points, the AI opponent is adjusted to a regular mode to reduce the probability of triggering the spiking and the batting speed, thereby reducing the difficulty of the player's response. The probability of triggering the spiking corresponding to different batting modes is also different.
[0060] Further, for different batting modes, the probability confirmation method of the AI opponent triggering the spike operation can pre-set a difference interval (such as [2, 5]) to determine the size relationship between the score difference between the player and the AI opponent. The probability is adjusted according to the size relationship between the score difference and the preset difference interval. If the score difference between the AI opponent and the player exceeds the maximum value of the preset difference interval in the preset difference interval, the probability of the AI opponent triggering the spike operation should be increased to increase the chance of recovering the score. If the score difference is within the preset difference interval, the probability of the AI opponent triggering the spike operation should remain unchanged. If the score difference is less than the minimum value of the preset difference interval, the probability of the AI opponent triggering the spike operation is reduced to reduce the difficulty. In a feasible implementation, the specific numerical confirmation method for increasing the probability of triggering the spike can be set by setting an increasing linear increase or exponential increase function. The more the maximum value of the preset difference interval is exceeded, the greater the amplitude of the spike trigger probability to be increased. As for the specific numerical value of reducing the probability of triggering the spike, it can also be determined by a decreasing linear function or exponential function.
[0061] Further, after determining the hitting mode selected by the AI opponent, obtain the horizontal distance between the player and the AI opponent and the player's takeoff height. Based on the player's spike success rate, with the horizontal distance and takeoff height as the limiting criteria, select a suitable ball path from the ball path curve library. At the same time, determine the hitting speed that the AI opponent needs to adjust according to the reception success rate. In a feasible implementation, obtain the horizontal distance x between the player and the AI opponent and the player's takeoff height h1, and retrieve through the pre-set ball path curve library. Set the ball flight distance x + d according to the player's spike success rate, where d represents the compensation distance. When the player's spike success rate is lower than the preset success rate, the value range of the compensation distance d is 0 < d < 100, and the highest point of the ball flight height h2 > h1. At the same time, the ball flight speed will also be reduced accordingly. When the player's spike success rate is higher than the preset success rate, it means that the player has mastered the spike technique more proficiently. At this time, the range of the compensation distance d is (d > 100 or d - 100), and the route with the highest point height h2 < h1.
[0062] For each ball path curve, define parameters such as the ball flight distance (x + d), the highest point height (h2), and the flight speed. When the player's spike success rate is too low, select a ball path curve with a reduced flight speed. When the success rate is too high, select a ball path curve without reducing the flight speed. Finally, based on the selected ball path curve parameters, use a physics engine or a mathematical model to generate the ball's flight trajectory. If a ball path curve with a reduced flight speed is selected, the ball's flight speed is reduced accordingly, and the speed can be reduced by 80%. If the flight speed is not reduced, the original speed is maintained. Finally, control the AI opponent to perform corresponding hitting operations based on the adjusted ball flight curve, ball flight height, and ball flight speed. At the same time, according to the adjusted trigger probability of spiking, appropriately trigger a certain number of spiking operations. Optionally, when the player's reception success rate is lower than the preset threshold, the flight trajectory of the ball generated according to the selected ball path curve parameters can also be displayed on the game interface, allowing the player to predict the ball's path and react. During subsequent rounds of the game, continuously update and adjust the ball path curve and the AI opponent's hitting parameters according to the player's performance to ensure the balance and challenge of the game experience.
[0063] It should be noted that the present application also needs to pre-establish a preset ball path curve library, which contains ball path curves with different flight distances and highest point heights. According to the player's spiking success rate, select a suitable ball path curve from the library, and modify the ball path curve generation algorithm in the game to adjust the ball path curve of the AI return ball in real time. At the same time, it is also necessary to determine the key parameters of the ball path curve, including flight distance, highest point height, etc., which will be used to describe the shape and characteristics of the ball path curve. As a feasible implementation method, a suitable mathematical function or curve type can be selected to represent the ball path curve. Common curve types include parabolas, trigonometric function curves (such as sine curves), polynomial curves, etc. Using the selected curve type and parameters, ball path curve data with different flight distances and highest point heights are generated. Curve data can be generated using numerical computing software, programming languages (such as Python), or mathematical modeling tools. The generated curve data is stored in a database, file, or data structure for subsequent retrieval and application in the game. Furthermore, in order to ensure that the format and organization of data storage can be easily and quickly retrieved and accessed, optimization and calibration can be achieved by adjusting parameters, regenerating curve data, or manually editing curve data, and verification and testing can be performed by simulating spike and return processes, visualizing curve data, etc.
[0064] In this embodiment, by dynamically adjusting the batting operation of the AI opponent for the player according to the player's performance in each round of the game, the player's gaming experience can be enhanced while ensuring the balance and challenge of the game.
[0065] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 The second embodiment of the method for adjusting the level difficulty of the present application, before step S10, further includes the following steps:
[0066] Step S30: Obtain the game level and game winning rate of the player.
[0067] Step S40, determining weight values corresponding to the game level, the game winning rate and the spiking success rate respectively.
[0068] Step S50, calculating the player level index of the player according to the game level, the game winning rate and the game operation success rate and the corresponding weight values.
[0069] Step S60: Determine the basic level of the AI opponent based on the preset correspondence between the player level index and the AI opponent level, and set the initial operation parameters of the AI opponent based on the basic level.
[0070] In this embodiment, when a player enters a level for the first time, the basic level of the AI opponent that matches the user can be calculated by obtaining the three parameters of the player's current game level, winning rate, and spiking operation success rate. In a feasible implementation, the player's game level, winning rate, and spiking operation success rate correspond to different weight values, which can be determined by game design and balance testing. For example, the weight of the game level can be set to 30%, the winning rate can be set to 40%, and the spiking operation success rate can be set to 30%. By calculating a comprehensive player level index based on the player's game level, winning rate, and spiking operation success rate, this can be achieved by weighted summation of various data. The player level index is compared with a series of pre-set AI opponent levels to determine the AI opponent level that best matches the player's current game level. This can be achieved by traversing the preset AI levels and calculating the gap between them and the player level index. The AI level closest to the player level index is selected as the matching AI opponent level. Once the matching AI opponent level is determined, the operating parameters of the AI opponent in the new level can be initialized according to the level. These parameters can include the trigger probability of spiking, the height of the shot, the flight speed of the ball, etc.
[0071] Prior to this, a suitable numerical range is defined in advance for each operation parameter (such as spike trigger probability, shot height, ball flight speed). The numerical range is determined according to the game design and difficulty level to ensure that adjusting the parameters within these ranges can produce a suitable game difficulty. For each AI opponent level, a basic parameter value is set. These basic parameter values can be fixed values set according to the difficulty during the game design phase, or values dynamically adjusted according to the AI level and the player level. Optionally, in order to increase the diversity and fun of the game, a certain degree of randomness can be introduced on the basis of the basic parameter value. For example, when determining the probability of spike triggering, a setting of random fluctuations within a small range is added, or when determining the ball flight speed, a random offset is added to the basic speed. In the subsequent process, as the player's game level changes, the matching AI opponent level and operation parameters are dynamically adjusted to ensure the balance and challenge of the game. When the user clears the current level and opens a new level again, the level of the AI opponent matching the player is recalculated.
[0072] In this embodiment, before the player enters the level game, the player is matched with an AI opponent whose level matches his or her own game level according to the player's personal level, spiking success rate and receiving success rate, and the AI opponent's batting operation parameters are initialized. This allows the player to compete with an AI opponent whose game level is close to or equivalent to his or her own when he or she first enters the game, allowing the player to have a smoother gaming experience.
[0073] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned first and second embodiments can be referred to the above introduction, and will not be repeated in the following. Figure 3 The third embodiment of the method for adjusting the level difficulty of the present application, after step S20, further includes the following steps:
[0074] Step S70: When the player completes the current level, collect the operation behavior data of the player in each round in the current level.
[0075] Step S80: Analyze the influencing factors related to the level difficulty setting and the corresponding correlation degree based on the operation behavior data.
[0076] Step S90: planning and configuring the initial operation values of the AI opponent at the next level according to the influencing factors and the correlation degree.
[0077] In this embodiment, after the player completes the current level, the player's operation behavior data in each round is recorded. These data may include information such as the player's batting direction, strength, spiking success rate, and receiving success rate. Use statistical analysis or machine learning methods to analyze the correlation between the operation behavior data and the level difficulty setting. By exploring different influencing factors, such as batting speed, batting direction accuracy, opponent's reaction speed, etc., and the degree of correlation between the above factors and the level difficulty. Based on the results of data analysis, the main factors affecting the level difficulty are determined, and their correlation is calculated. According to the correlation and influencing factors, the initial operation values of the next level AI opponent are formulated. These values can be the initial values for each influencing factor, such as initial spiking speed, reaction speed, etc. Considering the player's game experience, it may be necessary to adjust the initial values of the AI opponent according to the setting of the level difficulty to ensure the balance and playability of the game. The configured initial operation values are implemented in the AI opponent of the next level, and a simulated battle test is performed to verify whether the configured values can achieve the expected effect. According to the test results, the initial values are fine-tuned when necessary to increase the difficulty and fun of the game. After that, we can continue to optimize the level difficulty settings and AI opponent operation values based on player feedback and game data. This can be an iterative process, by constantly collecting data, analyzing data, and adjusting parameters to continuously improve the quality of the game and the player experience.
[0078] Furthermore, the batting operation and difficulty of the AI opponent are adjusted according to user feedback, that is, a feedback mechanism is embedded in the game. After the player finishes a round of a level, a feedback interface for collecting player experience is popped up through the display interface. A feedback form is set in the feedback interface. The collected feedback may include information about the difficulty of the game, the performance of the opponent AI, the satisfaction of the batting operation, whether the batting difficulty of the AI opponent needs to be dynamically adjusted, etc. For the collected user feedback data, natural language processing technology is used to automatically analyze and classify a large amount of user feedback to identify the problems or suggestions generally reflected by players. Then, based on the results of the data analysis, a specific strategy for adjusting the batting operation and difficulty of the AI opponent is formulated. According to the formulated strategy, the game parameters of the AI opponent in the game are adjusted accordingly. For example, if most players reflect that the batting speed of the AI opponent in the previous level is too fast, the number of people who give feedback on the batting speed of the level and the proportion of the total number of feedback can be used as the target adjustment coefficient, so that the batting speed of the AI opponent initialized at the level is correspondingly adjusted downward based on the target adjustment coefficient. In order to verify whether the adjusted AI opponent's batting strategy meets expectations and evaluate the degree of improvement in the player's gaming experience, the adjustment effect can be evaluated through internal testing, small-scale public testing, or A / B testing. Optionally, the feedback form used to collect game opinions can also be submitted and opinions collected through the in-game mail system, social media channels, or online forums.
[0079] In this embodiment, by regularly collecting and analyzing user feedback, continuously optimizing the batting operation and difficulty of the AI opponent, and constantly adjusting and optimizing based on the player's feedback, the operation of the AI opponent can always be consistent with the player's gaming level, thereby ensuring the player's gaming experience.
[0080] The present application provides a device for adjusting level difficulty, the device for adjusting level difficulty comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable 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 adjusting level difficulty in the above-mentioned embodiment 1.
[0081] Reference below Figure 4, which shows a schematic diagram of the structure of a level difficulty adjustment device suitable for implementing the embodiment of the present application. The level difficulty adjustment device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The level difficulty adjustment device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0082] like Figure 4As shown, the level difficulty adjustment device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the level difficulty adjustment device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a level difficulty adjustment device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead. In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above functions defined in the method of the embodiment disclosed in the present application are executed.
[0083] The level difficulty adjustment device provided by the present application adopts the level difficulty adjustment method in the above embodiment, which can solve the technical problem that in traditional ball games, the level difficulty and the game operation of the virtual opponent are pre-configured, and such an approach cannot be adapted to players of different game levels and it is difficult to ensure the game experience of most game players. Compared with the prior art, the beneficial effects of the level difficulty adjustment device provided by the present application are the same as the beneficial effects of the level difficulty adjustment method provided in the above embodiment, and the other technical features in the level difficulty adjustment device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0084] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0086] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the level difficulty adjustment method in the above-mentioned embodiment.
[0087] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0088] The computer-readable storage medium may be included in the device for adjusting the level difficulty; or may exist independently without being assembled into the device for adjusting the level difficulty.
[0089] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the level difficulty adjustment device, the level difficulty adjustment device: at the end of the current round, determines the score between the player and the AI opponent, and the player's corresponding spiking success rate and receiving success rate based on the accumulated scores of the player and the AI opponent; and dynamically adjusts the AI opponent's batting operation based on the score, the spiking success rate and the receiving success rate.
[0090] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0091] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0092] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0093] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for adjusting the level difficulty, and can solve the technical problem that in traditional ball games, the level difficulty and the game operation of the virtual opponent are pre-configured, and such an approach cannot be adapted to players of different game levels, and it is difficult to ensure the game experience of most game players. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for adjusting the level difficulty provided by the above-mentioned embodiment, and will not be repeated here.
[0094] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the method for adjusting level difficulty as described above when the computer program is executed by a processor.
[0095] The computer program product provided by the present application can solve the technical problem that in traditional ball games, the level difficulty and the game operation of the virtual opponent are pre-configured, and such an approach cannot be adapted to players of different game levels and it is difficult to ensure the game experience of most game players. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the method for adjusting the level difficulty provided by the above embodiment, and will not be repeated here.
[0096] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for adjusting level difficulty, characterized in that: The method includes: At the end of the current round, the score between the player and the AI opponent, as well as the player's corresponding spiking success rate and receiving success rate are determined based on the accumulated scores of the player and the AI opponent, wherein the AI opponent makes inferences and decisions based on the game rules and algorithms, and performs the operations of receiving and hitting the ball; Dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate, wherein the batting mode of the AI opponent is adjusted according to the size relationship between the score difference and a preset difference interval, and pre-establishing a preset ball path curve library, including ball path curves of different flight distances and highest point heights; After the step of dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate, the method further includes: When the player completes the current level, collecting the operation behavior data of the player in each round in the current level; Based on the operation behavior data, analyzing the influencing factors related to the level difficulty setting and the corresponding correlation degree; According to the influencing factors and the degree of correlation, the initial operation values of the AI opponent at the next level are planned and configured.
2. The method according to claim 1, characterized in that Before the step of determining the score between the player and the AI opponent, and the corresponding spiking success rate and receiving success rate of the player according to the accumulated scores of the player and the AI opponent at the end of the current round, the method further includes: Obtain the game level and game winning rate of the player; Determine the weight values corresponding to the game level, the game winning rate and the spiking success rate respectively; Calculating the player level index of the player according to the game level, the game winning rate and the spiking success rate and the corresponding weight values; Based on the preset corresponding relationship between the player level index and the AI opponent level, the basic level of the AI opponent is determined, and the initial operation parameters of the AI opponent are set based on the basic level.
3. The method according to claim 1, characterized in that The step of determining the score between the player and the AI opponent, and the corresponding spiking success rate and receiving success rate of the player according to the accumulated scores of the player and the AI opponent at the end of the current round also includes: Based on the scores of each round between the player and the AI opponent, the scores of the player and the AI opponent are accumulated and counted; Based on the monitored spiking events, catching events and event results triggered by the player in each round, the spiking success rate and catching success rate of the player are calculated.
4. The method according to claim 1, characterized in that The step of dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate comprises: Based on the score, determining a score difference between the AI opponent and the player, and determining a batting mode to be adjusted by the AI opponent based on the score difference; Obtaining the horizontal distance between the player and the AI opponent and the player's jumping height; According to the spiking success rate and the receiving success rate, based on the horizontal distance and the player's jump height, adjusting the ball flight distance, ball flight speed and ball flight height of the AI opponent; Based on the batting mode, the adjusted ball flight distance, ball flight speed and ball flight height, the AI opponent is controlled to perform a corresponding batting operation.
5. The method according to claim 4, characterized in that The step of adjusting the ball flight distance, ball flight speed and ball flight height of the AI opponent according to the spiking success rate and the receiving success rate, based on the horizontal distance and the player's take-off height, comprises: Based on a preset ball path curve library, according to the spiking success rate, the horizontal distance and the player's jump height, the ball flight distance is retrieved and determined; The flying height and the flying speed of the ball are determined according to the ball catching success rate and the player's jumping height.
6. The method according to claim 4, characterized in that The step of controlling the AI opponent to perform a corresponding batting operation based on the batting mode, the adjusted ball flight distance, the ball flight speed and the ball flight height comprises: Determining a trigger probability of a spiking operation corresponding to the batting mode according to a magnitude relationship between the score difference and a preset difference interval; determining a ball flight path based on the ball flight distance, the ball flight speed, and the ball flight height; Based on the trigger probability and the ball flight path, the AI opponent is controlled to perform the hitting operation.
7. The method according to claim 1, characterized in that After the step of dynamically adjusting the batting operation of the AI opponent according to the score, the spiking success rate and the receiving success rate, the method further includes: When the player finishes the current level, displaying a feedback form based on the feedback interface; According to the feedback data received by the feedback form, identifying corresponding user feedback opinions; Based on the feedback, an adjustment strategy for adjusting the batting operation of the AI opponent is determined, and the batting operation of the AI opponent is adjusted based on the adjustment strategy.
8. A device for adjusting level difficulty, characterized in that: The level difficulty adjustment device includes: a memory, a processor, and a level difficulty adjustment program stored in the memory and executable on the processor, wherein the level difficulty adjustment program is configured to implement the steps of the level difficulty adjustment method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for adjusting the level difficulty. When the program for adjusting the level difficulty is executed by the processor, the steps of the method for adjusting the level difficulty as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Small ball sport processing method based on computer and system thereof
CN102446359A
Object control method and device, game server and medium
CN111803959A
Dynamic difficulty adjustment method for stand-alone breakthrough game
CN116889732A
Method for dynamically adjusting an interactive application such as a videogame based on continuing assessments of user capability
US20070066403A1
Integrated screen baseball platform and method for implementing the same
US9717994B1
