A numerical processing method and device

By setting the matching relationship between the processing type and the category processing parameters in game development, the processing device automatically constructs the numerical processing function, solving the problem of high function complexity in game development and improving development efficiency and flexibility.

CN111367502BActive Publication Date: 2025-07-25SHENZHEN TENCENT INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010143014.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-04
Publication Date
2025-07-25
Estimated Expiration
2040-03-04

AI Technical Summary

Technical Problem

In game development, the numerical processing functions are complex due to the rich content of the game, resulting in large development workload and low efficiency. The functions need to be reset whenever new content is added, which is difficult to maintain.

Method used

By setting the matching relationship between the processing type and the category processing parameters, the processing device constructs a numerical processing function based on the relationship, reducing the workload of developers to manually construct the function.

Benefits of technology

It simplifies the game development process, improves development efficiency, reduces development difficulty, is more logical, and is more flexible when adapting to new processing types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111367502B_ABST
    Figure CN111367502B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a numerical processing method and related device. The method includes: receiving a processing request, where the processing request includes a target processing type; determining a parameter identifier corresponding to the target processing type through a matching relationship; obtaining a category processing parameter corresponding to the parameter identifier from a parameter library according to the parameter identifier; constructing a numerical processing function for the target processing type according to the category processing parameter and an initial numerical processing function; and determining a target numerical value corresponding to the processing request according to the numerical processing function. Through the technical solution of the present application, a processing device can construct a numerical processing function for the target processing type according to the matching relationship. Therefore, during the development process, game developers only need to establish a good matching relationship, instead of constructing numerical processing functions themselves, which reduces the workload of game developers to a certain extent and improves the development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing, and in particular, to a numerical processing method and apparatus. Background Art

[0002] With the continuous enrichment of game content, there are more and more ways for game objects to obtain relevant numerical values. How to determine the relevant numerical values obtained by game objects through various methods is an important issue in ensuring the rationality and balance of games.

[0003] In some related technologies, game developers can set corresponding numerical processing functions according to game content related to numerical values. However, since the methods for processing relevant numerical values are different in different game contents, game developers need to set a large number of numerical processing functions. Moreover, whenever new content related to numerical values appears in the game, new numerical processing functions need to be set, resulting in a large development workload and low development efficiency. Summary of the Invention

[0004] To solve the above technical problems, this application provides a numerical processing method. Based on this numerical processing method, developers only need to set the matching relationship between the processing type and the category processing parameters. When it is necessary to process the numerical values of this processing type, the processing device can find the corresponding category processing parameters according to this matching relationship, and combine the category processing parameters with the initial numerical processing function to obtain the numerical processing function corresponding to this processing type, which reduces the development difficulty to a certain extent, reduces the development workload, and improves the development efficiency.

[0005] The embodiments of this application disclose the following technical solutions:

[0006] In a first aspect, the embodiments of this application provide a numerical processing method, and the method includes:

[0007] Receiving a processing request, where the processing request includes a target processing type;

[0008] Determining a parameter identifier corresponding to the target processing type through a matching relationship;

[0009] Obtaining, from a parameter library, category processing parameters corresponding to the parameter identifier according to the parameter identifier;

[0010] Constructing a numerical processing function for the target processing type according to the category processing parameters and an initial numerical processing function;

[0011] Determining a target numerical value corresponding to the processing request according to the numerical processing function.

[0012] Second aspect, an embodiment of the present application provides a numerical processing device, which includes a receiving unit, a first determining unit, an obtaining unit, a constructing unit, and a second determining unit:

[0013] The receiving unit is configured to receive a processing request, and the processing request includes a target processing type;

[0014] The first determining unit is configured to determine a parameter identifier corresponding to the target processing type through a matching relationship;

[0015] The obtaining unit is configured to obtain, according to the parameter identifier, a category processing parameter corresponding to the parameter identifier from a parameter library;

[0016] The constructing unit is configured to construct a numerical processing function for the target processing type according to the category processing parameter and an initial numerical processing function;

[0017] The second determining unit is configured to determine a target value corresponding to the processing request according to the numerical processing function.

[0018] Third aspect, an embodiment of the present application provides a device for numerical processing, which includes a processor and a memory:

[0019] The memory is configured to store program code and transmit the program code to the processor;

[0020] The processor is configured to execute the numerical processing method described in the first aspect according to the instructions in the program code.

[0021] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is configured to store a computer program, and the computer program is configured to execute the numerical processing method described in the first aspect.

[0022] It can be seen from the above technical solutions that after receiving a processing request, the processing device can obtain the target processing type from the processing request, determine the parameter identifier corresponding to the target processing type through a matching relationship, and obtain the category processing parameter corresponding to the parameter identifier from the parameter library, and then construct a numerical processing function for the target processing type through the initial numerical processing function and the category processing parameter. Therefore, when a new processing type needs to be added to the game, game developers only need to establish a new matching relationship during the development process, so that the processing device can construct a new numerical processing function corresponding to the processing type according to the matching relationship, instead of game developers constructing a new numerical processing function by themselves, which reduces the workload of game developers to a certain extent and improves the development efficiency. Description of the Drawings

[0023] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0024] Figure 1 Schematic diagram of a numerical processing method in an actual application scenario provided by an embodiment of the present application;

[0025] Figure 2 Flowchart of a numerical processing method provided by an embodiment of the present application;

[0026] Figure 3 Schematic diagram of a numerical processing method provided by an embodiment of the present application;

[0027] Figure 4 Schematic diagram of a numerical processing method provided by an embodiment of the present application;

[0028] Figure 5 Schematic diagram of a numerical processing method in an actual application scenario provided by an embodiment of the present application;

[0029] Figure 6 Schematic diagram of a numerical processing method in an actual application scenario provided by an embodiment of the present application;

[0030] Figure 7 Structural block diagram of a numerical processing device provided by an embodiment of the present application;

[0031] Figure 8 Structural diagram of a device for numerical processing provided by an embodiment of the present application;

[0032] Figure 9 Structural diagram of a server provided by an embodiment of the present application. Detailed implementation manners

[0033] The following describes the embodiments of the present application with reference to the accompanying drawings.

[0034] The numerical values of game objects are key aspects that need to be concerned to maintain the rationality and balance of the game. Ensuring the accuracy of game numerical processing is a prerequisite for maintaining the normal operation of a game. In related technologies, when developers develop a game, they need to consider the impact of various types of game content on game numerical processing. Therefore, it is necessary to add parameters corresponding to each game content to the function used to determine game numerical values. As game content becomes increasingly rich, the factors that can affect game numerical processing are also increasing. As a result, the parameters added by developers in the function are also increasing, making the function more and more complex. This will cause difficulties in determining which parameter value in the function to use for processing when the game is operating. In addition, whenever new game content appears, developers need to modify the function. Due to the high complexity of the function, the workload required for modification is large, and the development efficiency is low.

[0035] To solve the above technical problems, this application provides a numerical processing method. Based on this numerical processing method, developers only need to set the matching relationship between the processing type and the category processing parameters. When it is necessary to process the numerical values of this processing type, the processing device can find the corresponding category processing parameters according to this matching relationship, and combine the category processing parameters with the initial numerical processing function to obtain the numerical processing function corresponding to this processing type, which reduces the development difficulty to a certain extent, reduces the development workload, and improves the development efficiency.

[0036] It can be understood that this method can be applied to a processing device, which is a processing device capable of performing numerical processing. For example, it can be a terminal device or a server with numerical processing functions. This method can be independently executed by a terminal device or a server, or can be applied to a network scenario where a terminal device and a server communicate, and is executed in cooperation with the terminal device and the server. Among them, the terminal device can be a computer, a personal digital assistant (Personal Digital Assistant, abbreviated as PDA), a tablet computer and other devices. The server can be understood as an application server or a Web server. In actual deployment, this server can be an independent server or a cluster server. At the same time, in the hardware environment, the environments where this technology has been implemented are: ARM architecture processors, X86 architecture processors; in the software environment, the environments where this technology has been implemented are: Android platform, Windows xp and above operating systems or Linux operating systems.

[0037] To facilitate the understanding of the technical solution of this application, the numerical processing method provided by the embodiments of this application will be introduced below in combination with actual application scenarios.

[0038] See Figure 1 , Figure 1A schematic diagram of the application scenario of the numerical processing method provided by the embodiment of this application. In this application scenario, the processing device is server 101. When a game user makes an operation in the game that can affect the numerical value of a game object, in order to determine the game numerical value that can be obtained by this operation, the terminal device carrying the game will send a processing request to server 101. In order for server 101 to know the processing type of this numerical processing, the processing request sent by the terminal device may include the target processing type corresponding to this numerical processing.

[0039] It can be understood that during the game development process, in order to simplify the process of constructing numerical processing functions for processing numerical values of each processing type, developers can set an initial numerical processing function that is common among various processing types and category processing parameters required for processing each type. By combining the category processing parameters required for each processing type with this initial numerical processing function, the numerical processing functions corresponding to each processing type can be obtained. Therefore, during the game operation, when server 101 needs to obtain the numerical processing function corresponding to a certain processing type, it only needs to obtain the category processing parameters corresponding to this processing type, and then, based on the initial numerical processing function, construct the required numerical processing function.

[0040] Based on this, in order for the numerical processing of this game to run normally, developers only need to enable server 101 to obtain the category processing parameters corresponding to each processing type. For this purpose, in server 101, developers can establish a parameter library containing various category processing parameters and set parameter identifiers corresponding to each category processing parameter. Through this parameter identifier, server 101 can obtain the corresponding category processing parameter in this parameter library. At the same time, developers store the matching relationship between each processing type and the parameter identifier of the category processing parameter required by it in server 101. Through this matching relationship, server 101 can obtain the parameter identifier corresponding to each processing type.

[0041] Therefore, after server 101 obtains the target processing type, it can determine the parameter identifier corresponding to this target processing type according to the matching relationship. In this actual application scenario, the target processing type is processing type 4 in the matching relationship. Therefore, the parameter identifiers determined by server 101 according to the matching relationship are parameter identifier 1 and parameter identifier 3. According to this parameter identifier, server 101 can obtain the category processing parameter 1 and category processing parameter 3 corresponding to this parameter identifier 1 and parameter identifier 3 in the parameter library, and based on this category processing parameter, construct a numerical processing function for the target processing type on the basis of the initial numerical processing function. Through this numerical processing function, server 101 can process the received processing request, thereby determining the target numerical value corresponding to this processing request.

[0042] It can be seen that during the development process, developers only need to set the matching relationship between each processing type and the parameter identifier, so that when the server 101 receives a processing request related to the processing type during the game operation, it can construct a numerical processing function corresponding to the processing type through this matching relationship, without the need for developers to set the numerical processing functions corresponding to each processing type one by one during the development process, which reduces the workload of developers to a certain extent and improves the development efficiency. At the same time, when it is necessary to modify the numerical processing functions of certain processing types or introduce new processing types, developers can directly modify or add the matching relationship, simplifying the development process, making the development process clearer and more logical.

[0043] Next, a numerical processing method provided by an embodiment of the present application will be introduced in conjunction with the accompanying drawings.

[0044] See Figure 2 , Figure 2 which shows a flowchart of a numerical processing method, and the method includes:

[0045] S201: Receive a processing request.

[0046] During the game process, game objects in the game often trigger various types of numerical processing operations. When these numerical processing operations are triggered, the processing device can receive a processing request corresponding to the numerical processing operation. Among them, the game object can be a certain game character or game item in the game. In order for the processing device to know the type of the triggered numerical processing operation so as to process the numerical value of this type, the target processing type can be included in the processing request, and the target processing type is the processing type triggered by the game object this time among all the processing types owned by the game.

[0047] S202: Determine the parameter identifier corresponding to the target processing type through the matching relationship.

[0048] It can be understood that when a game object obtains game numerical values according to different types of game content, the factors that can affect the game numerical values may be partially or completely different. For example, as Figure 3 shown, Figure 3 is a schematic diagram of game numerical value processing in a game system. In this schematic diagram, the numerical module is used to process the numerical values corresponding to various types of game content triggered by game objects. The processing types of this game include an activity module, a reward module, a task module, etc. The activity module is responsible for running the content related to game activities in the game, the reward module is responsible for running the content related to rewards in the game, the task module is responsible for running the content related to game tasks in the game, etc.

[0049] Among them, when the numerical value module processes the numerical values corresponding to each processing type, it needs to be determined according to the numerical value processing functions corresponding to each processing type. It can be understood that the numerical value processing functions are divided into a general part and a non-general part. The general part is the part that exists in the numerical value processing functions corresponding to each processing type. The non-general part is the category processing parameter corresponding to each processing type, and this category processing parameter can enable the numerical value module to determine the target numerical value of the content module corresponding to this type. For example, when it is necessary to determine the target numerical value of the game object corresponding to the activity module, it is necessary to obtain the object level of the target game object that triggers this numerical value processing and the object level of the overall game object, so as to be able to determine the target numerical value that this target game object can obtain according to the overall game object level. When the overall game object level is high and the target game object level is low, in order to balance the gap between game objects, the target numerical value that this target game object can obtain may be high.

[0050] By combining the general part and the non-general part, the numerical value processing functions corresponding to each processing type can be obtained. During the development process, if the corresponding numerical value processing functions are preset for each processing type, it will lead to a huge development workload and low development efficiency; if all the category processing parameters are put into the same numerical value processing function to form a general numerical value processing function, then when the processing device performs numerical value processing each time, it is necessary to invalidate the category processing parameters irrelevant to this processing, making the program required by the processing device too complex to implement.

[0051] Based on this, in order to enable the processing device to process the game numerical values corresponding to various types of game content, reduce the workload of developers during game development, and improve work efficiency, developers can separate and process the general part and the non-general part. In the embodiments of the present application, developers set an initial numerical value processing function based on the general part, and on the basis of this initial numerical value processing function, combined with the category processing parameters, the numerical value processing functions corresponding to each processing type can be constructed.

[0052] Since it is necessary to enable the processing device to obtain the category processing parameters required for this numerical value processing according to the processing request after receiving the processing request, in a possible implementation manner, the processing device can establish a parameter library including various category processing parameters, such as Figure 1 shown in. In order to enable the processing device to obtain the required category processing parameters in the parameter library, a corresponding parameter identifier can be set for each category processing parameter, and the processing device can obtain the corresponding category processing parameter in the parameter library according to this parameter identifier.

[0053] Meanwhile, in order to enable the processing device to obtain the category processing parameters corresponding to the processing type, in a possible implementation, before the game runs, when each processing type is used as the target processing type respectively, for the target processing type, the category processing parameters can be determined in the parameter library, and a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameters can be established. The matching relationship is as shown in Figure 1 as follows. During the game running process, when the processing device obtains the target processing type, the parameter identifier corresponding to the target processing type can be determined through this matching relationship.

[0054] S203: According to the parameter identifier, obtain the category processing parameter corresponding to the parameter identifier from the parameter library.

[0055] After determining the parameter identifier, the processing device can obtain the category processing parameter corresponding to the parameter identifier from the above parameter library according to the parameter identifier. This category processing parameter is the category processing parameter required when the processing device processes the value of the target processing type.

[0056] It can be understood that when the target processing type corresponds to multiple parameter identifiers, there are also multiple category processing parameters required for constructing the target processing type. At this time, when combining multiple category processing parameters with the initial value processing function in different orders, the constructed value processing functions may also be different. For example, when multiple category processing parameters respectively correspond to a value processing method, combining the value processing methods in different orders may result in completely different final value processing methods. For example, when the category processing parameter a is (x + 50), the category processing parameter b is 70%x, and x is the initial value substituted into the parameter, when constructing the value processing function in the order of a - b, the obtained value processing function may include (x + 50)70%; when constructing the value processing function in the order of b - a, the obtained value processing function may include (70%x + 50), so the final processing results may also be completely different.

[0057] Therefore, in order to ensure the accuracy of value processing, in a possible implementation, when establishing the matching relationship, in addition to the parameter identifiers corresponding to each processing type, the processing device can also save the parameter order corresponding to the parameter identifier in the matching relationship of the target processing type. After obtaining the target processing type, the processing device can also determine the parameter order corresponding to the target processing type through the matching relationship.

[0058] S204: According to the category processing parameter and the initial value processing function, construct a value processing function for the target processing type.

[0059] After obtaining the category processing parameters corresponding to the target processing type and adding the initial numerical processing function available in the processing device, the processing device already has the above-mentioned general part and non-general part. As mentioned above, the general part and non-general part are obtained by splitting the numerical processing function. Therefore, the processing device can construct a numerical processing function for the target processing type according to the category processing parameters and the initial numerical processing function. It can be seen that through the technical solution provided by the embodiments of the present application, in the process of game development, only by setting the matching relationship between the processing type and the parameter identifier in the processing device, the processing device can construct numerical processing functions for each processing type during the game operation, which reduces the development workload to a certain extent, improves the development efficiency, simplifies the function structure, and makes the function logic clearer.

[0060] It can be understood that the category processing parameters can be independent logical processing methods. In a possible implementation, by adding the category processing parameters to the initial numerical processing function, the processing request can be logically processed by each category processing parameter, and the initial numerical processing function can organize the processing results of each category processing parameter. The above process is the function of the constructed numerical processing function.

[0061] S205: Determine the target value corresponding to the processing request according to the numerical processing function.

[0062] Among them, the target value refers to the game value determined by the processing device by receiving the processing request. It can be understood that in some cases, the processing type triggered by the game object has a corresponding initial processing value, which is a default value and is not specific to a certain game object, but is applicable to some or all game objects. For example, when the processing type is numerical processing for a certain task, the task may have an initial task reward value. In order to balance the experience that game objects can obtain and narrow the numerical gap between game users, the processing device can obtain the target game object level and the target server start time in the parameter library as the corresponding category processing parameters to construct a numerical processing function, where the target game object is the game object that triggers the processing request, and the target game server is the server where the target game object is located.

[0063] When determining the target value according to this numerical processing function, game objects with a higher level and a longer server start time can obtain a smaller target value, because such game objects probably have a longer game time and a larger total number of obtained values; game objects with a lower level and a shorter server start time can obtain a larger target value, and such game objects probably have a shorter game time and a smaller total number of obtained values.

[0064] In addition, for different game objects, the target processing values determined for the same type of processing request may also be different. For example, when determining the target value corresponding to the above task, a game object with a higher level obtains a smaller target value, while a game object with a lower level obtains a larger target value. Therefore, in order to improve the accuracy of numerical processing, in a possible implementation, the processing request further includes the target game object and a processing initial value, and the processing device can determine the target value that the target game object can obtain under the target processing type according to the numerical processing function and the processing initial value.

[0065] As can be seen from the above technical solution, after receiving the processing request, the processing device can obtain the target processing type from the processing request, determine the parameter identifier corresponding to the target processing type through the matching relationship, and obtain the category processing parameter corresponding to the parameter identifier from the parameter library. Then, through the initial numerical processing function and the category processing parameter, a numerical processing function for the target processing type is constructed. Therefore, when a new processing type needs to be added to the game, during the development process, game developers only need to establish a new matching relationship, and the processing device can construct a new numerical processing function corresponding to this processing type according to this matching relationship, without the game developers themselves having to construct a new numerical processing function, which reduces the workload of game developers to a certain extent and improves the development efficiency.

[0066] It can be understood that since each time a processing request is received, the processing device constructs the numerical processing function based on the initial numerical processing function, in order to improve the stability of the processing device operation and prevent the processing device from being unable to obtain the initial numerical processing function, in a possible implementation, after determining the target value, the processing device can convert the numerical processing function into the initial numerical processing function for the next numerical processing.

[0067] For example, in a possible implementation, the processing device can perform numerical processing through the method of Resource Acquisition Is Initialization (RAII for short). As Figure 4 shown, Figure 4Schematic diagram of numerical processing using the RAII method. Through this method, when performing this numerical processing, after receiving a processing request, relevant information, including the target processing type, category processing parameters, target game object, etc., can be obtained and generated in the unit stack in the above manner. After the processing device constructs numerical processing parameters using the relevant information and determines the target value corresponding to the processing request, it can utilize the initialization feature of RAII to exit the unit stack and remove the information related to this numerical processing in the numerical processing function, that is, convert it back to the initial numerical processing function and wait for the next processing request. Here, the stack refers to a register in a computer, and the register is used to store binary codes.

[0068] Next, a numerical processing method provided by an embodiment of the present application will be introduced in combination with an actual application scenario. In this actual application scenario, the processing device is a server, the target processing type is the reward processing type, the processing initial value is the initial experience value of the reward, the target value is the target experience value determined according to the initial experience value and relevant information, the target game object is the game character that triggers the processing request, and the parameter library and matching relationship are as Figure 5 shown.

[0069] An embodiment of the present application also provides a flowchart for this actual application scenario, as Figure 6 shown. After the server obtains the processing request, it can determine that this numerical processing is of the reward processing type, so in the Figure 5 matching relationship shown, the determined parameter identifiers are 1 and 2, and the order is 1 first and then 2. According to these parameter identifiers, the category processing parameters determined by the server are:

[0070] 1. Daily experience limit, that is, the limit of the experience value obtained by the game character daily for this numerical processing. When the experience value obtained by the game character daily is more, the target experience value determined by this numerical processing is less.

[0071] 2. Reserve experience limit, that is, the limit of the reserve experience value of the game character for this numerical processing. In order to balance the numerical values among game characters, when the reserve experience value of the game character is more, the target experience value determined by this numerical processing is less.

[0072] The server processes parameter 1 and parameter 2 of the category according to the parameter order of first 1 and then 2, constructs a numerical processing function, and inputs the initial experience value included in the processing request into this numerical processing function for determination. Since the parameter order is first 1 and then 2, the server first determines the impact of the daily experience limit on the initial experience value, and then determines the obtained experience value through the reserve experience limit. The value determined by the two parts of parameters is used as the target experience value and added to the game character. After the determination is completed, the server can initialize the numerical processing function for the next numerical processing.

[0073] Based on the numerical processing method provided in the above embodiments, the embodiments of the present application further provide a numerical processing device 700. Refer to Figure 7 , the device 700 includes a receiving unit 701, a first determination unit 702, an obtaining unit 703, a construction unit 704, and a second determination unit 705:

[0074] The receiving unit 701 is configured to receive a processing request, and the processing request includes a target processing type;

[0075] The first determination unit 702 is configured to determine a parameter identifier corresponding to the target processing type through a matching relationship;

[0076] The obtaining unit 703 is configured to obtain the category processing parameter corresponding to the parameter identifier from the parameter library according to the parameter identifier;

[0077] The construction unit 704 is configured to construct a numerical processing function for the target processing type according to the category processing parameter and the initial numerical processing function;

[0078] The second determination unit 705 is configured to determine the target value corresponding to the processing request according to the numerical processing function.

[0079] In a possible implementation manner, the device 700 further includes a first establishment unit 706, a third determination unit 707, and a second establishment unit 708:

[0080] The first establishment unit 706 is configured to establish a parameter library including various category processing parameters;

[0081] The third determination unit 707 is configured to determine the category processing parameter in the parameter library for the target processing type;

[0082] The second establishment unit 708 is configured to establish a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameter.

[0083] In a possible implementation manner, the device 700 further includes a fourth determination unit 709:

[0084] The fourth determination unit 709 is configured to determine the parameter order corresponding to the target processing type through a matching relationship;

[0085] The construction unit 704 is specifically configured to:

[0086] Construct a numerical processing function for the target processing type according to the category processing parameter, the parameter order, and the initial numerical processing function.

[0087] In a possible implementation manner, the processing request further includes a target game object and a processing initial value. The second determination unit 705 is specifically configured to:

[0088] Determine the target numerical value that the target game object can obtain under the target processing type according to the numerical processing function and the processing initial value.

[0089] In a possible implementation manner, the apparatus 700 further includes a conversion unit 710:

[0090] The conversion unit 710 is configured to convert the numerical processing function into an initial numerical processing function.

[0091] An embodiment of the present application further provides a device for numerical processing. The device will be introduced below with reference to the accompanying drawings. Please refer to Figure 8 As shown, an embodiment of the present application provides a device 800. The device 800 may also be a terminal device. The terminal device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA for short), a point of sales (POS for short), an in-vehicle computer, etc. Taking the terminal device as a mobile phone as an example:

[0092] Figure 8 The block diagram of a part of the structure of the mobile phone related to the terminal device provided by the embodiment of the present application is shown. Refer to Figure 8 , the mobile phone includes: a radio frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, and a power supply 890 and other components. Those skilled in the art can understand that Figure 8 The mobile phone structure shown in does not constitute a limitation on the mobile phone, and may include more or fewer components than shown, or combine some components, or different component arrangements.

[0093] Next, in combination with Figure 8 Each component of the mobile phone will be specifically introduced:

[0094] The RF circuit 810 can be used for receiving and transmitting information or signals during communication. Specifically, after receiving the downlink information from the base station, it is sent to the processor 880 for processing. Additionally, the uplink data is sent to the base station. Generally, the RF circuit 810 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. Moreover, the RF circuit 810 can also communicate with the network and other devices via wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0095] The memory 820 can be used to store software programs and modules. The processor 880 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 820. The memory 820 mainly includes a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, the image playback function, etc.), etc.; the data storage area can store the data created according to the use of the mobile phone (such as audio data, phone book, etc.), etc. In addition, the memory 820 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0096] The input unit 830 can be used to receive input numerical or character information and generate key signal inputs related to the user settings and function controls of the mobile phone. Specifically, the input unit 830 can include a touch panel 831 and other input devices 832. The touch panel 831, also known as a touch screen, can collect touch operations of the user thereon or nearby (such as operations of the user using any suitable object or accessory such as a finger or a stylus on or near the touch panel 831), and drive corresponding connection devices according to a preset program. Optionally, the touch panel 831 can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 880, and can receive and execute the commands sent by the processor 880. In addition, the touch panel 831 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 831, the input unit 830 can also include other input devices 832. Specifically, the other input devices 832 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, a joystick, etc.

[0097] The display unit 840 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 840 can include a display panel 841. Optionally, the display panel 841 can be configured in forms such as a liquid crystal display (LCD) or an organic light-emitting diode (OLED). Further, the touch panel 831 can cover the display panel 841. When the touch panel 831 detects a touch operation thereon or nearby, it is transmitted to the processor 880 to determine the type of touch event. Subsequently, the processor 880 provides corresponding visual output on the display panel 841 according to the type of touch event. Although in Figure 8 the touch panel 831 and the display panel 841 are implemented as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 can be integrated to realize the input and output functions of the mobile phone.

[0098] The mobile phone may further include at least one sensor 850, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. Among them, the ambient light sensor can adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 841 and / or the backlight when the mobile phone is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors that the mobile phone can also be configured with, they will not be elaborated here.

[0099] The audio circuit 860, the speaker 861, and the microphone 862 can provide an audio interface between the user and the mobile phone. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the speaker 861 converts it into a sound signal for output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and then converted into audio data. After the audio data is output to the processor 880 for processing, it is sent through the RF circuit 810 to, for example, another mobile phone, or the audio data is output to the memory 820 for further processing.

[0100] WiFi belongs to short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse the web, and access streaming media through the WiFi module 870, which provides users with wireless broadband Internet access. Although Figure 8 the WiFi module 870 is shown, it can be understood that it does not belong to an essential component of the mobile phone and can be omitted entirely as needed without changing the essence of the invention.

[0101] The processor 880 is the control center of the mobile phone, connecting various parts of the entire mobile phone through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 820, and by calling data stored in the memory 820, it executes various functions of the mobile phone and processes data. Optionally, the processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 880 either.

[0102] The mobile phone further includes a power source 890 (such as a battery) for supplying power to each component. Preferably, the power source can be logically connected to the processor 880 through a power management system, so as to manage functions such as charging, discharging, and power consumption management through the power management system.

[0103] Although not shown, the mobile phone may further include a camera, a Bluetooth module, etc., which will not be elaborated here.

[0104] In this embodiment, the processor 880 included in the terminal device further has the following functions:

[0105] Receive a processing request, where the processing request includes a target processing type;

[0106] Determine a parameter identifier corresponding to the target processing type through a matching relationship;

[0107] According to the parameter identifier, obtain a category processing parameter corresponding to the parameter identifier from a parameter library;

[0108] Construct a numerical processing function for the target processing type according to the category processing parameter and an initial numerical processing function;

[0109] Determine a target numerical value corresponding to the processing request according to the numerical processing function.

[0110] An embodiment of the present application further provides a server. Please refer to Figure 9 as shown Figure 9 is a structural diagram of the server 900 provided by the embodiment of the present application. The server 900 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPUs) 922 (for example, one or more processors) and a memory 932, and one or more storage media 930 (for example, one or more mass storage devices) for storing application programs 942 or data 944. Among them, the memory 932 and the storage media 930 can be transient storage or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the central processing unit 922 may be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the server 900.

[0111] The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input / output interfaces 958, and / or one or more operating systems 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so on.

[0112] In the above embodiments, the steps performed by the server may be based on Figure 9 the server structure shown.

[0113] This embodiment of the present application also provides a computer-readable storage medium for storing a computer program, which is used to execute any one of the numerical processing methods described in the foregoing various embodiments.

[0114] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium can be at least one of the following media: read-only memory (abbreviation: ROM), RAM, magnetic disk, or optical disk, etc., which can store program codes.

[0115] It should be noted that the various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, they are described relatively simply. For the relevant parts, refer to the partial description of the method embodiments. The device and system embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0116] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A numerical processing method, characterized in that, The method includes: Receiving a processing request, where the processing request includes a target processing type; Determining a parameter identifier corresponding to the target processing type through a matching relationship; Determining a parameter order corresponding to the target processing type through a matching relationship; Obtaining, according to the parameter identifier, category processing parameters corresponding to the parameter identifier from a parameter library, where the category processing parameters are the category processing parameters required for processing the value of the target processing type; Constructing a value processing function for the target processing type according to the category processing parameters, the parameter order, and an initial value processing function; Determining a target value corresponding to the processing request according to the value processing function, where the target value refers to a game value determined by receiving the processing request.

2. The method according to claim 1, wherein Before receiving the processing request, the method further includes: Establishing a parameter library including various category processing parameters; Determining the category processing parameters in the parameter library for the target processing type; Establishing a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameters.

3. The method according to claim 1, wherein The processing request further includes a target game object and a processing initial value. The determining of the target value corresponding to the processing request according to the value processing function specifically includes: Determining the target value that the target game object can obtain under the target processing type according to the value processing function and the processing initial value.

4. The method according to claim 1, wherein The method further includes: Converting the value processing function into the initial value processing function.

5. A numerical processing device, characterized in that, The apparatus includes a receiving unit, a first determining unit, an obtaining unit, a constructing unit, a fourth determining unit, and a second determining unit: The receiving unit is configured to receive a processing request, where the processing request includes a target processing type; The first determining unit is configured to determine a parameter identifier corresponding to the target processing type through a matching relationship; The fourth determining unit is configured to determine a parameter order corresponding to the target processing type through a matching relationship; The obtaining unit is configured to obtain, according to the parameter identifier, category processing parameters corresponding to the parameter identifier from a parameter library, where the category processing parameters are the category processing parameters required for processing the value of the target processing type; The constructing unit is configured to construct a value processing function for the target processing type according to the category processing parameters, the parameter order, and an initial value processing function; The second determining unit is configured to determine a target value corresponding to the processing request according to the value processing function, where the target value refers to a game value determined by receiving the processing request.

6. The device according to claim 5, characterized in that, The apparatus further includes a first establishing unit, a third determining unit, and a second establishing unit: The first establishing unit is configured to establish a parameter library including various category processing parameters; The third determining unit is configured to determine the category processing parameters in the parameter library for the target processing type; The second establishing unit is configured to establish a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameters.

7. The device according to claim 5, wherein, The processing request further includes a target game object and a processing initial value. The second determining unit is specifically configured to: Determine the target value that the target game object can obtain under the target processing type according to the numerical processing function and the initial processing value.

8. The device according to claim 5, characterized in that, The device further includes a conversion unit; The conversion unit is configured to convert the numerical processing function into the initial numerical processing function.

9. An apparatus for numerical processing, characterized in that, The device includes a processor and a memory: The memory is configured to store program code and transmit the program code to the processor; The processor is configured to execute the numerical processing method according to any one of claims 1-4 based on the instructions in the program code.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is configured to store a computer program, and the computer program is configured to execute the numerical processing method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Data processing method and device based on user behavior portrait and electronic equipment

    CN110348703A