CN108874377A - A kind of data processing method, device and storage medium - Google Patents

A kind of data processing method, device and storage medium Download PDF

Info

Publication number
CN108874377A
CN108874377A CN201810646759.5A CN201810646759A CN108874377A CN 108874377 A CN108874377 A CN 108874377A CN 201810646759 A CN201810646759 A CN 201810646759A CN 108874377 A CN108874377 A CN 108874377A
Authority
CN
China
Prior art keywords
game
mutation
basic
strategy
logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810646759.5A
Other languages
Chinese (zh)
Other versions
CN108874377B (en
Inventor
蔺洁琼
洪利平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Network Information Technology Co Ltd
Original Assignee
Shenzhen Tencent Network Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Network Information Technology Co Ltd filed Critical Shenzhen Tencent Network Information Technology Co Ltd
Priority to CN201810646759.5A priority Critical patent/CN108874377B/en
Publication of CN108874377A publication Critical patent/CN108874377A/en
Application granted granted Critical
Publication of CN108874377B publication Critical patent/CN108874377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of data processing method, device and storage medium, this method includes:In the corresponding mutation game of basic game when operating, the mutation game data of current virtual role is obtained;Mutation game logic is obtained, mutation game logic is the game logic of mutation game comparative basis game variation;According to mutation game logic and preset tactics of the game algorithm, the tactics of the game of current virtual role is determined;The tactics of the game that current virtual role is executed in mutation game, completes the operation of mutation game.Tactics of the game algorithm of the embodiment of the present invention without individually exploitation mutation game, it realizes that mutation game intelligenceization executes, reduces development of games amount and development cost when mutation game is released, accelerate game and run development progress, so that the starting period is subcooled in game fast speed, user's retention ratio is promoted.

Description

A kind of data processing method, device and storage medium
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of data processing method, device and storage medium.
Background technique
Online game refers to using internet as transmission medium, is that processing is whole with gaming operators server and subscriber computer End invents having just by aim at amusement, leisure, exchange and the acquirement of information exchange window of game client software The individuality multiplayer online games of suitable sustainability.
For cards game, time-consuming general longer, player usually will appear busy phenomenon away from keyboard, such as It goes to toilet, drinks water, eats, need machine trustship in this case, server is intelligently played a card, but server is usual at present Scene of simply playing a card very much can only be handled, the numerous cards games of variation can not be coped with.By taking happy fighting landlord as an example, trustship field The artificial rule that scape uses only simply chooses the board bigger than upper family, so that game experiencing is excessively poor, to find out its cause, just It is because artificial regular cost of implementation is very high, development difficulty is big, is unable to satisfy complicated cards game demand.
With the appearance of AlphaGo, chess and card games artificial intelligence (Artificial is realized using deep learning mode Intelligence, AI) become current hot technology scheme.The technical solution depends on player log, passes through instruction Practice model, making it, study avoids height caused by writing artificial rule to strategy of playing a card accordingly from player log automatically Cost of implementation.
But for cards game, in a major class cards game, (referred to as comprising one or more main playing methods Basic playing method or basic game) and several mutation playing methods (also known as the first mutation game), e.g., the master that fighting landlord game includes Wanting playing method is 3 people's fighting landlords, and mutation playing method includes 2 people's fighting landlords, 4 people's fighting landlords and favus's fighting landlord etc..At this moment, for board class The strategy of playing a card of the mutation playing method of game, above-mentioned basic game can not be applied in mutation playing method, and the mutation of cards game is swum Type of playing is again very more, when mutation game is online, and needs to develop the corresponding AI of mutation game again, and time-consuming and exploitation is difficult It spends big, at high cost.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method, device and storage medium, reduces the mutation of basic game The development difficulty and development cost of game accelerate game operation development progress.
In a first aspect, the application provides a kind of game implementation method, this method includes:
In the corresponding mutation game of basic game when operating, the mutation game data of current virtual role is obtained;
Mutation game logic is obtained, the mutation game logic is the relatively described basic game variation of the mutation game Game logic;
According to the mutation game logic and preset tactics of the game algorithm, the game plan of the current virtual role is determined Slightly;
Operation of the current virtual role in the mutation game is executed according to the tactics of the game of the current virtual role.
Second aspect, the application provide a kind of game enabler, which includes:
First acquisition unit, for when operating, obtaining current virtual role's in the corresponding mutation game of basic game Mutation game data;
Second acquisition unit, for obtaining mutation game logic, the mutation game logic is that the mutation game is opposite The game logic of the basic game variation;
Determination unit, for determining the current void according to the mutation game logic and preset tactics of the game algorithm The tactics of the game of quasi- role;
First execution unit executes current virtual role described for the tactics of the game according to the current virtual role Operation in mutation game.
Further, the selection subelement is specifically used for:
The score value of each game characteristic in each basic game strategy is calculated using preset scoring rule;
According to the score value of each game characteristic, the score value of each basic game strategy is calculated.
Further, the selection subelement is specifically used for:
Obtain the weighted value of preset each game characteristic;
According to the score value of each game characteristic and the weighted value of each game characteristic, each game characteristic is calculated Effective score value;
Summation operation is carried out to effective game points of each game characteristic in each basic game strategy, is obtained described The score value of each basic game strategy.
Further, described device further includes:
It is carried out from unit of playing chess for the tactics of the game algorithm and the mutation game logic according to the basic game The mutation game is played chess certainly, to obtain the game data of the mutation game of default value unit;
Training unit, for the game data according to the mutation game of the default value unit, utilization is preset Game training model training generates the tactics of the game algorithm of the mutation game.
Further, described to include from unit of playing chess:
Subelement is modified, for modifying the tactics of the game algorithm of the basic game, so that the modified basis The tactics of the game algorithm of game can acquire the game data of the mutation game;
From subelement of playing chess, for according to the modified basic game tactics of the game algorithm and the mutation game Logic carries out playing chess certainly for the mutation game, obtains the game data of the mutation game of default value unit.
Further, described device further includes:
Third acquiring unit, for when operating, obtaining current another void in the corresponding another mutation game of basic game The game data of quasi- role;
4th acquiring unit, for obtaining first game logic and the second game logic, first game logic For the game logic of the relatively described basic game variation of another mutation game, second game logic is another change The game logic of the relatively described mutation game variation of kind game;
Predicting unit, for predicting described another virtual according to first game logic or second game logic The corresponding basic game strategy of the game data of role;
Selecting unit, for the tactics of the game algorithm according to the preset basic game, in another virtual role The corresponding basic game strategy of game data in select optimal basic game strategy, as current another virtual role Tactics of the game;
Second execution unit, for executing current another virtual angle according to the tactics of the game of current another virtual role Operation of the color in another mutation game.
Further, the predicting unit is specifically used for:
Compare first game logic and the second game logic, is determined in the basic game and the mutation game The close target game with the game logic of another mutation game;
According to the game logic of the relatively described target game variation of another mutation game, another virtual angle is predicted The corresponding basic game strategy of the game data of color.
The third aspect, the application provide a kind of storage medium, and the storage medium is stored with a plurality of instruction, and described instruction is suitable It is loaded in processor, to execute the step in data processing method described in any one of first aspect.
The embodiment of the present invention is by when operating, obtaining the change of current virtual role in the corresponding mutation game of basic game Kind game data;Mutation game logic is obtained, mutation game logic is the game of mutation game comparative basis game variation Logic;According to mutation game logic and preset tactics of the game algorithm, the tactics of the game of current virtual role is determined;It is swum in mutation The tactics of the game that current virtual role is executed in play, completes the operation of mutation game.The embodiment of the present invention is in basic game mutation When game operation is released, without individually developing the tactics of the game algorithm of mutation game, the game logic of basic game can use Algorithm and mutation game logic realize the tactics of the game automation and intelligent execution of mutation game, realize mutation tactics of the game The calculating effect of algorithm reduces development of games amount and development cost when mutation game is released, accelerates game and runs development progress, So that the starting period is subcooled in game fast speed, user's retention ratio is promoted.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of data processing system provided in an embodiment of the present invention;
Fig. 2 is one embodiment flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 3 is another embodiment flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 4 is an interface schematic diagram of fighting landlord game in the embodiment of the present invention;
Fig. 5 is another embodiment flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 6 is a schematic diagram of the favus's fighting landlord game provided in the embodiment of the present invention;
Fig. 7 is another schematic diagram of the favus's fighting landlord game provided in the embodiment of the present invention;
Fig. 8 is one embodiment schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.According to Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of data processing method, device and storage medium.
Referring to Fig. 1, Fig. 1 is the schematic diagram of a scenario of data processing system provided by the embodiment of the present invention, at the data Reason system may include data processing equipment, which specifically can integrate in the server, the server, that is, Fig. 1 In server, which is mainly used in the corresponding mutation game of basic game when operating, and obtains current virtual role Mutation game data;Meanwhile mutation game logic is obtained, which is mutation game comparative basis game variation Game logic;Then, according to the mutation game logic, the corresponding basic game strategy of mutation game data, Yi Jigen are predicted Optimal basic game strategy is selected in basic game strategy according to the tactics of the game algorithm of preset basic game, as current The tactics of the game of virtual role;The tactics of the game of current virtual role is finally executed in mutation game.
The data processing system can also include memory, for storing information bank, in the information bank include game data, Mutation game logic, basic game logic etc. so that server can from memory game data, mutation game logic, Basic game logic etc..
The data processing system further includes terminal, the terminal where the terminal, that is, virtual role, and the terminal is virtual for this Role in mutation game manually or automatically trustship game when, send trustship request to server so that server obtain it is current The mutation game data of virtual role carries out the prediction of mutation tactics of the game, executes the optimal current virtual role's of prediction Tactics of the game.Since occasionally there are multiple virtual roles in game, for example, three virtual roles in fighting landlord, therefore, the data Processing system can also include other one or more terminals (one is only shown in Fig. 1), due to not relating in the embodiment of the present invention And the operation of other terminals, therefore be not described further.
It should be noted that the schematic diagram of a scenario of data processing system shown in FIG. 1 is only an example, the present invention is real The data processing system and scene of applying example description are the technical solutions in order to more clearly illustrate the embodiment of the present invention, not The restriction for technical solution provided in an embodiment of the present invention is constituted, those of ordinary skill in the art are it is found that with data processing The differentiation of system and the appearance of new business scene, technical solution provided in an embodiment of the present invention is for similar technical problem, together Sample is applicable in.
It is described in detail combined with specific embodiments below.
In the present embodiment, it will be described from the angle of data processing equipment, which can specifically collect At in the server.
The embodiment of the present invention provides a kind of data processing method, and this method includes:In the corresponding mutation game of basic game When operating, the mutation game data of current virtual role is obtained;Mutation game logic is obtained, mutation game logic is mutation trip The game logic that comparative basis game of playing changes;According to mutation game logic, the corresponding basic game of mutation game data is predicted Strategy;Optimal basic game strategy is selected in basic game strategy according to the tactics of the game algorithm of preset basic game, Tactics of the game as current virtual role;The tactics of the game of current virtual role is executed in mutation game.
Referring to Fig. 2, Fig. 2 is one embodiment process signal of the data processing method provided in the embodiment of the present invention Figure, the data processing method include:
101, in the corresponding mutation game of basic game when operating, the mutation game data of current virtual role is obtained.
In embodiments of the present invention, basic game is the main playing method of certain type game, and mutation game is the type trip The mutation game of basic game in play, i.e. mutation game are to change the trip of a part of game logic on the basis of basic game Play, such as newly-increased game logic.By taking cards game as an example, in a seed type cards game, include one or more main objects for appreciation Method (corresponding to basic game) and several mutation playing methods (corresponding to the mutation game of basic game), specifically, such as bucket The main playing method that primary games include is 3 people's fighting landlords (basic game), and mutation game includes 2 people's fighting landlords, 4 people's fighting landlords and leprosy Sub- fighting landlord etc., and by taking favus's fighting landlord as an example, the basic game logic of favus's fighting landlord is consistent with 3 people's fighting landlords, increased Game logic can determine " favus's board " at random after revealing the ins and outs, that is, have 4 boards that can substitute when arranging in pairs or groups other boards arbitrarily Board.
For game for some types, especially cards game, time-consuming general longer, player, which usually will appear, to be had Thing phenomenon away from keyboard, such as go to toilet, it drinks water, eat, will appear in this case and actively (actively click " support Pipe ") or (do not operated) the case where machine trustship carries out game for a long time passively, at this point, the virtual role of player is corresponding Terminal can to data processing equipment send trustship request, need data processing equipment intelligently to play a card, it is corresponding in basic game When operating (needing to play a card in such as fighting landlord game), data processing equipment is the mutation for obtaining current virtual role for mutation game Game data.
Wherein, in the corresponding mutation game of basic game when operating, data processing equipment obtains current virtual role's Mutation game data can be and actively obtain, is also possible to passively obtain.Specifically, the mutation game data field passively obtained Scape and the corresponding terminal of above-mentioned virtual role can send the scene that trustship is requested by data processing equipment into server, and at data Reason device can also actively obtain the mutation game number of current virtual role in the corresponding mutation game of basic game when operating According to for example, actively being obtained in the corresponding virtual role of player in each game operation limiting time only remaining preset time The mutation game data of current virtual role provides tactics of the game with active assistance current virtual role analysis game data, When game operation limiting time reaches, actively according to the tactics of the game of offer automatically carry out when time operation, improve processing the time and Efficiency.By taking fighting landlord as an example, each game operation limiting time is 15s, only remains 3s (having walked 12s) in current operation, Data processing equipment actively obtains the mutation game data of current virtual role, to assist current virtual role analysis game number According to providing tactics of the game.
It is understood that whether data processing equipment actively or passively obtains the mutation game number of current virtual role According to data processing equipment is all being that mutation game determining first is in mode of operation, for example, when data processing equipment receives Terminal send trustship request, mutation game i.e. enter to mode of operation, or each mutation game operation limiting time only When remaining preset time, mutation game enters to mode of operation, the i.e. mutation of data processing equipment acquisition current virtual role Game data.
In the embodiment of the present invention, mutation game data may include the identification information of current virtual role, current virtual angle The game data of other virtual roles in the game data of color, same office's game, for cards game, the current virtual angle It is virtual that the game data of color can be the hands information of current virtual role, the game data of other virtual roles can be house The data of playing a card of role.Equally by taking fighting landlord as an example, such as the hands of current virtual role:3345567AA, upper virtual role Play a card for:5.It should be noted that as needed, if in same office's game including more than 2 virtual roles, the mutation game It also may include the game data of other all virtual roles, such as leprosy in data in addition to the game data of current virtual role In sub- fighting landlord game, the data of playing a card of upper family, this is not limited here.
102, mutation game logic is obtained.
Wherein, which is the game logic of mutation game comparative basis game variation, specifically can basis The demand of practical application is configured.For example, by taking 3 people's fighting landlords (basic game) and favus's fighting landlord (mutation game) as an example, The game logic that mutation game logic, that is, favus's fighting landlord increases newly in 3 people's fighting landlords:
1, specifying certain points is favus, and each points include 4 patterns, that is, shares 4 favus's boards.
2,1 or multiple favus's boards combine other non-favus's boards that can carry out any transformation, gather into legal board type to reach Purpose, such as antithetical phrase, along son, aircraft and soft deep-frying bullet.
3, favus's board, which only leans on itself not, can be carried out transformation.
For example, including 3567JJJ and two favus's board, leprosy in hands in a scene of game of favus's fighting landlord Sub- board be AA, can be converted according to two favus's board AA gather into 333567JJJ, 334567 JJJ, 345678 JJJ and The legal board type such as 34567JJJJ, but two favus's board AA cannot be leaned on only and itself are transformed into 22.
It is understood that mutation game logic is the game logic of mutation game comparative basis game variation, the mutation Game logic in addition to be comparative basis game increase newly game logic, be also possible to the game logic of comparative basis game reduction, or The game logic etc. of person's comparative basis game change, is not construed as limiting herein.
103, according to mutation game logic and preset tactics of the game algorithm, the tactics of the game of current virtual role is determined.
Specifically, determining the game plan of current virtual role according to mutation game logic and preset tactics of the game algorithm Slightly may include:According to the mutation game logic, the corresponding basic game strategy of mutation game data is predicted;According to preset trip Play policing algorithm selects optimal basic game strategy, the tactics of the game as current virtual role in basic game strategy.
In the embodiment of the present invention, after getting mutation game data and mutation game logic, data processing equipment can be with According to the mutation game logic, the corresponding basic game strategy of mutation game data is predicted.
In certain embodiments of the present invention, data processing equipment predicts mutation game number according to the mutation game logic It can specifically include following steps according to corresponding basic game strategy:
(1) variable corresponding with mutation game logic in mutation game data is obtained;
(2) according to all values of mutation game logic predictive variable;
(3) all values are applied respectively in mutation game data, to obtain the corresponding basis trip of mutation game data Play strategy.
Specifically, predicting the corresponding basis trip of mutation game data according to the mutation game logic in data processing equipment When play strategy, variable corresponding with mutation game logic in mutation game data can be obtained first, which includes mutation trip Because of the mutation game logic making mutation game data in play data, there may be the variables of variation, for example, mutation game is Favus's fighting landlord, favus's board in favus's fighting landlord, is variable, it can change under mutation game logic as other boards, Favus's board AA as described above.
Data processing equipment is in obtaining mutation game data after variable corresponding with mutation game logic, it can according to All values of mutation game logic predictive variable, content described in embodiment as above, favus's board AA can become 33 respectively, 34,48 and 4J, it should be noted that all values of variable refer to all possibility of the variable under mutation game logic herein Value does not include the value for not meeting mutation game logic, for example, favus's board AA can not directly become 22, because this is not Meet the game logic of favus's fighting landlord.
Further, data processing equipment, can be by all values of the variable point after all values of predictive variable It does not apply in mutation game data, to obtain the corresponding basic game strategy of mutation game data.Equally said with the example above It is bright, it is assumed that mutation game data is favus's fighting landlord hands data, includes 3567JJJ and two favus board AA in hands, then After all values of prediction AA, both these values were applied in hands, therefore can be converted and be gathered according to two favus's board AA At the legal board type such as 333567JJJ, 334567 JJJ, 345678 JJJ and 34567JJJJ, but two favus's board AA cannot be only 22 are transformed by itself.At this time, the legal strategies of playing a card such as 3335,34567 and 345678 are that mutation game data is corresponding Basic game strategy.
In the embodiment of the present invention, the tactics of the game algorithm of the preset basic game of meeting, the game plan of the preset basic game Slightly algorithm, also refers to the server of the preset tactics of the game algorithm including the basic game, also also refers to basis The algorithm of game AI, the i.e. policing algorithm of the basic game are the algorithm of basic game AI, and basic game AI is i.e. on basis The AI for being used on processing basic game strategy has been developed in game R&D process.
Due to that can predict the corresponding basic game strategy of mutation game data, in this way according to mutation game logic Directly to utilize the policing algorithm of preset basic game, in the basic game strategy of these predictions, optimal basis is selected Tactics of the game, the tactics of the game as current virtual role.Corresponding the example above, i.e., play a card 3335,34567 and 345678 etc. In strategy, most preferably play a card strategy, such as 34567, the tactics of the game as current virtual role are selected.
Since according to the mutation game logic, the corresponding basic game strategy of the mutation game data of prediction is had very much Kind, therefore the tactics of the game algorithm needs of basic game are more reasonable, to be selected most in the basic game strategy that these are predicted Good basic game strategy.Therefore, in some embodiments in embodiments of the present invention, according to the trip of preset basic game Play policing algorithm selects optimal basic game strategy in basic game strategy, as the tactics of the game of current virtual role, It can specifically include:
(1) it obtains in the corresponding basic game strategy of mutation game data, corresponding game in each basic game strategy Feature;
In the embodiment of the present invention, the game characteristic to be counted in mutation game can be configured in advance, it is subsequent can be with Directly according to these game characteristics to be counted, obtain in the corresponding basic game strategy of mutation game data, each basic game Corresponding game characteristic in strategy, acquisition modes can be itself statistics, or directly acquire the data of other equipment statistics.With For favus's fighting landlord, for example, may include bomb, favus, hands, the swatch factor, board containing favus in the game characteristic obtained The game characteristics such as type board power.
(2) score value of each basic game strategy is calculated according to game characteristic;
Specifically, the score value of each basic game strategy is calculated according to game characteristic in certain embodiments of the present invention, May include:The score value of each game characteristic in each basic game strategy is calculated using preset scoring rule;According to each The score value of game characteristic calculates the score value of each basic game strategy.Under normal circumstances, each game characteristic swims current mutation The influence for data of playing is not identical, therefore can pre-set scoring rule, is rationally calculated using preset scoring rule each The score value of each game characteristic in basic game strategy.
For example, for favus's fighting landlord, for " bomb number " this game characteristic, since bomb rings board face Larger, the bomb number that favus replaces in defensive position is more, and score value should be higher.For each game characteristic, difference can be set The corresponding score value section of game characteristic parameter, at this point, being calculated using preset scoring rule each in each basic game strategy The score value of game characteristic may include:The game parameter for counting each game characteristic in each basic game strategy, using default Each game characteristic game parameter and the direct corresponding relationship of score value, it is special to obtain each game in each basic game strategy The score value of sign.Specifically, the game parameter of game characteristic is bomb number, such as bomb number as in favus's fighting landlord game 1, mesh corresponding score value 1 divides, and 23 points of correspondences of bomb number, 35 points etc. of correspondences of bomb number, the example above is game characteristic The game data that game parameter represents is better, and score value is higher, it is to be understood that in some other embodiment of the present invention, The game data for being also possible to the game parameter representative of game characteristic is better, and score value is lower, only subsequent according to basic game When the corresponding score value of strategy selects basic game strategy, the basic game strategy of corresponding low point of selection is needed.
Further, in some embodiments, the above-mentioned score value according to each game characteristic, calculates each basic game Strategy score value, may include:Obtain the weighted value of preset each game characteristic;According to the score value of each game characteristic and often Effective score value of each game characteristic is calculated in the weighted value of a game characteristic;To each of each basic game strategy Effective game points of game characteristic carry out summation operation, obtain the score value of each basic game strategy.Wherein, data processing fills The weighted value for pre-setting each game characteristic is set, so that the weight of each game characteristic more matches the game characteristic and swimming Importance in data of playing.The weighted value can be a ratio, can be specifically configured according to the demand of practical application, example Such as 20%, 0.2 or 1/3.Likewise, the principle for setting the weighted value can be, game characteristic is more important, and weighted value is bigger, In other embodiments of the invention, it can also be that game characteristic is more important, weighted value is smaller, is not construed as limiting herein.
It, can be special according to the score value of each game characteristic and each game after the weighted value for obtaining each game characteristic Effective score value of each game characteristic is calculated in the weighted value of sign.Specifically, i.e.:Effective score value=game of game characteristic The weighted value of the score value * game characteristic of feature.For example, it is assumed that the score value of certain game characteristic is 2 points, the weighted value of game characteristic It is 0.2, then the game points of the game characteristic are 2*0.2=0.4 points.
After calculating the effective score value of game characteristic in each basic game strategy, it can to each basic game Effective game points of each game characteristic in strategy carry out summation operation, obtain the score value of each basic game strategy, example It such as, include game characteristic 1, game characteristic 2, game characteristic 3 in basic game strategy A, wherein effective score value of game characteristic 1 Be 0.4, effective score value 0.3 of game characteristic 2, effective score value 0.15 of game characteristic 3, then the score value of basic game strategy A= 0.4+0.3+0.15=0.85.
In a specific embodiment of the invention, the score value of each basic game strategy is calculated according to game characteristic, it can It is realized with directlying adopt following formula:
Wherein, S is the corresponding score value of basic tactics of the game, and n is that basic tactics of the game corresponds to game characteristic quantity, WiFor base The weighted value of the corresponding game characteristic of i-th of game characteristic, X in plinth tactics of the gameiIt is special for i-th of game in basic tactics of the game The score value of sign, WiXiEffective score value of i-th of game characteristic as in basic game strategy, i≤n, i and n are positive integer.
(3) it according to the corresponding score value of each basic game strategy, determines optimal in all possible basic game strategy Basic game strategy.
It, can be directly according to each base after obtaining the corresponding score value of each basic game strategy in above-mentioned steps (2) The corresponding score value size of plinth available strategy, determines basic game strategy optimal in all possible basic game strategy, due to The score value that step (2) calculates basic game strategy can use various ways, for example, if calculating the score value of basic game strategy When, the game data that the game parameter of game characteristic represents is better, and score value is higher, and game characteristic is more important, and weighted value is bigger, right In such case, then the highest basic game strategy of score value in all possible basic game strategy can be determined, be optimal Basic game strategy.For example, it is assumed that the corresponding basic game strategy of mutation game data includes basic game strategy A, basis trip Play strategy B, basic game strategy C, basic game strategy D, wherein the score value of basic game strategy A is 0.85, basic game plan Slightly the score value of B is 0.89, and the score value of basic game strategy C is 0.95, and the score value of basic game strategy D is 0.99, due to 0.99 0.95 > of >, 0.89 > 0.85 can determine that basic game strategy D is optimal basic tactics of the game at this time.
Conversely, if the game data that the game parameter of game characteristic represents is better when calculating the score value of basic game strategy, Score value is lower, and game characteristic is more important, and weighted value is low, then can determine that score value is minimum in all possible basic game strategy Basic game strategy is optimal basic game strategy.It include equally base with the corresponding basic game strategy of mutation game data For plinth tactics of the game A, basic game strategy B, basic game strategy C, basic game strategy D, wherein basic game strategy A Score value be 0.85, the score value of basic game strategy B is 0.89, and the score value of basic game strategy C is 0.95, basic game strategy The score value of D is 0.99, due to 0.99 >, 0.95 >, 0.89 > 0.85, can determine that basic game strategy A is optimal basis at this time Tactics of the game.
104, operation of the current virtual role in mutation game is executed according to the tactics of the game of current virtual role.
In the embodiment of the present invention, after the tactics of the game for determining current virtual role, according to the trip of current virtual role Operation of the play strategy execution current virtual role in mutation game.In terminal side, that is, show the game plan of current virtual role Slightly implementation procedure and implementing result.
The embodiment of the present invention is by when operating, obtaining the change of current virtual role in the corresponding mutation game of basic game Kind game data;Mutation game logic is obtained, mutation game logic is the game logic of mutation game comparative basis game variation; According to mutation game logic and preset tactics of the game algorithm, the tactics of the game of current virtual role is determined;In mutation game The tactics of the game of current virtual role is executed, the operation of mutation game is completed.The embodiment of the present invention is in basic game mutation game When operation is released, without individually developing the tactics of the game algorithm of mutation game, the game logic algorithm of basic game can use And mutation game logic, it realizes the tactics of the game automation and intelligent execution of mutation game, realizes mutation tactics of the game algorithm Calculating effect, reduce mutation game release when development of games amount and development cost, accelerate game run development progress so that The starting period is subcooled in game fast speed, promotes user's retention ratio.
Under the premise of realizing the operation of mutation game intelligenceization, due to the popularization operation in later period, user can be slow for mutation game It is slow to increase significantly, if using the policing algorithm of existing basic game, the burden of server can be greatly increased, with Amount amount it is larger when, the executive mode arithmetic speed using above-mentioned mutation game is excessively slow, such as due to being advised according to game Board type is then traversed, the replacement of favus's board is carried out, time-consuming is proportional to board type number * favus's board number.It is found by actual measurement, when calculating is played a card, 1 Favus's board about 1 second, 2 favus's board about 3 seconds, 3 or more then need 10 seconds or more, and speed influences other of same office's game slowly excessively The game experiencing of user.Therefore the individual tactics of the game algorithm for needing to consider to propose to be suitble to mutation game, such as research and development mutation Game AI etc..So on the basis of the embodiment described in front, in other embodiments of the invention, as shown in figure 3, this hair Method can also include in bright embodiment:
201, according to the tactics of the game algorithm of basic game and mutation game logic, playing chess certainly for mutation game is carried out, with Obtain the game data of the mutation game of default value unit;
In the embodiment of the present invention, the intelligence of a virtual role in mutation game may be implemented in the embodiment depicted in figure 2 Change operation, according to the tactics of the game algorithm and mutation game logic of basic game, by the intelligence that multiple virtual roles are arranged Operation, can carry out playing chess certainly for mutation game, i.e., multiple virtual roles are played chess certainly, a large amount of mutation trip available in this way The game data of play.
In some embodiments, according to the tactics of the game algorithm of basic game and mutation game logic, mutation trip is carried out Playing chess certainly for play, to obtain the game data of the mutation game of default value unit, can specifically include:Modify basic game Tactics of the game algorithm, so that the tactics of the game algorithm of modified basic game can acquire the game data of mutation game;Root According to the tactics of the game algorithm and mutation game logic of modified basic game, playing chess certainly for mutation game is carried out, it is pre- to obtain If the game data of the mutation game of numerical value unit.
The game number generated due to the data of tactics of the game algorithm needs and the game algorithm of basic game of mutation game According to variant, it is therefore desirable to modify to the tactics of the game algorithm of basic game, so that the game of modified basic game Policing algorithm can acquire the game data of mutation game.For example, if the tactics of the game algorithm of basic game is basic game AI Algorithm then carries out part modification to basic game AI, mainly addition part input feature vector, can acquire the trip of mutation game Logic of playing and tactics of the game acquire the game data of mutation game.By taking favus's fighting landlord as an example, we are in conventional 3 people's fighting landlords On the basis of, input feature vector is increased, shown in table 1 specific as follows:
Table 1
Add input feature vector It explains
Favus's board Such as favus's board of local exchange, such as " 7 ".
Favus's number in hands Such as 3
It should be noted that for favus's number in hands, for different fighting landlord mutation game, favus's total number meeting There are some differences, for example, favus's number is up to 4 in hands in the more favus's fighting landlord game of player, and in player In relatively less slightly world favus's fighting landlord game, favus's number is up to 8.
In addition, the default value unit can be pre-set, meet the data volume of demand, which can be with Inning unit, such as 100,000 innings of mutation game are also possible to mutation in chronomere, such as one month and swim from data of playing chess The data of playing chess certainly of play, the i.e. data of playing chess certainly from the mutation game for a collection in month of playing chess, certainly, the preset data unit is also It can be storage cell, for example, the data of playing chess certainly of 10T mutation game, herein, the default value unit are not especially limited.
202, according to the game data of the mutation game of the default value unit, preset game training model training is utilized Generate the tactics of the game algorithm of mutation game.
After collecting the game data of mutation game of default value unit, it can utilize preset game training mould The tactics of the game algorithm of type training generation mutation game.Wherein, mutation game is generated using preset game training model training Tactics of the game algorithm, can using supervised learning method training generate mutation game tactics of the game algorithm.
According to the tactics of the game algorithm of basic game and mutation game logic in the present embodiment, carry out mutation game from right The game data for obtaining the mutation game of default value unit is played chess, and then generates mutation using preset game training model training The tactics of the game algorithm of game realizes the generation of the tactics of the game algorithm of mutation game, further improves mutation game Intelligent operation efficiency and efficiency of operation.
Since a basic game often has multiple mutation game, such as mutation game 1, mutation game 2, specifically such as, 3 The mutation game of people's fighting landlord has the various mutation game such as favus's fighting landlord, 2 people's fighting landlords and 4 people's fighting landlords.And in another change Kind game is when operating, at this time due to the above-mentioned game logic for having existed basic game and mutation game, another mutation trip The operation of play can choose as needed carries out intelligent operation with one of basic game or mutation game, without being limited to In basic game.Therefore, in some embodiment of the invention, method can further include in the embodiment of the present invention:
In the corresponding another mutation game of basic game when operating, the game data of current another virtual role is obtained; The first game logic and the second game logic are obtained, the first game logic is the trip of another mutation game comparative basis game variation Play logic, the second game logic are another mutation game with respect to the game logic that mutation game changes;According to the first game logic Or second game logic, predict the corresponding basic game strategy of the game data of another virtual role;According to preset basis trip The tactics of the game algorithm of play selects optimal basis trip in the corresponding basic game strategy of game data of another virtual role Play strategy, the tactics of the game as current another virtual role;It is executed according to the tactics of the game of current another virtual role current Operation of another virtual role in another mutation game.
Further, according to the first game logic or the second game logic, the game data pair of another virtual role is predicted The basic game strategy answered, including:Compare the first game logic and the second game logic, in basic game and mutation game really The fixed target game close with the game logic of another mutation game;The trip changed according to another mutation game relative target game Play logic, predicts the corresponding basic game strategy of the game data of another virtual role, realizes the operation of another mutation game.Its In, compare the first game logic and the second game logic, it is determining and another mutation game in basic game and mutation game The mode of the close target game of game logic, can be the item number compared in the first game logic and the second game logic, root Target game close with the game logic of another mutation game in basic game and mutation game is determined according to item number, for example, 3 are defined in first game logic, 5 are defined in the second game logic, it is determined that the game logic of another mutation game Comparative basis game variation item number is less, and closer to basic game, which is basic game.It is on the contrary, however, it is determined that another The game logic comparative basis game variation item number of one mutation game is more, closer to mutation game, it is determined that the mutation game For target game.
It should be noted that the mode of the intelligent operation of above-mentioned another mutation game of realization and aforementioned mutation game The realization of operation is similar, and specific implementation details, which can refer to, to be described above, and details are not described herein again.
Citing, is described in further detail by the method according to described in above-described embodiment below.
Method is mainly used in the chess category that chess and card games, especially artificial intelligence can participate in the embodiment of the present invention Game, such as fighting landlord game, chess game etc., by taking favus's fighting landlord as an example, 3 people's fighting landlords (abbreviation fighting landlord) are one kind in The Card Games of state's prevalence is that the movement of land reform is detailed in about old society's class struggle, and fighting landlord is a kind of canaster, trip Play is at least carried out by 3 players, with secondary 54 boards (even terrible board), as shown in figure 4, being game circle of fighting landlord game Face schematic diagram, wherein a side is landlord, remaining two are peasant, and both sides' battle, first a side of complete board wins out.Favus's fighting landlord Primitive rule is consistent with 3 people's fighting landlords, and can determine " favus's board " at random after revealing the ins and outs, that is, has 4 boards in other boards of arranging in pairs or groups When can substitute arbitrary board.
For data processing equipment by taking server as an example, basic game is 3 people's fighting landlords, and mutation game is favus's fighting landlord, 3 people Fighting landlord development of games has corresponding 3 people fighting landlord game AI, and in favus's fighting landlord game, terminal A is current virtual role Corresponding terminal, virtual role in terminal A actively or passively trustship game when, to server send trustship request, service Device receives trustship request, obtains the hands of favus's fighting landlord game of terminal A current virtual role in favus's fighting landlord game, The favus of favus's fighting landlord game is obtained using rule, after predicting all changes, all possible 3 people fighting landlord is played a card strategy, Optimal strategy of playing a card is selected in these strategies of playing a card according to 3 people fighting landlord game AI, then server automatic intelligent bag Virtual role in body terminal A carries out operation of playing a card.
Data processing method in the embodiment of the present invention is described below with reference to a concrete application scene.
Referring to Fig. 5, Fig. 5 is another flow diagram of data processing method provided in an embodiment of the present invention, this method Process may include:
301, the virtual role in terminal A sends favus's fighting landlord trustship request to server;
Specifically, the virtual role in terminal A in favus's fighting landlord game trustship (for a long time do not operate automatic trustship or Person actively clicks " trustship " button in favus's fighting landlord interface), favus's fighting landlord trustship request is sent to server.
In the present embodiment, basic game is 3 people's fighting landlords, and mutation game is favus's fighting landlord, 3 people's fighting landlord developments of games There is corresponding 3 people fighting landlord game AI.
When virtual role trustship game in terminal A, server receives trustship request.
302, server is according to the hands of trustship request current virtual role;
Specifically, after server receives trustship request, the hands of available current virtual role.
As shown in Figure 6, it is assumed that the hands of current virtual role be hands in include 3567JJJ and two favus's board, two A favus's board is AA.
303, the favus that server obtains favus's fighting landlord game uses rule;
For example, favus is specific as follows using rule:
1, specifying certain points is favus, and each points include 4 patterns, that is, shares 4 favus's boards.
2,1 or multiple favus's boards combine other non-favus's boards that can carry out any transformation, gather into legal board type to reach Purpose, such as antithetical phrase, along son, aircraft and soft deep-frying bullet.
3, favus's board, which only leans on itself not, can be carried out transformation.
304, for server according to the favus of favus's fighting landlord game using rule, the hands of prediction current virtual role are corresponding Strategy of playing a card;
Specifically, predicting that the hands of current virtual role are corresponding according to the favus of favus's fighting landlord game using rule Strategy of playing a card can obtain favus board AA first, and then according to all possible values of favus's board AA prediction, favus's board AA can divide Do not become 33,34,48 and 4J, it should be noted that for example, favus's board AA can not directly become 22, because this does not meet leprosy The game rule of sub- fighting landlord.
333567JJJ, 334567 JJJ, 345678 JJJ are gathered into as shown in fig. 6, can convert according to two favus's board AA With the legal strategy of playing a card such as 34567JJJJ, but two favus's board AA cannot be leaned on only and itself are transformed into 22.At this time, The legal strategy of playing a card such as 333567JJJ, 334567 JJJ, 345678 JJJ and 34567JJJJ is the hand of current virtual role The corresponding strategy of playing a card of board.
305, server selects in the corresponding strategy of playing a card of hands of current virtual role according to 3 people fighting landlord game AI Optimal strategy of playing a card, the strategy of playing a card as current virtual role;
Corresponding the example above is played a card 333567JJJ, 334567 JJJ, 345678 JJJ and 34567JJJJ etc. are legal In strategy, an optimal strategy of playing a card, such as 34567JJJJ, the tactics of the game as current virtual role are selected.
Determine it is optimal play a card strategy when, it is assumed that the hands of current virtual role are corresponding, and strategy of playing a card includes following (its It is strategy of playing a card outside bracket, is remaining hands after playing a card in bracket):
Play a card strategy 1:3335(67JJJ);
Play a card strategy 2:(3)34567(JJJ);
Play a card strategy 3:345678(JJJ);
Play a card strategy 4:34567(JJJJ).
Firstly the need of every kind of corresponding score value of strategy of playing a card is calculated, as shown in Figure 7, it is assumed that the score value that strategy 1 of playing a card calculates It is 0.95, the score value that strategy 2 calculates of playing a card is 0.89, and the score value that strategy 3 calculates of playing a card is 0.91, point that strategy 4 of playing a card calculates Value is 0.99.
Due to 0.99 >, 0.95 >, 0.89 > 0.85, the strategy 4 of playing a card of maximum score value is selected to make in this 4 strategies of playing a card Strategy of playing a card for the corresponding optimal strategy of playing a card of hands of current virtual role, as current virtual role.
306, according to behaviour of the strategy execution current virtual role in favus's fighting landlord game that plays a card of current virtual role Make.
Specifically, executing above-mentioned strategy 4 of playing a card in favus's fighting landlord game:34567 are got, bomb is left:JJJJ, Virtual role is completed in this way in the operation of favus's fighting landlord game.
307, this operation for terminating virtual role, waits next operation.
From the foregoing, it will be observed that, without individually exploitation favus's fighting landlord game AI, can use 3 people when favus's fighting landlord is released Fighting landlord AI realizes the tactful intelligent execution of playing a card of favus's fighting landlord, realizes the calculating effect of favus's fighting landlord game AI, drop Development of games amount and development cost when low favus's fighting landlord is released accelerate favus's fighting landlord and run development progress, so that favus The starting period is subcooled in fighting landlord fast speed, promotes user's retention ratio.
For convenient for better implementation data processing method provided in an embodiment of the present invention, the embodiment of the present invention also provides one kind Device based on above-mentioned data processing method.Wherein the meaning of noun is identical with above-mentioned data processing method, and specific implementation is thin Section can be with reference to the explanation in embodiment of the method.
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of data processing equipment provided in an embodiment of the present invention, the wherein data Processing unit may include first acquisition unit 801, second acquisition unit 802, the first predicting unit 803, first selecting unit 804 and first execution unit 805, it is specific as follows:
First acquisition unit 801, for when operating, obtaining current virtual role in the corresponding mutation game of basic game Mutation game data;
Second acquisition unit 802, for obtaining mutation game logic, mutation game logic is the trip of mutation game comparative basis The game logic of play variation;
Determination unit 803, for determining current virtual role according to mutation game logic and preset tactics of the game algorithm Tactics of the game;
First execution unit 804 executes current virtual role in mutation for the tactics of the game according to current virtual role Operation in game.
Optionally, determination unit 803 includes prediction subelement and selects subelement, specific as follows:
Subelement is predicted, for predicting the corresponding basis trip of the mutation game data according to the mutation game logic Play strategy;
Subelement is selected, for selecting optimal base in the basic game strategy according to preset tactics of the game algorithm Plinth tactics of the game, the tactics of the game as the current virtual role.
Optionally, prediction subelement is specifically used for:
Obtain variable corresponding with mutation game logic in mutation game data;
According to all values of mutation game logic predictive variable;
All values are applied respectively in mutation game data, to obtain the corresponding basic game plan of mutation game data Slightly.
Optionally, selection subelement is specifically used for:
It obtains in the corresponding basic game strategy of mutation game data, corresponding game is special in each basic game strategy Sign;
The score value of each basic game strategy is calculated according to game characteristic;
According to the corresponding score value of each basic game strategy, basis optimal in all possible basic game strategy is determined Tactics of the game.
Optionally, selection subelement is specifically used for:
The score value of each game characteristic in each basic game strategy is calculated using preset scoring rule;
According to the score value of each game characteristic, the score value of each basic game strategy is calculated.
Optionally, selection subelement is specifically used for:
Obtain the weighted value of preset each game characteristic;
According to the score value of each game characteristic and the weighted value of each game characteristic, having for each game characteristic is calculated Imitate score value;
Summation operation is carried out to effective game points of each game characteristic in each basic game strategy, is obtained each The score value of basic game strategy.
Optionally, the device further include from playing chess unit and training unit, it is specific as follows:
Mutation game is carried out for the tactics of the game algorithm and mutation game logic according to basic game from unit of playing chess Play chess certainly, to obtain the game data of the mutation game of default value unit;
Training unit utilizes preset game training for the game data according to the mutation game of default value unit The tactics of the game algorithm of model training generation mutation game.
Optionally, unit of playing chess certainly includes modifying subelement and subelement of playing chess certainly, specific as follows:
Subelement is modified, for modifying the tactics of the game algorithm of basic game, so that the trip of modified basic game Play policing algorithm can acquire the game data of mutation game;
From subelement of playing chess, for the tactics of the game algorithm and mutation game logic according to modified basic game, into Row mutation game is played chess certainly, obtains the game data of the mutation game of default value unit.
Optionally, which further includes third acquiring unit, the 4th acquiring unit, predicting unit, selecting unit and second Execution unit, it is specific as follows:
Third acquiring unit, for when operating, obtaining current another void in the corresponding another mutation game of basic game The game data of quasi- role;
4th acquiring unit, for obtaining the first game logic and the second game logic, the first game logic is another change The game logic of kind game comparative basis game variation, the second game logic are what another mutation game changed with respect to mutation game Game logic;
Predicting unit, for predicting the game number of another virtual role according to the first game logic or the second game logic According to corresponding basic game strategy;
Selecting unit, for the tactics of the game algorithm according to preset basic game, in the game number of another virtual role Tactics of the game according to selecting optimal basic game strategy in corresponding basic game strategy, as current another virtual role;
Second execution unit exists for executing current another virtual role according to the tactics of the game of current another virtual role Operation in another mutation game.
Optionally, predicting unit is specifically used for:
Compare the first game logic and the second game logic, it is determining in basic game and mutation game to be swum with another mutation The close target game of the game logic of play;
According to the game logic that another mutation game relative target game changes, the game data of another virtual role is predicted Corresponding basic game strategy.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The embodiment of the present invention is when basic game mutation game operation is released, without individually developing the game plan of mutation game Slightly algorithm, first acquisition unit 801, second acquisition unit 802, determination unit 803 and the first execution unit 804 can use base The game logic algorithm and mutation game logic of plinth game realize the tactics of the game automation and intelligent execution of mutation game, It realizes the calculating effect of mutation tactics of the game algorithm, reduces development of games amount and development cost when mutation game is released, accelerate Development progress is runed in game, so that the starting period is subcooled in game fast speed, promotes user's retention ratio.
The embodiment of the present invention also provides a kind of server, as shown in figure 9, it illustrates take involved in the embodiment of the present invention The structural schematic diagram of business device, specifically:
The server may include one or processor 901, one or more meters of more than one processing core The components such as memory 902, power supply 903 and the input unit 904 of calculation machine readable storage medium storing program for executing.Those skilled in the art can manage It solves, server architecture shown in Fig. 9 does not constitute the restriction to server, may include than illustrating more or fewer portions Part perhaps combines certain components or different component layouts.Wherein:
Processor 901 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part by running or execute the software program and/or module that are stored in memory 902, and calls and is stored in memory Data in 902, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate Managing device 901 may include one or more processing cores;Preferably, processor 901 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation storage medium of application processor, user interface and application program etc., modem processor Main processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 901.
Memory 902 can be used for storing software program and module, and processor 901 is stored in memory 902 by operation Software program and module, thereby executing various function application and data processing.Memory 902 can mainly include storage journey Sequence area and storage data area, wherein application program needed for storing program area can store operation storage medium, at least one function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for server Data etc..In addition, memory 902 may include high-speed random access memory, it can also include nonvolatile memory, such as At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 902 can be with Including Memory Controller, to provide access of the processor 901 to memory 902.
Server further includes the power supply 903 powered to all parts, it is preferred that power supply 903 can be deposited by power management Storage media and processor 901 are logically contiguous, to realize management charging, electric discharge and power consumption by power management storage medium The functions such as management.Power supply 903 can also include one or more direct current or AC power source, recharge storage medium, electricity The random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
The server may also include input unit 904, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated Enter.
Although being not shown, server can also be including display unit etc., and details are not described herein.Specifically in the present embodiment, Processor 901 in server can according to following instruction, by the process of one or more application program is corresponding can It executes file to be loaded into memory 902, and runs the application program being stored in memory 902 by processor 901, thus Realize various functions, it is as follows:
In the corresponding mutation game of basic game when operating, the mutation game data of current virtual role is obtained;It obtains Mutation game logic, mutation game logic are the game logic of mutation game comparative basis game variation;It is patrolled according to mutation game Volume and preset tactics of the game algorithm, determine the tactics of the game of current virtual role;According to the tactics of the game of current virtual role Execute operation of the current virtual role in mutation game.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to data processing method, details are not described herein again.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed Device is loaded, to execute the step in the transfer method of any virtual resource provided by the embodiment of the present invention.For example, should Instruction can execute following steps:
In the corresponding mutation game of basic game when operating, the mutation game data of current virtual role is obtained;It obtains Mutation game logic, mutation game logic are the game logic of mutation game comparative basis game variation;It is patrolled according to mutation game Volume and preset tactics of the game algorithm, determine the tactics of the game of current virtual role;According to the tactics of the game of current virtual role Execute operation of the current virtual role in mutation game.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute at any data provided by the embodiment of the present invention Step in reason method, it is thereby achieved that achieved by any data processing method provided by the embodiment of the present invention Beneficial effect is detailed in the embodiment of front, and details are not described herein.
It is provided for the embodiments of the invention a kind of data processing method, device and storage medium above and has carried out detailed Jie It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (15)

1. a kind of data processing method, which is characterized in that the method includes:
In the corresponding mutation game of basic game when operating, the mutation game data of current virtual role is obtained;
Mutation game logic is obtained, the mutation game logic is the game of the relatively described basic game variation of the mutation game Logic;
According to the mutation game logic and preset tactics of the game algorithm, the tactics of the game of the current virtual role is determined;
Operation of the current virtual role in the mutation game is executed according to the tactics of the game of the current virtual role.
2. data processing method according to claim 1, which is characterized in that described according to the mutation game logic and pre- The tactics of the game algorithm set determines the tactics of the game of the current virtual role, including:
According to the mutation game logic, the corresponding basic game strategy of the mutation game data is predicted;
Optimal basic game strategy is selected in the basic game strategy according to preset tactics of the game algorithm, as described The tactics of the game of current virtual role.
3. data processing method according to claim 2, which is characterized in that it is described according to the mutation game logic, in advance The corresponding basic game strategy of the mutation game data is surveyed, including:
Obtain variable corresponding with the mutation game logic in the mutation game data;
All values of the variable are predicted according to the mutation game logic;
All values are applied respectively in the mutation game data, to obtain the corresponding base of the mutation game data Plinth tactics of the game.
4. data processing method according to claim 2, which is characterized in that described according to the preset basic game Tactics of the game algorithm selects optimal basic game strategy in the basic game strategy, as the current virtual role's Tactics of the game, including:
It obtains in the corresponding basic game strategy of the mutation game data, corresponding game is special in each basic game strategy Sign;
The score value of each basic game strategy is calculated according to the game characteristic;
According to the corresponding score value of each basic game strategy, basic game optimal in all possible basic game strategy is determined Strategy.
5. data processing method according to claim 4, which is characterized in that described to be calculated each according to the game characteristic The score value of basic game strategy, including:
The score value of each game characteristic in each basic game strategy is calculated using preset scoring rule;
According to the score value of each game characteristic, the score value of each basic game strategy is calculated.
6. data processing method according to claim 5, which is characterized in that point according to each game characteristic Value, calculates the score value of each basic game strategy, including:
Obtain the weighted value of preset each game characteristic;
According to the score value of each game characteristic and the weighted value of each game characteristic, having for each game characteristic is calculated Imitate score value;
Summation operation is carried out to effective game points of each game characteristic in each basic game strategy, is obtained described each The score value of basic game strategy.
7. data processing method according to claim 1, which is characterized in that the method also includes:
According to the tactics of the game algorithm of the basic game and the mutation game logic, carry out the mutation game from right It plays chess, to obtain the game data of the mutation game of default value unit;
It is raw using preset game training model training according to the game data of the mutation game of the default value unit At the tactics of the game algorithm of the mutation game.
8. data processing method according to claim 7, which is characterized in that the game plan according to the basic game Slightly algorithm and the mutation game logic, carry out playing chess certainly for the mutation game, to obtain the change of default value unit The game data of kind game, including:
The tactics of the game algorithm of the basic game is modified, so that the tactics of the game algorithm of the modified basic game can Acquire the game data of the mutation game;
According to the tactics of the game algorithm of the modified basic game and the mutation game logic, the mutation game is carried out Play chess certainly, to obtain the game data of the mutation game of default value unit.
9. data processing method according to claim 1, which is characterized in that the method also includes:
In the corresponding another mutation game of basic game when operating, the game data of current another virtual role is obtained;
First game logic and the second game logic are obtained, first game logic is that another mutation game is opposite The game logic of the basic game variation, second game logic are the relatively described mutation game of another mutation game The game logic of variation;
According to first game logic or second game logic, predict that the game data of another virtual role is corresponding Basic game strategy;
According to the tactics of the game algorithm of the preset basic game, in the corresponding base of game data of another virtual role Optimal basic game strategy is selected in plinth tactics of the game, the tactics of the game as current another virtual role;
Current another virtual role is executed in another mutation game according to the tactics of the game of current another virtual role In operation.
10. data processing method according to claim 9, which is characterized in that it is described according to first game logic or Second game logic predicts the corresponding basic game strategy of game data of another virtual role, including:
Compare first game logic and the second game logic, the determining and institute in the basic game and the mutation game State the close target game of the game logic of another mutation game;
According to the game logic of the relatively described target game variation of another mutation game, another virtual role is predicted The corresponding basic game strategy of game data.
11. a kind of data processing equipment, which is characterized in that described device includes:
First acquisition unit, for when operating, obtaining the mutation of current virtual role in the corresponding mutation game of basic game Game data;
Second acquisition unit, for obtaining mutation game logic, the mutation game logic is that the mutation game is relatively described The game logic of basic game variation;
Determination unit, for determining the current virtual angle according to the mutation game logic and preset tactics of the game algorithm The tactics of the game of color;
First execution unit executes current virtual role in the mutation for the tactics of the game according to the current virtual role Operation in game.
12. data processing equipment according to claim 11, which is characterized in that the determination unit includes:
Subelement is predicted, for predicting the corresponding basic game plan of the mutation game data according to the mutation game logic Slightly;
Subelement is selected, for selecting optimal basis trip in the basic game strategy according to preset tactics of the game algorithm Play strategy, the tactics of the game as the current virtual role.
13. data processing equipment according to claim 12, which is characterized in that the prediction subelement is specifically used for:
Obtain variable corresponding with the mutation game logic in the mutation game data;
All values of the variable are predicted according to the mutation game logic;
All values are applied respectively in the mutation game data, to obtain the corresponding base of the mutation game data Plinth tactics of the game.
14. data processing equipment according to claim 12, which is characterized in that the selection subelement is specifically used for:
It obtains in the corresponding basic game strategy of the mutation game data, corresponding game is special in each basic game strategy Sign;
The score value of each basic game strategy is calculated according to the game characteristic;
According to the corresponding score value of each basic game strategy, basic game optimal in all possible basic game strategy is determined Strategy.
15. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 1 to 10 described in any item data processing methods is required with perform claim.
CN201810646759.5A 2018-06-21 2018-06-21 Data processing method, device and storage medium Active CN108874377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810646759.5A CN108874377B (en) 2018-06-21 2018-06-21 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810646759.5A CN108874377B (en) 2018-06-21 2018-06-21 Data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108874377A true CN108874377A (en) 2018-11-23
CN108874377B CN108874377B (en) 2023-04-18

Family

ID=64340818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810646759.5A Active CN108874377B (en) 2018-06-21 2018-06-21 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108874377B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109646946A (en) * 2019-01-15 2019-04-19 竞技世界(北京)网络技术有限公司 A kind of chess/card game trustship method and device
CN109901882A (en) * 2018-11-28 2019-06-18 努比亚技术有限公司 Game application adding method, terminal and storage medium based on gamespace

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080280684A1 (en) * 2006-07-25 2008-11-13 Mga Entertainment, Inc. Virtual world electronic game
US20120115590A1 (en) * 2009-11-05 2012-05-10 Think Tek, Inc. Casino games
CN103188245A (en) * 2011-12-31 2013-07-03 上海火瀑云计算机终端科技有限公司 Fight game server system
CN103472756A (en) * 2013-09-27 2013-12-25 腾讯科技(深圳)有限公司 Artificial intelligence achieving method, server and equipment
CN103838982A (en) * 2014-03-27 2014-06-04 优视科技有限公司 Virtual game object generating method and device
CN105119733A (en) * 2015-07-06 2015-12-02 百度在线网络技术(北京)有限公司 Artificial intelligence system and state shifting method thereof, server and communication system
CN106055339A (en) * 2016-06-08 2016-10-26 天津联众逸动科技发展有限公司 Method for determining card playing strategy of computer player in two-against-one game
CN106999785A (en) * 2014-10-02 2017-08-01 乐高公司 Games system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080280684A1 (en) * 2006-07-25 2008-11-13 Mga Entertainment, Inc. Virtual world electronic game
US20120115590A1 (en) * 2009-11-05 2012-05-10 Think Tek, Inc. Casino games
CN103188245A (en) * 2011-12-31 2013-07-03 上海火瀑云计算机终端科技有限公司 Fight game server system
CN103472756A (en) * 2013-09-27 2013-12-25 腾讯科技(深圳)有限公司 Artificial intelligence achieving method, server and equipment
CN103838982A (en) * 2014-03-27 2014-06-04 优视科技有限公司 Virtual game object generating method and device
CN106999785A (en) * 2014-10-02 2017-08-01 乐高公司 Games system
CN105119733A (en) * 2015-07-06 2015-12-02 百度在线网络技术(北京)有限公司 Artificial intelligence system and state shifting method thereof, server and communication system
CN106055339A (en) * 2016-06-08 2016-10-26 天津联众逸动科技发展有限公司 Method for determining card playing strategy of computer player in two-against-one game

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张海峰 等: "通用对弈游戏:一个探索机器游戏智能的领域" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901882A (en) * 2018-11-28 2019-06-18 努比亚技术有限公司 Game application adding method, terminal and storage medium based on gamespace
CN109901882B (en) * 2018-11-28 2022-05-03 努比亚技术有限公司 Game application adding method based on game space, terminal and storage medium
CN109646946A (en) * 2019-01-15 2019-04-19 竞技世界(北京)网络技术有限公司 A kind of chess/card game trustship method and device
CN109646946B (en) * 2019-01-15 2024-01-30 竞技世界(北京)网络技术有限公司 Chess and card game hosting method and device

Also Published As

Publication number Publication date
CN108874377B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN107970608B (en) Setting method and device of level game, storage medium and electronic device
CN109091868B (en) Method, apparatus, computer equipment and the storage medium that battle behavior determines
US7537523B2 (en) Dynamic player groups for interest management in multi-character virtual environments
CN108463273A (en) Mobile history based on player carries out the games system etc. of the path finding of non-gaming person role
CN109513215A (en) A kind of object matching method, model training method and server
CN110443284A (en) Training method, call method, server and the readable storage medium storing program for executing of AI model
CN113688977B (en) Human-computer symbiotic reinforcement learning method and device oriented to countermeasure task, computing equipment and storage medium
CN112016704B (en) AI model training method, model using method, computer device and storage medium
CN101539968A (en) Go human-computer chess-playing system
CN109829578A (en) A kind of sale of electricity quotient and polynary user demand response game method and equipment
CN109343532A (en) A kind of paths planning method and device of dynamic random environment
CN108874377A (en) A kind of data processing method, device and storage medium
US20150179080A1 (en) Systems and methods for a physically intuitive resource-constrained route planning task for enhanced cognition
CN113230650B (en) Data processing method and device and computer readable storage medium
CN112685921B (en) Mahjong intelligent decision method, system and equipment for efficient and accurate search
CN110458295A (en) Chess and card outpost generation method, training method and device based on artificial intelligence
CN109731338A (en) Artificial intelligence training method and device, storage medium and electronic device in game
Tong et al. A Monte-Carlo approach for the endgame of Ms. Pac-Man
CN108304929A (en) A kind of determination method and system of the best tactics of lattice chess
CN106686681A (en) Cluster head satellite selection method and device
JP2023119056A (en) Game computer program, game system and control method thereof
CN110263937A (en) A kind of data processing method, equipment and storage medium
CN110102055A (en) A kind of decision-making technique and device of virtual objects
KR20080067892A (en) Apparatus and method of modeling for game
Brede et al. Strategies for resource exploitation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant