Disclosure of Invention
The embodiment of the invention provides a game scoring method and a game scoring device, which are used for solving the problem that the existing game scoring mode is difficult to objectively and fairly express the quality of a game.
In a first aspect, an embodiment of the present invention provides a game scoring method, including:
s1, obtaining effective scores of a plurality of clients and obtaining the role type of each client;
s2, obtaining a scoring weight corresponding to the effective score of each client according to the role type of each client;
and S3, calculating the final score of each client according to the effective score of each client and the corresponding score weight, and further obtaining the total game score.
Further, the role types of the client at least comprise a first type and a second type, and the scoring weight comprises a primary weight and a secondary weight; and the sum of primary weight and the sum of secondary weight of each effective score is 100%;
accordingly, before step S2, the method further includes:
and setting main weights corresponding to the effective scores of the clients with different role types.
Further, in step S1, the obtaining of the valid scores of the clients specifically includes:
s11, receiving user scores of a plurality of clients;
s12, acquiring a plurality of effective scores from the user scores of the plurality of clients according to the role type of each client;
for the user scores of the first type clients, randomly extracting one user score from the user scores of each preset number of the first type clients as an effective score;
and regarding the user scores of the second type of clients, taking all the user scores of the second type of clients as effective scores.
Further, in step S2, obtaining a scoring weight corresponding to the effective score of each client according to the role type of each client specifically includes:
s21, according to the role type of each client, obtaining the main weight corresponding to the effective score of each client from a preset weight table;
s22, calculating a secondary weight sum according to the primary weight sum, and further calculating a scoring weight corresponding to the effective score of each client;
wherein, the calculation formula of the secondary weight sum is as follows: 100% -sum of primary weights;
the secondary weight calculation formula is: (100% -sum of primary weights) sum of primary weights/sum of primary weights;
the scoring weight calculation formula is as follows: effective score (primary weight + secondary weight sum primary weight/primary weight sum).
Further, before step S22, the method further includes:
adjusting the main weight of effective scoring of each client according to the account information of each client; the account information comprises at least one of registration time, real-name authentication information, reported times, fan number, friend number and IP address;
and if judging and knowing that the IP address of the client repeatedly appears in one day according to the account information of the client, adjusting the main weight of the effective score of the client to be 0.
Further, the user score is an average of scores for multiple dimensions of the game; the scoring dimension comprises at least two of game initial experience, game pictures, game music, game operation feeling, game fluency and game originality.
Further, after the step S11 receives user scores of a plurality of clients, the method further includes:
and obtaining the rating grade corresponding to the user rating according to a preset rating rule, and displaying the rating grade on a rating page.
In a second aspect, an embodiment of the present invention provides a game scoring apparatus, including:
the acquisition module is used for acquiring effective scores of a plurality of clients and acquiring the role type of each client;
the weight obtaining module is used for obtaining the scoring weight corresponding to the effective score of each client according to the role type of each client;
and the calculating module is used for calculating the final score of each client according to the effective score of each client and the corresponding score weight, so as to obtain the total game score.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the game scoring method according to the embodiment of the first aspect of the present invention.
In a fourth aspect, embodiments of the present invention provide a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the game scoring method according to embodiments of the first aspect of the present invention.
The game scoring method and the game scoring device provided by the embodiment of the invention set different scoring weights for effective scoring of the clients with different role types. Considering that the client sides with different role types have different scoring reference values, the scoring weight and effectiveness are different according to the user scoring of different client sides. Compared with the prior art that scores with different client reference values of various roles are collected and the average value is taken, the method improves the referability of game scores.
In addition, by means of real-name authentication, the weighting of repeated scoring of the same IP address in one day is returned to 0 and the like, the grading behavior of the client is avoided, and the fairness of the game scores is further improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The existing game scoring mode generally performs game scoring from different game dimensions, collects the score of each client and takes an average value. However, the existing game scoring method does not consider that the difference of client roles causes the difference of reference values of client scoring, and the obtained scoring result is difficult to objectively and fairly express the quality of the game.
In order to solve the above problem of the existing data desensitization method, an embodiment of the present invention provides a game scoring method, and fig. 1 is a flowchart of a game scoring method provided by an embodiment of the present invention, and referring to fig. 1, the method includes:
and S1, obtaining the effective scores of a plurality of clients and obtaining the role type of each client.
Specifically, the role types of the client include at least a first type and a second type, for example, the first type may be a general user, and the second type may be a member. It is understood that the categories of role types may also include rainbow groups, quality groups, privileged users, authorities, and developers. The rainbow group is a rainbow group role that the client terminal has reached a request set by the server. The quality group is the role of the quality group that all clients in the group become after a certain organization of the clients applies for the high-level group successfully. Privileged users are client roles specifically invited by gaming platform authorities.
S1 may specifically include the following steps:
s11, receiving user scores of a plurality of clients;
s12, according to the role type of each client, obtaining a plurality of effective scores from the user scores of the clients. For the user scores of the first type clients, randomly extracting one user score from the user scores of each preset number of the first type clients as an effective score; and regarding the user scores of the second type of clients, taking all the user scores of the second type of clients as effective scores.
And S2, obtaining the scoring weight corresponding to the effective score of each client according to the role type of each client. Wherein the scoring weight comprises a primary weight and a secondary weight; and the sum of primary weight and the sum of secondary weight of each effective score is 100%;
specifically, before step S2 is executed, the server sets in advance the primary weights corresponding to the client validity scores of different role types, and obtains a preset weight table, as shown in table 1. It is understood that table 1 is only an example of the weights corresponding to different role types, and the weight values of different role types are not particularly limited in the embodiment of the present invention.
Table 1 example of weight representation
Referring to table 1, as an alternative embodiment, the present invention randomly extracts a user score from user scores of clients of which each 10 role types are primary normal users as a valid score, with normal users having a rank less than 50 as primary normal users. If the number of user scores is less than 10, no valid scores are extracted. If the number of user scores is not a multiple of 10, then the extraction is performed by a multiple of 10, for example, if there are 13 user scores, only the first 10 are counted, and the last 3 are used as the extraction of the next batch. The invention takes ordinary users with the grade of more than or equal to 50 as advanced ordinary users, and randomly extracts 1 user score from every 3 advanced ordinary users as effective scores. When the number of user scores is less than 3 or not a multiple of 3, the extraction mode refers to the primary common user.
Further, after the completion weight table is set in the server, step S2 is executed, and step S2 may specifically include the following steps:
s21, according to the role type of each client, obtaining the main weight corresponding to the effective score of each client from a preset weight table;
and S22, calculating a secondary weight sum according to the primary weight sum, and further calculating the scoring weight corresponding to the effective score of each client.
The calculation formula of the sum of the secondary weights is as follows: 100% -sum of primary weights;
the secondary weight calculation formula is: (100% -sum of primary weights) sum of primary weights/sum of primary weights;
the scoring weight calculation formula is as follows: effective score (primary weight + secondary weight sum primary weight/primary weight sum).
And S3, calculating the final score of each client according to the effective score of each client and the corresponding score weight, and further obtaining the total game score.
Specifically, a final score of each client is calculated according to the effective score of each client and the corresponding score weight, where the final score of one client is the effective score (the effective score + the secondary weight) and the effective score (the primary weight + the secondary weight) is the effective score (the primary weight + the secondary weight sum + the primary weight/the primary weight sum).
And adding the final scores of all the clients to obtain a total game score.
It can be understood that the game scoring method provided by the embodiment of the invention can be applied to scoring of game apps, and can also provide references for scoring of other types of apps on the electronic terminal.
The game scoring method provided by the embodiment of the invention sets different scoring weights for effective scoring of the clients with different role types. Considering that the client sides with different role types have different scoring reference values, the scoring weight and effectiveness are different according to the user scoring of different client sides. Compared with the prior art that scores with different client reference values of various roles are collected and the average value is taken, the method improves the referability of game scores.
On the basis of the above embodiment, in this embodiment, before step S22, the method further includes:
adjusting the main weight of effective scoring of each client according to the account information of each client; the account information comprises at least one of registration time, real-name authentication information, reported times, fan number, friend number and IP address;
and if judging and knowing that the IP address of the client repeatedly appears in one day according to the account information of the client, adjusting the main weight of the effective score of the client to be 0.
Specifically, in this embodiment, on the basis of presetting the primary weight corresponding to the client valid score of different role types, the primary weight of the valid score of each client is further adjusted according to the account information of each client. An example of the weight adjustment value corresponding to the account information is shown in table 2.
Table 2 example of weight adjustment value corresponding to account information
Registration time<24h
|
-5%
|
Registration time<1 week
|
-2%
|
Real name authentication
|
+2%
|
Is reported successfully for 1 time (can be superposed)
|
-2%
|
Number of vermicelli made from bean starch<10
|
-2%
|
Number of friends<3
|
-2%
|
IP identity within 1 day
|
=0% |
The invention relates the grading weight of the effective grading of the client and the account information of the client, such as login duration, so that each client has independent grading weight. In addition, by means of real-name authentication, the weighting of repeated scoring of the same IP address in one day is returned to 0 and the like, the grading behavior of the client is avoided, and the fairness of the game scores is further improved.
Specific application cases are provided below to illustrate the game scoring method of the present invention.
Case 1: in a specific application scenario, the server obtains effective scores of 3 clients with different role types, wherein the role types of the 3 clients are respectively a common user, a member and a rainbow group which are being drawn.
Assuming a normal user score of 69 points, the primary weight is 8%; the membership user scores 90 points, and the main weight is 23%; rainbow groups scored 75 points on users with a primary weight of 33%.
The sum of the primary weights is 8% + 23% + 33% + 64%, and the sum of the secondary weights is 100% -64% + 36%, calculated as the weight must be 100%.
Calculating according to the final scoring formula of the single client:
the average final user score was 69 × (8% + 36% × 8%/64%) -8.6
Final membership score of 90 × (23% + 36% × 23%/64%) -32.3
The rainbow cluster end score was 75 × (33% + 36% × 33%/64%) -38.7
The total game score is 8.6+32.3+38.7 ═ 79.6.
Case 2: on the basis of case 1, if the server subsequently obtains valid scores of other clients, all the scoring weights need to be recalculated. For example, on the basis of the 3 client-side effective scores of case 1, the server obtains 83 effective scores of the quality cluster, and the corresponding primary weight is 21%; the privileged user has a valid score of 90 points with a primary weight of 5%.
The sum of the primary weights is 8% + 23% + 33% + 21% + 5% + 90%, and the sum of the secondary weights is 100% -90% + 10%, when the weight must be 100%.
Calculating according to the final scoring formula of the single client:
the average final user score was 69 × (8% + 10% × 8%/90%) -6.1
Final membership score of 90 × (23% + 10% × 23%/90%) -23 × (23 ×)
The rainbow cluster finally scored 75 × 27.5 (33% + 10% + 33%/90%)
The final score of the panel was 83 × 19.4 (21% + 10% + 21%/90%)
The privileged user has a final score of 90 × (5% + 10% × 5%/90%) -5
The total game score is 81-6.1 +23+27.5+19.4+5
According to the game scoring method provided by the embodiment of the invention, the scoring weights and the scores of the users of different clients are different according to the scoring of the users of different clients in consideration of different scoring reference values of the clients with different role types. Compared with the prior art that scores with different client reference values of various roles are collected and the average value is taken, the method improves the referenceability and fairness of game scoring.
On the basis of the above embodiments, in this embodiment, the client needs to perform multidimensional scoring by multiple users, and the user score of the client is an average value of the multidimensional scoring for the game. The scoring dimension comprises at least two of game initial experience, game pictures, game music, game operation feeling, game fluency and game originality. An example of the scoring dimension is shown in table 3.
Table 3 scoring dimension example
When calculating the user score of a single client, for example, the client whose role type is a member scores the game from the above 6 dimensions, and the average value of the scores of the plurality of dimensions is the user score of the member client, that is, the effective score of the member client.
Furthermore, scoring can be performed on part of dimensions or all dimensions at the client, and if only part of the dimensions are scored, the dimensions without scoring are not calculated.
The game scoring method provided by the embodiment of the invention can score the game performance from multiple aspects and take the average value, thereby achieving the effect of comprehensively evaluating the game performance.
On the basis of the foregoing embodiments, after the step S11 receives the user scores of the multiple clients, the method further includes:
and obtaining the rating grade corresponding to the user rating according to a preset rating rule, and displaying the rating grade on a rating page.
Specifically, the present embodiment sets in advance a score grading rule of the total score of the game in the server. In this embodiment, the scoring classification of the user score includes a general classification and a specific classification. For example, 0-19.9 points, the general rating is "super rot" and the professional rating is "D". 20-39.9 points, ordinary grade "not good for play", professional grade "C". 40-59.9 points, general grade "general", professional grade "B". 60-79.9 points, normal grading is 'good' and professional grading is 'A'. 80-89.9 points, ordinary grade "very fun", professional grade "S". 90-94.9 points, general grade "Shen Mao", professional grade "SS". 95-100 points, ordinary classification of "Shen Mao", professional classification of "SSS". The rating table is shown in Table 4.
TABLE 4 grading Table for scores
Further, in this embodiment, if the server receives that the user score > sent by the client is 80 points, it is determined as good score. And if the user score is less than 30 points, judging the user score to be poor. If the rating of the game > is 80%, the server displays a special dimension title of 'good sentiment' on the rating page, and if the rating of the game > is 80%, the server displays another special dimension title of 'popular' on the rating page. And if the good rating and the poor rating do not meet the special dimension title condition, not displaying.
According to the game scoring method provided by the embodiment of the invention, the user scoring is graded and displayed, so that the user can visually know the evaluation grades represented by different scores when scoring is carried out on the client.
On the basis of the above embodiments, each client has only one chance to score a game before the game is updated next, and is not modifiable. If the game is updated, the client can be logged in to modify the score again after each update.
Fig. 2 is a schematic structural diagram of a game scoring device according to an embodiment of the present invention, and referring to fig. 2, the device includes:
an obtaining module 201, configured to obtain effective scores of a plurality of clients and obtain a role type of each client;
a weight obtaining module 202, configured to obtain, according to the role type of each client, a scoring weight corresponding to the effective score of each client;
the calculating module 203 is configured to calculate a final score of each client according to the effective score of each client and the score weight corresponding to the effective score, so as to obtain a total score of the game.
Specifically, the game scoring device provided in the embodiment of the present invention is specifically configured to execute the steps of the game scoring method in the foregoing method embodiment, and since the game scoring method has been described in detail in the foregoing embodiment, the function of the game scoring device is not described herein again.
According to the game scoring device provided by the embodiment of the invention, the scoring weights and the scores of the users of different clients are different according to the scoring of the users of different clients in consideration of different reference values scored by the clients of different role types. Compared with the prior art that scores with different client reference values of various roles are collected and the average value is taken, the method improves the referenceability and fairness of game scoring.
An embodiment of the present invention provides an electronic device, as shown in fig. 3, where the electronic device may include: a processor (processor)301, a communication Interface (communication Interface)302, a memory (memory)303 and a communication bus 304, wherein the processor 301, the communication Interface 302 and the memory 303 complete communication with each other through the communication bus 304. Processor 301 may invoke logic instructions in memory 303 to perform the game scoring methods provided by the various embodiments described above, including, for example: s1, obtaining effective scores of a plurality of clients and obtaining the role type of each client; s2, obtaining a scoring weight corresponding to the effective score of each client according to the role type of each client; and S3, calculating the final score of each client according to the effective score of each client and the corresponding score weight, and further obtaining the total game score.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the game scoring method provided in the foregoing embodiments when executed by a processor, for example, the method includes: s1, obtaining effective scores of a plurality of clients and obtaining the role type of each client; s2, obtaining a scoring weight corresponding to the effective score of each client according to the role type of each client; and S3, calculating the final score of each client according to the effective score of each client and the corresponding score weight, and further obtaining the total game score.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.