CN107694098A - 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
CN107694098A
CN107694098A CN201711145719.4A CN201711145719A CN107694098A CN 107694098 A CN107694098 A CN 107694098A CN 201711145719 A CN201711145719 A CN 201711145719A CN 107694098 A CN107694098 A CN 107694098A
Authority
CN
China
Prior art keywords
information
virtual role
weight
local terminal
public
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
CN201711145719.4A
Other languages
Chinese (zh)
Other versions
CN107694098B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711145719.4A priority Critical patent/CN107694098B/en
Publication of CN107694098A publication Critical patent/CN107694098A/en
Application granted granted Critical
Publication of CN107694098B publication Critical patent/CN107694098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/843Special adaptations for executing a specific game genre or game mode involving concurrently two or more players on the same game device, e.g. requiring the use of a plurality of controllers or of a specific view of game data for each player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • A63F13/95Storage media specially adapted for storing game information, e.g. video game cartridges

Abstract

The embodiment of the invention discloses a kind of data processing method, device and storage medium, the embodiment of the present invention is by obtaining the first information corresponding to local terminal virtual role, the second information corresponding to the virtual role of opposite end and local terminal virtual role and opposite end virtual role are shared public information;The first weight according to corresponding to the first information and public information obtain local terminal virtual role;The second weight according to corresponding to the second information and public information obtain opposite end virtual role;Update public information and the second information, and return to the step of performing the first weight according to corresponding to the first information and public information obtain local terminal virtual role, until update times reach preset times, obtain the first data set of the first weight comprising predetermined number, and the second data set of the second weight comprising predetermined number;Relation information between local terminal virtual role and opposite end virtual role is obtained according to the first data set and the second data set, and shows relation information, improves the diversity handled data.

Description

A kind of data processing method, device and storage medium
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of data processing method, device and storage medium.
Background technology
With the continuous popularization of terminal, user becomes increasingly dependent on terminal, and the application that can be installed in terminal is increasingly It is abundant, wherein, game application is liked that the type of game application is varied, for example, the De Ke in cards game by user deeply Sa Si playing card (Texas Hold ' em poker), its Chinese abbreviation holdem, it is a kind of community card class of player versus player Game.
In the prior art, terminal can typically show some information alerts player, for example, player in game display interface During holdem is played, general terminal obtains community card that can be current, and obtains the hand of player corresponding to the terminal Board, and according to current community card and the hands of player, calculate the current board type of player, then show the current board type of player, Now, player may be referred to board type and be staked on.For example, current community card is a J, a Q, 8 and two A, play When the hands of family are one J and one 6, it will the current board type of display player is two pairs, i.e. a pair of J and a pair of A.
In the research and practice process to prior art, it was found by the inventors of the present invention that due in the prior art, due to The information that terminal is shown is more single, for example, can only show current board type of player etc., therefore, the information that player can be known It is extremely limited, cause player can not know other effective information in time, largely effect on its operating effect.
The content of the invention
The embodiment of the present invention provides a kind of data processing method, device and storage medium, it is intended to improves to data processing Diversity.
In order to solve the above technical problems, the embodiment of the present invention provides following technical scheme:
A kind of data processing method, including:
Obtain the first information corresponding to local terminal virtual role, the second information and the local terminal corresponding to the virtual role of opposite end The public information that virtual role and opposite end virtual role are shared, the first information, the second information and public information are information bank Proper subclass;
The first weight according to corresponding to the first information and public information obtain the local terminal virtual role;
The second weight according to corresponding to second information and public information obtain the opposite end virtual role;
The public information and the second information are updated, and returns to execution and institute is obtained according to the first information and public information The step of stating the first weight corresponding to local terminal virtual role, until update times reach preset times, obtain including predetermined number The first weight the first data set, and the second data set of the second weight comprising predetermined number;
The local terminal virtual role and the opposite end virtual role are obtained according to first data set and the second data set Between relation information, and show the relation information.
A kind of data processing equipment, including:
Information acquisition unit, for obtaining the first information corresponding to local terminal virtual role, corresponding to the virtual role of opposite end The shared public information of two information and the local terminal virtual role and opposite end virtual role, the first information, the second information and Public information is the proper subclass of information bank;
First Weight Acquisition unit, for obtaining the local terminal virtual role pair according to the first information and public information The first weight answered;
Second Weight Acquisition unit, for obtaining the opposite end virtual role pair according to second information and public information The second weight answered;
Updating block, for updating the public information and the second information, and by the first Weight Acquisition unit and Two Weight Acquisition units obtain first weight and the second weight respectively, until update times reach preset times, are wrapped First data set of the first weight containing predetermined number, and the second data set of the second weight comprising predetermined number;
Display unit, for according to first data set and the second data set obtain the local terminal virtual role with it is described Relation information between the virtual role of opposite end, and show the relation information.
Alternatively, the first sequence subelement is specifically used for:
To the face amount of each information in the first information and public information from greatly to small carry out descending, the drop of generation first Sequence table;
First drop down list is traveled through according to rule of combination, it is determined that the composite type of matching;
The composite type is ranked up from high to low order according to priority, generates the first sorted lists.
Alternatively, the first acquisition subelement is specifically used for:
The weights of each information in the first object information are obtained, according to the power of the weights of each information generation first Value;
Composite type present in the first object information is determined according to rule of combination, determined according to the composite type Second weights;
The weight of the first object information is determined according to first weights and the second weights.
Alternatively, the second Weight Acquisition unit includes:
Second sequence subelement, for being arranged according to priority from high to low second information and public information Sequence, generate the second sorted lists;
Second extraction subelement, the second target for the preceding predetermined number of extraction row from second sorted lists Information;
Second obtains subelement, for obtaining the weight of second target information;
Second setting subelement, for the weight setting of second target information is corresponding for the opposite end virtual role The second weight.
Alternatively, the second sequence subelement is specifically used for:
To the face amount of each information in second information and public information from greatly to small carry out descending, the drop of generation second Sequence table;
Second drop down list is traveled through according to rule of combination, it is determined that the composite type of matching;
The composite type is ranked up from high to low order according to priority, generates the second sorted lists.
Alternatively, the second acquisition subelement is specifically used for:
The weights of each information in second target information are obtained, according to the power of the weights of each information generation the 3rd Value;
Composite type present in second target information is determined according to rule of combination, determined according to the composite type 4th weights;
The weight of second target information is determined according to the 3rd weights and the 4th weights.
Alternatively, the updating block is additionally operable to:
When the quantity that public information there is currently meets destination number, the public information is maintained;
The 3rd presupposed information is obtained from the information bank in addition to the first information and public information, and by the described 3rd Presupposed information is set as second information.
A kind of storage medium, the storage medium are stored with a plurality of instruction, and the instruction is loaded suitable for processor, with Perform the step in above-mentioned data processing method.
For the embodiment of the present invention by obtaining the first information corresponding to local terminal virtual role, the first information is contained in information Storehouse;The shared public information of local terminal virtual role and opposite end virtual role is obtained, and obtains corresponding to the virtual role of opposite end the Two information, public information and the second information are contained in information bank the information in addition to the first information.Then, according to the first information The first weight corresponding to local terminal virtual role is obtained with public information;The virtual angle in opposite end is obtained according to the second information and public information Second weight corresponding to color;Public information and the second information are updated, and returns to execution and is obtained according to the first information and public information First weight corresponding to local terminal virtual role, and the according to corresponding to the second information and public information obtain opposite end virtual role The steps such as two weights, until update times reach preset times, the first data set of the first weight comprising predetermined number is obtained, And the second data set of the second weight comprising predetermined number;Finally, this is calculated according to the first data set and the second data set The relation information between virtual role and opposite end virtual role is held, and shows relation information.Obtained in the program by preset times First weight corresponding to the local terminal virtual role arrived, and the second weight corresponding to the virtual role of opposite end, calculate local terminal virtual role With the relation information between the virtual role of opposite end, for example, the relationship between success and failure between local terminal virtual role and opposite end virtual role, makes Obtain user and may be referred to the relation information, reach the purpose for intuitively prompting and guiding user, improve and data are handled Diversity.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of data handling system provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of data processing method provided in an embodiment of the present invention;
Fig. 3 is another schematic flow sheet of data processing method provided in an embodiment of the present invention;
Fig. 4 is a schematic diagram of holdem game display interface provided in an embodiment of the present invention;
Fig. 5 is another schematic diagram of holdem game display interface provided in an embodiment of the present invention;
Fig. 6 is another schematic diagram of holdem game display interface provided in an embodiment of the present invention;
Fig. 7 is another schematic diagram of holdem game display interface provided in an embodiment of the present invention;
Fig. 8 is the structural representation of data processing equipment provided in an embodiment of the present invention;
Fig. 9 is another structural representation of data processing equipment provided in an embodiment of the present invention;
Figure 10 is another structural representation of data processing equipment provided in an embodiment of the present invention;
Figure 11 is the structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of data processing method, device and storage medium.
Referring to Fig. 1, the schematic diagram of a scenario for the data handling system that Fig. 1 is provided by the embodiment of the present invention, at the data Reason system can include data processing equipment, and the data processing equipment can specifically be integrated in tablet personal computer, mobile phone, notebook electricity Brain, desktop computer etc. possess storage element and are provided with microprocessor in the terminal with operational capability, and the terminal is Fig. 1 In terminal A, terminal A be local terminal virtual role where terminal, be mainly used in obtain local terminal virtual role corresponding to first The public information that second information corresponding to information, opposite end virtual role and local terminal virtual role and opposite end virtual role are shared, should The first information, the second information and public information is the proper subclass of information bank, the acquisition to information such as the first information and public informations, Can be that local terminal sends information acquisition request, and the related letter that the reception server is fed back based on information acquisition request to server Breath or other acquisition modes, particular content are not construed as limiting here.Then, according to the first information and public information Obtain the first weight corresponding to local terminal virtual role;And opposite end virtual role pair is obtained according to the second information and public information The second weight answered.Secondly, public information and the second information are updated, and returns to execution and is obtained according to the first information and public information Corresponding to local terminal virtual role the step of the first weight, until update times reach preset times, obtain comprising predetermined number First data set of the first weight, and the second data set of the second weight comprising predetermined number.Finally, according to the first data Collection and the second data set obtain the relation information between local terminal virtual role and opposite end virtual role, and show relation information, etc. Deng.
In addition, the data handling system can also include terminal B, terminal B can be tablet personal computer, mobile phone, notebook Computer, desktop computer etc. possess storage element and are provided with microprocessor and the terminal with operational capability, and terminal B is opposite end Terminal where virtual role, because opposite end virtual role can have an one or more, therefore the data handling system can be with Including the other-end (a terminal B is only provided in Fig. 3) in addition to terminal B, the specific number of terminal is not construed as limiting here.Should Terminal B is mainly used in the second information and public information of the information acquisition request feedback that the reception server is sent based on opposite end etc..
The data handling system can also include server, be mainly used in the acquisition of information that receiving terminal A or terminal B is sent Request, and to terminal A or terminal B feedback-related informations.The data handling system can also include memory, for storage information Storehouse, the information bank includes the first information, the second information and public information etc., to allow server to be obtained from memory The relevant informations such as the first information, the second information and public information are sent to terminal A or terminal B.
It should be noted that the schematic diagram of a scenario of the data handling system shown in Fig. 1 is only an example, the present invention is real It is in order to more clearly illustrate the technical scheme of the embodiment of the present invention, not to apply the data handling system of example description and scene The restriction for technical scheme provided in an embodiment of the present invention is formed, those of ordinary skill in the art understand, with data processing The differentiation of system and the appearance of new business scene, technical scheme provided in an embodiment of the present invention is for similar technical problem, together Sample is applicable.
It is described in detail individually below.
In the present embodiment, will be described from the angle of data processing equipment, the data processing equipment can specifically collect Into tablet personal computer, mobile phone etc. possess storage element and microprocessor is installed and with operational capability terminal in.
A kind of data processing method, including:It is corresponding to obtain the first information, opposite end virtual role corresponding to local terminal virtual role The second information and the shared public information of local terminal virtual role and opposite end virtual role, the first information, the second information and public Information is the proper subclass of information bank;The first weight according to corresponding to the first information and public information obtain local terminal virtual role;Root The second weight corresponding to the virtual role of opposite end is obtained according to the second information and public information;Public information and the second information are updated, and The step of performing the first weight according to corresponding to the first information and public information obtain local terminal virtual role is returned to, until renewal time Number reaches preset times, obtains the first data set of the first weight comprising predetermined number, and second comprising predetermined number Second data set of weight;Obtained according to the first data set and the second data set between local terminal virtual role and opposite end virtual role Relation information, and show relation information.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet for the data processing method that first embodiment of the invention provides.The data Processing method includes:
In a step 101, the first information corresponding to local terminal virtual role, the second letter corresponding to the virtual role of opposite end are obtained The public information that breath and local terminal virtual role and opposite end virtual role are shared.
Wherein, the first information, the second information and public information are the proper subclass of information bank, in the scene of chess and card games In, the information bank can be pack or a secondary playing card in addition to big Xiao Wang, can also be how secondary playing card Board, or secondary mahjong, etc., will be by secondary 52 sheet playing cards in addition to big Xiao Wang of information bank in following examples Example is described in detail, wherein, the first information, the second information and public information are the part playing card in 52 sheet playing cards.
It is understood that in other application scene, the information bank can also be the information bank comprising other information, tool Hold in vivo and be not construed as limiting here.
The mode that data processing equipment obtains the first information corresponding to local terminal virtual role can be, actively or passively from clothes Business device obtains the first information.Specifically, data processing equipment sends information acquisition request to server, and the reception server is based on The first information of information acquisition request feedback.For example, after game is opened, local terminal virtual role is generated, is started after playing i.e. Information acquisition request can be generated, and information acquisition request is sent to server, now, server can be to data processing equipment Send the information that game needs.Certainly, server can also be that data processing equipment is monitored, and game is opened when detecting When, the information played and needed actively is sent to data processing equipment.
Because game needs multi-party participation, therefore data processing equipment also needs to obtain second corresponding to the virtual role of opposite end Information, its acquisition modes can be that data processing equipment randomly selects presupposed information from the information of information bank current residual, make For the second information corresponding to the virtual role of opposite end.For example, in holdem game, 2 are extracted from 52 sheet playing cards and is flutterred After gram board is as the first information corresponding to local terminal virtual role, 2 sheet playing cards work will be extracted from remaining 50 sheet playing card For the second information corresponding to the virtual role of opposite end.In another example in three public canasters, 3 are extracted from 52 sheet playing cards Playing card are as the first information corresponding to local terminal virtual role, and extract 3 sheet playing cards and corresponded to as opposite end virtual role The second information.
It should be noted that for the fairness of game, because data processing equipment can only know that local terminal virtual role is corresponding The first information, the second information corresponding to the virtual role of opposite end can not be known, therefore data processing equipment currently remains from information bank Presupposed information is randomly selected in remaining information, as the second information corresponding to the virtual role of opposite end, now, data processing equipment obtains The second information got may not be real second information of opposite end virtual role.Certainly, in the case where some game allow, Data processing equipment directly can send information acquisition request to opposite end, and receive pair that opposite end is sent based on information acquisition request Hold real second information of virtual role.
According to the demand of different game, data processing equipment also needs to obtain local terminal virtual role and opposite end virtual role is total to The public information enjoyed, the public information are the visual information of local terminal and opposite end.For example, it is necessary to take out in holdem game It is all visual and available for all game participants that 5 sheet playing cards, which are taken out, as community card, the community card.
In being played in holdem, public information is not announced disposably, therefore data processing equipment can not one Secondary property gets real public information, for example, the first round deal out the cards announce 0 community card, second wheel deal out the cards announcement 3 it is public Board, third round, which is dealt out the cards, announces 4 community cards, and fourth round, which is dealt out the cards, announces 5 community cards.Now, data processing equipment can be first The quantity that public information there is currently is obtained, judges whether the quantity meets destination number;If the number that public information there is currently Amount is unsatisfactory for destination number, it is determined that the quantity between quantity and destination number is poor;From except the first information and the public affairs that there is currently In information bank outside co-information, presupposed information corresponding with quantity difference is obtained;Presupposed information is increased in public information, with Polishing public information, now obtain complete public information and simply simulate, and not real public information;If public information The quantity that there is currently meets destination number, then can be directly obtained complete public information, the public information now obtained It is real.
For example, it is necessary to 5 sheet playing cards be extracted as community card, although being dealt out the cards in the second wheel in holdem game 3 community cards are had issued for, but also without meeting 5, now can be from current 2 hands for removing local terminal virtual role 2 hands of board, opposite end virtual role, and after 3 community cards, 2 polishing public affairs are randomly selected out in remaining 45 sheet playing card Board altogether.
It should be noted that the first information, the second information and public information acquisition order, can be first from information bank The first information is obtained, then the second information is obtained from the information bank in addition to the first information, finally from except the first information and second Public information is obtained in information bank outside information;Either, the first information is first obtained from information bank, then from except the first information Outside information bank in obtain public information, finally from the information bank in addition to the first information and public information obtain second letter Breath, etc., specific acquisition order are not construed as limiting here.
In a step 102, the first weight according to corresponding to the first information and public information obtain local terminal virtual role.
After the first information, the second information and public information is got, data processing equipment can according to the first information and Public information obtains the first weight corresponding to local terminal virtual role.
In some embodiments, data processing equipment obtains local terminal virtual role pair according to the first information and public information The step of the first weight answered, can include:
(1) first information and public information are ranked up according to priority from high to low, generate the first sorted lists;
(2) the first object information of preceding predetermined number is arranged in extraction from the first sorted lists;
(3) weight of first object information is obtained;
(4) it is the first weight corresponding to local terminal virtual role by the weight setting of first object information.
Specifically, data processing equipment first can be according to the pre-set priority of game rule, to the first information and public Information is ranked up according to priority from high to low, and the pre-set priority rule can flexibly be set according to different game rules Put, for example, the pre-set priority rule can be ranked up according to the board face size of playing card and board type size etc..
Alternatively, the first information and public information are ranked up according to priority from high to low, generate the first Sorted list The step of table, can include:To the face amount of each information in the first information and public information from greatly to small carry out descending, generation First drop down list;First drop down list is traveled through according to rule of combination, it is determined that the composite type of matching;According to priority from up to Low order is ranked up to composite type, generates the first sorted lists.
According to different application scenarios, the first information, public information, rule of combination and composite type etc. can bases It is actually needed and is flexibly set.
For example, in holdem game, the first information is 2 hands of local terminal virtual role, and public information is 5 public affairs Board altogether, first to 2 hands and 5 community cards according to board face to small carry out descending, obtaining ordering first drop down list greatly, The board face is from can be A, K, Q, J, 10,9,8,7,6,5,4,3 and 2 etc. greatly to small order.
Specifically, it is assumed that 2 hands of local terminal virtual role are respectively heart A and square J, and 5 community cards are respectively side Block 8, plum blossom 9, heart 3, spade A and spade 9, according to board face from greatly to obtained order after small progress descending be followed successively by spade A, Heart A, square J, spade 9, plum blossom 9, square 8 and heart 3.
After descending sort, the first drop down list can be traveled through according to rule of combination, it is determined that the composite type of matching, the group High board, a pair, two pairs, three, suitable son, color, cucurbit, four, straight flush are normally followed successively by from as little as high according to priority And imperial straight flush etc..For example, include the first descending of spade A, heart A, square J, spade 9, plum blossom 9, square 8 and heart 3 In list, it is determined that it is a pair that the composite type of matching, which includes spade A and heart A, spade 9 and plum blossom 9 are a pair, altogether two pairs.
, can be according to the priority of composite type from high to low order after composite type is obtained, the combination to obtaining Type is ranked up, and generates the first sorted lists, for example, obtained order is followed successively by spade A, heart A, spade 9, plum blossom 9, side Block J, square 8 and heart 3 the first sorted lists.
Then, in the first sorted lists obtained after sequence, the first object information of preceding predetermined number is arranged in extraction, The predetermined number can flexibly be set according to different game rules, for example, preceding 5 sheet playing card is arranged in extraction, be obtained black Peach A, heart A, spade 9, plum blossom 9 and square J.
It should be noted that for different types of snipsnapsnorum, board face is from greatly to small order and composite type etc. Can flexibly it be set according to actual conditions, particular content is not construed as limiting here.
Secondly, after first object information is obtained, the weight of first object information can be obtained, alternatively, obtains first The step of weight of target information, can include:The weights of each information in first object information are obtained, according to each information Weights generate the first weights;Composite type present in first object information is determined according to rule of combination, it is true according to composite type Fixed second weights;The weight of first object information is determined according to the first weights and the second weights.
Certain weights are set per sheet playing card for example, first giving, generate the mapping relations between board face and weights, Ke Yishi Bigger according to board face, corresponding weights are higher;Board face is smaller, and the lower rule of corresponding weights is configured, for example, playing card A weights are 14, and the weights of playing card 9 are 9 etc., can be divided for the spade A in playing card A, heart A, plum blossom A and square A Different weights are not set, it can also be provided that same weights, particular content are not construed as limiting here.And it is various combination Type (i.e. board type) sets different weights, generates the mapping relations between composite type and weights, can be according to composite class The priority of type is higher, and corresponding weights are higher;The priority of composite type is lower, and the lower rule of corresponding weights is set Put, for example, a pair of weights are 1, the weights of straight flush are 8 etc., and particular content is not construed as limiting here.
In holdem game, first object information is to be taken out from 2 hands and 5 community cards of local terminal virtual role 5 higher sheet playing cards of the priority of taking-up, can be according to the mapping between board face and weights it is determined that after this 5 sheet playing card Relation, weights corresponding to every sheet playing card in this 5 sheet playing card are obtained, and closed according to the mapping between composite type and weights System, obtain weights corresponding to the board type of this 5 sheet playing card composition.
For example, this 5 sheet playing card is respectively spade A, heart A, spade 9, plum blossom 9 and square 2, spade A and heart A board The weights in face are 14, and the weights in the board face of spade 9 and plum blossom 9 are 9, and the weights in the board face of square 2 are 2, the power that will be obtained Value 14,14,9,9 and 2 is respectively converted into binary system, and the weights of combination producing first are successively in order 11101110100110010010.Determine that composite type present in this 5 sheet playing card is two pairs according to rule of combination, according to group Close type be two pairs determine corresponding to weights be 2, be converted into binary system, the second obtained weights be 0010.Then, according to The order of second weights and the first weights combines to obtain 001011101110100110010010 successively, and is converted into ten and enters System, the weight for obtaining first object information are 3074450.
It should be noted that in binary number corresponding to the weight of first object information, highest 4 is the power of composite type Binary number corresponding to value (such as 0010), other from it is high to low be from 5 high to low sheet playing cards successively according to priority Binary number corresponding to the weights in board face.The weight of the first object information can also be calculated according to other calculations, No longer enumerate one by one herein.
Finally, can be the first weight corresponding to local terminal virtual role by the weight setting of first object information, storage should First weight, conveniently need to use first weight during follow-up calculating.
In step 103, the second weight according to corresponding to the second information and public information obtain opposite end virtual role.
After the first information, the second information and public information is got, data processing equipment can according to the second information and Public information obtains the second weight corresponding to the virtual role of opposite end.
In some embodiments, data processing equipment obtains opposite end virtual role pair according to the second information and public information The step of the second weight answered, can include:
(1) the second information and public information are ranked up according to priority from high to low, generate the second sorted lists;
(2) the second target information of preceding predetermined number is arranged in extraction from the second sorted lists;
(3) weight of the second target information is obtained;
(4) it is the second weight corresponding to the virtual role of opposite end by the weight setting of the second target information.
Specifically, data processing equipment first can be according to the pre-set priority of game rule, to the second information and public Information is ranked up according to priority from high to low, and the pre-set priority rule can flexibly be set according to different game rules Put, for example, the pre-set priority rule can be ranked up according to the board face size of playing card and board type size etc..
Alternatively, the second information and public information are ranked up according to priority from high to low, generate the second Sorted list The step of table, can include:To the face amount of each information in the second information and public information from greatly to small carry out descending, generation Second drop down list;Second drop down list is traveled through according to rule of combination, it is determined that the composite type of matching;According to priority from up to Low order is ranked up to composite type, generates the second sorted lists.
According to different application scenarios, the second information, public information, rule of combination and the composite type etc. can bases It is actually needed and is flexibly set.
For example, in holdem game, the second information is 2 hands of opposite end virtual role, and public information is 5 public affairs Board altogether, first to 2 hands and 5 community cards according to board face to small carry out descending, obtaining ordering second drop down list greatly, The board face is from can be A, K, Q, J, 10,9,8,7,6,5,4,3 and 2 etc. greatly to small order.
Specifically, it is assumed that 2 hands of opposite end virtual role are respectively that 6,5 community cards of heart Q and plum blossoms block are respectively Square 8, plum blossom 9, heart 3, spade A and spade 9, according to board face from being followed successively by spade to obtained order after small progress descending greatly A, heart Q, spade 9, plum blossom 9, square 8, plum blossom 6 and heart 3.
After descending sort, the second drop down list can be traveled through according to rule of combination, it is determined that the composite type of matching, the group High board, a pair, two pairs, three, suitable son, color, cucurbit, four, straight flush are normally followed successively by from as little as high according to priority And imperial straight flush etc..For example, include the second descending of spade A, heart Q, spade 9, plum blossom 9, square 8, plum blossom 6 and heart 3 In list, it is determined that it is a pair, altogether a pair that the composite type of matching, which includes spade 9 and plum blossom 9,.
, can be according to the priority of composite type from high to low order after composite type is obtained, the combination to obtaining Type is ranked up, and the second sorted lists is generated, for example, obtained order is followed successively by spade 9, plum blossom 9, spade A, heart Q, side Second sorted lists of block 8, plum blossom 6 and heart 3.
Then, in the second sorted lists obtained after sequence, the second target information of preceding predetermined number is arranged in extraction, The predetermined number can flexibly be set according to different game rules, for example, preceding 5 sheet playing card is arranged in extraction, be obtained black Peach 9, plum blossom 9, spade A, heart Q and square 8.
It should be noted that for different types of snipsnapsnorum, board face is from greatly to small order and composite type etc. Can flexibly it be set according to actual conditions, particular content is not construed as limiting here.
Secondly, after the second target information is obtained, the weight of the second target information can be obtained, alternatively, obtains second The step of weight of target information, can include:The weights of each information in the second target information are obtained, according to each information Weights generate the 3rd weights;Composite type present in second target information is determined according to rule of combination, it is true according to composite type Fixed 4th weights;The weight of the second target information is determined according to the 3rd weights and the 4th weights.
Certain weights are set per sheet playing card for example, first giving, generate the mapping relations between board face and weights, Ke Yishi Bigger according to board face, corresponding weights are higher;Board face is smaller, and the lower rule of corresponding weights is configured, and particular content exists It is not construed as limiting herein.And different weights are set for different combination types (i.e. board type), generate between composite type and weights Mapping relations, can be higher according to the priority of composite type, corresponding weights are higher;The priority of composite type is got over Low, the lower rule of corresponding weights is configured, and particular content is not construed as limiting here.
In holdem game, the second target information is to be taken out from 2 hands and 5 community cards of opposite end virtual role 5 higher sheet playing cards of the priority of taking-up, can be according to the mapping between board face and weights it is determined that after this 5 sheet playing card Relation, obtain and calculate weights corresponding to every sheet playing card in this 5 sheet playing card, and according to reflecting between composite type and weights Relation is penetrated, obtains weights corresponding to the board type of this 5 sheet playing card composition.
For example, this 5 sheet playing card is respectively spade 9, plum blossom 9, spade A, heart Q and square 8, the board of spade 9 and plum blossom 9 The weights in face are 9, and the weights in spade A board face are 14, and the weights in heart Q board face are 12, and the weights in the board face of square 8 are 8, obtained weights 9,9,14,12 and 8 are respectively converted into binary system, and the weights of combination producing the 3rd are successively in order 10011001111011001000.Determine that composite type present in this 5 sheet playing card is a pair according to rule of combination, according to group Close type be two pairs determine corresponding to weights be 1, be converted into binary system, the 4th obtained weights be 0001, then, according to The order of 4th weights and the 3rd weights combines to obtain 000110011001111011001000 successively, and is converted into ten and enters System, obtains the and the weight of the second target information is 1679048.The weight of second target information can also be according to other calculating Mode is calculated, and particular content does not limit here.Finally, can be that local terminal is empty by the weight setting of the second target information Second weight corresponding to intending role, second weight is stored, conveniently needs to use second weight during follow-up calculating.
At step 104, public information and the second information are updated.
In step 105, judge whether update times reach preset times;If it is not, then perform step 102;If so, then hold Row step 106.
In step 106, the first data set of the first weight comprising predetermined number is obtained, and includes predetermined number Second data set of the second weight.
Because in the embodiment of the present invention, the fairness based on game, data processing equipment possibly can not accurately know opposite end Second information of virtual role, therefore it is only an estimation result to obtain the second information, for undocumented part or all of Public information, it is also to be obtained by estimation to get public information, and obtains the second information according to estimation and public information is entered Row simulation calculates.
In order to improve the accuracy of estimation result and reliability, data processing equipment can use the think of of Monte carlo algorithm Think, carry out repeatedly simulation and calculate, that is, update public information and the second information, and return to execution according to the first information and public information The step of obtaining the first weight corresponding to local terminal virtual role, until update times reach preset times, the preset times can be with Flexibly set according to being actually needed, for example, preset times can be 8000 times, specific value is not construed as limiting here.
It should be noted that in the embodiment of the present invention in addition to preset times carry out simulation calculating, in actual applications, All possibility situations can also be traveled through to be calculated, particular content is not construed as limiting here.
In some embodiments, the step of updating public information and the second information can include:Public information is obtained to work as Preceding existing quantity;Judge whether quantity meets destination number;If it is not, the quantity then between quantification and destination number is poor; From the information bank in addition to the first information and the public information that there is currently, the corresponding with quantity difference first default letter is obtained Breath;Presupposed information is increased in public information;It is pre- that second is obtained from the information bank in addition to the first information and public information If information, and the second presupposed information is set as the second information.
For example, in holdem game, public information is 5 community cards, because during game, the first round is sent out Board announces 0 community card, and the second wheel, which is dealt out the cards, announces 3 community cards, and third round, which is dealt out the cards, announces 4 community cards, and fourth round is dealt out the cards public affairs Cloth 5 opens community card, it is therefore desirable to is determined to obtain the mode of community card according to the process of going game.Specifically, data processing fills The quantity that community card there is currently can first be obtained by putting, and judge whether the quantity meets destination number, and the destination number can be 5 .If community card is also not up to 5, now, the quantity between quantification and destination number is poor, i.e. the also poor a few Zhang Da of community card To 5.
For example, game is currently at the second wheel and has disclosed 3 community cards, also poor 2 community cards can be only achieved 5 (i.e. Destination number), at this time, it may be necessary to (i.e. current from 2 hands (i.e. the first information) except local terminal virtual role and 3 community cards Existing public information) outside 47 sheet playing cards (i.e. information bank) in, randomly select out 2 sheet playing cards (the i.e. first default letter Breath), this 2 sheet playing card is increased in public information, you can polishing 5 opens community card.Again from 2 hands except local terminal virtual role In 45 sheet playing cards outside board and 5 community cards, it is empty as opposite end to randomly select out 2 sheet playing cards (i.e. the second presupposed information) Intend 2 hands of role.
Then, according to corresponding to local terminal virtual role the first information and renewal after public information according to above-mentioned steps 102 The first weight corresponding to local terminal virtual role is calculated, and the according to corresponding to the public information after renewal and opposite end virtual role Two information calculate the second weight corresponding to the virtual role of opposite end according to above-mentioned steps 103, and by the first obtained weight and second Weight is stored, and is repeated no more here.
Further, after judging the step of whether quantity meets destination number, when the quantity that public information there is currently When meeting destination number, public information is maintained;It is default that the 3rd is obtained from the information bank in addition to the first information and public information Information, and the 3rd presupposed information is set as the second information.
For example, game is currently at fourth round and dealt out the cards and disclosed 5 community cards, community card has reached 5, now, Playing card polishing community card need not be extracted from the playing card of current residual again, only need to be from 2 hands except local terminal virtual role In 45 sheet playing cards outside board and 5 community cards, 2 hands of 2 sheet playing cards as opposite end virtual role are randomly selected out. Then, the first weight corresponding to local terminal virtual role is calculated according to above-mentioned steps 102, and according to the calculating pair of above-mentioned steps 103 The second weight corresponding to virtual role is held, and the first obtained weight and the second weight are stored, is repeated no more here.
When update times are not up to preset times, data processing equipment reacquires community card and right according to the method described above The hands of virtual role are held, then, according to the first weight corresponding to the calculating local terminal virtual role of above-mentioned steps 102, and according to Above-mentioned steps 103 calculate the second weight corresponding to the virtual role of opposite end, and the first obtained weight and the second weight are deposited Storage, is repeated no more here.
When update times reach preset times, the first data set of the first weight comprising predetermined number is obtained, and Second data set of the second weight comprising predetermined number.For example, when update times are 8000 times, the first obtained weight is 8001, i.e., each corresponding first weight that renewal obtains every time, plus first weight obtained before renewal.
It should be noted that according to the rule of different game, public information, information bank, destination number, the first default letter Breath, the second presupposed information and the 3rd presupposed information etc., can flexibly be set according to being actually needed, and particular content is here not It is construed as limiting.
In step 107, local terminal virtual role and opposite end virtual role are obtained according to the first data set and the second data set Between relation information, and show relation information.
Wherein, relation information can include relationship between success and failure, for example, the probability won victory and probability of failure etc..
Obtaining the first data set of the first weight comprising predetermined number, and the second weight comprising predetermined number After second data set, it can be obtained according to the first data set and the second data set between local terminal virtual role and opposite end virtual role Relation information, the relation information can be referred to for player, and in order to intuitively be presented to player, relation information can be shown Show.The display mode of relation information can carry out intuitively display or by pie chart or progress bar with word or numeral Shown etc. form, relation information can also report by voice broadcast, etc., particular content does not limit here It is fixed.
Alternatively, obtained according to the first data set and the second data set between local terminal virtual role and opposite end virtual role Relation information, and can include the step of show relation information:The first weight will be obtained every time and the second weight is compared respectively Compared with obtaining each comparative result;According to comparative result and predetermined number calculate local terminal virtual role and opposite end virtual role it Between relationship between success and failure;The winning rate of local terminal virtual role is determined according to relationship between success and failure, and shows winning rate.
Specifically, the first data set of the first weight comprising predetermined number, and the comprising predetermined number are being obtained After second data set of two weights, can from the first data set and the second data set, obtain every time corresponding to the first weight and Second weight, will be each corresponding to the first weight and the second weight be compared, for example, the first weight and second can be compared Magnitude relationship between weight, when the first weight is more than the second weight, illustrate that local terminal virtual role wins, when the first weight is less than During the second weight, illustrate that local terminal virtual role is born, the number of statistics local terminal virtual role victory, and the total degree of statistical comparison, The winning rate for obtaining local terminal virtual role is:Number/total degree * 100% of local terminal virtual role victory, finally enters obtained winning rate Row display.For example, when the number that local terminal virtual role wins is 800 times, and total degree is 1000 times, local terminal virtual role is obtained Winning rate is 80%.So as to give one comparison of the player intuitively prompting of expected winning rate and guiding function, it is possible to reduce player Irrational bet, make the sports environment of rationality.
It should be noted that data processing equipment can be provided for being turned on and off showing opening for relation information function Close, after display relation information function is opened, data processing equipment will perform above-mentioned steps 101 to step 107, finally show Obtained relation information;After display relation information function is closed, data processing equipment will not show relation information, Wan Jiake To be turned on and off showing relation information function according to the hobby of oneself or demand selection.
From the foregoing, it will be observed that the embodiment of the present invention is by obtaining the first information corresponding to local terminal virtual role, the first information bag It is contained in information bank;The public information that local terminal virtual role and opposite end virtual role are shared is obtained, and obtains opposite end virtual role Corresponding second information, public information and the second information are contained in information bank the information in addition to the first information.Then, according to The first information and public information obtain the first weight corresponding to local terminal virtual role;According to the second information and public information acquisition pair Hold the second weight corresponding to virtual role;Public information and the second information are updated, and returns to execution according to the first information and public First weight corresponding to acquisition of information local terminal virtual role, and opposite end virtual role is obtained according to the second information and public information The steps such as corresponding second weight, until update times reach preset times, obtain the of the first weight comprising predetermined number One data set, and the second data set of the second weight comprising predetermined number;Finally, according to the first data set and the second data Collection calculates the relation information between local terminal virtual role and opposite end virtual role, and shows relation information.By pre- in the program If the first weight corresponding to the local terminal virtual role that number obtains, and the second weight corresponding to the virtual role of opposite end, local terminal is calculated Relation information between virtual role and opposite end virtual role, for example, the victory between local terminal virtual role and opposite end virtual role Negative relation so that user may be referred to the relation information, reaches the purpose for intuitively prompting and guiding user, improves to data The diversity handled.
Citing, is described in further detail by the method according to described by above-described embodiment below.
So that holdem is played as an example, player at least 2 people in holdem game, usually participated in by 2-10 people.Moral 52 sheet playing cards in addition to trump are shared in the canaster of state, when game starts, each player distributes two boards as hands, Then five community cards sent upward successively by lotus official.Each player is from two hands and five community cards of itself, choosing Go out five board groups for being combined into maximum, victory or defeat comparison is carried out with other players.
Data processing equipment is by taking terminal A as an example, and in holdem game, terminal A is the end where local terminal virtual role End, terminal B are the terminal where the virtual role of opposite end, and terminal A obtains two hands of local terminal virtual role first, and in basis When this two hands are determined into pond, according to three the allocated community cards, two benefits are randomly selected from remaining playing card Neat five community cards, and randomly select two two hands as opposite end virtual role.Then, according to local terminal virtual role Two hands, two hands of opposite end virtual role and five community cards calculate the first winning rate of local terminal virtual role, and show Show the first winning rate, referred to for player corresponding to local terminal virtual role.When play continue when, distribute the 4th community card, and from surplus A polishing five is randomly selected in remaining playing card and opens community card, and randomly selects two two as opposite end virtual role Hands, then the second winning rate of local terminal virtual role is calculated, and the second winning rate is shown, join for player corresponding to local terminal virtual role Examine.When game continues, the 5th community card is distributed, and randomly selects two from remaining playing card and is used as the virtual angle in opposite end Two hands of color, then the 3rd winning rate of local terminal virtual role is calculated, and the 3rd winning rate is shown, for corresponding to local terminal virtual role Player refers to.
Referring to Fig. 3, Fig. 3 is another schematic flow sheet of data processing method provided in an embodiment of the present invention.This method Flow can include:
201st, terminal A the reception servers are two hands of local terminal virtual role distribution.
Wherein, terminal A is provided with holdem game application in advance, after opening holdem game application, you can enters Game, terminal A servers corresponding with holdem game establish communication connection.
After local exchange game starts, terminal A first determines the information bank being made up of 52 sheet playing cards, and determines local exchange trip All participants (i.e. player) of play, for example, local terminal virtual role and at least one opposite end virtual role etc. can be included.And Server determines the information bank being made up of 52 sheet playing cards, and determines all participants of local exchange game, it is determined that all ginsengs Behind side, server is from 52 sheet playing cards, and respectively each participant distributes two hands, and now, terminal A can be received Server is two hands of local terminal virtual role distribution, and can only know the board face of two hands of local terminal virtual role, and The board face of two hands of opposite end virtual role can not be known.
For example, it is assumed that there are three players in the game of local exchange holdem, certainly, in holdem game also Can there are 2 or 4 to 10 players, the present embodiment should not be understood as to player only to facilitate description institute illustrated example Quantity limits, but no matter how many player, the process of data processing is all similar, can be managed according to the example Solution.
In Fig. 4, the game of local exchange holdem includes local terminal virtual role Bee Liu, an opposite end virtual role Jacky With three players such as another opposite end virtual role Vivian, server is respectively that each player distributes by lotus official's virtual role 2 hands, Fig. 4 are that terminal A shows the current display interface of holdem game, wherein, local terminal virtual role Bee Liu are obtained Two hands be respectively heart K and plum blossom K, now, the top of local terminal virtual role icon shows Thinking, illustrates local terminal Virtual role Bee Liu are currently at consideration state.
202nd, terminal A obtains the board power winning rate of local terminal virtual role, and show according to two hands of local terminal virtual role Board power winning rate.
The rule played according to holdem, it can pre-set between different board faces and the board power winning rate of two hands Mapping relations, for example, when two hands hands are respectively spade A and heart A, board power winning rate is 100%;When two hands hands When board is respectively spade J and plum blossom J, board power winning rate is 90%;When two hands hands are respectively square Q and heart 9, board power Winning rate is 50%;When two hands hands are respectively spade 6 and heart 2, board power winning rate is 10%;Etc..It is appreciated that It is that the mapping relations between the different board faces of two hands and board power winning rate can flexibly be set according to actual conditions, has Hold in vivo and be not construed as limiting here.
After two hands of local terminal virtual role are known, terminal A can be according between different board faces and board power winning rate Mapping relations, board power winning rate corresponding to acquisition, and board power winning rate expected from two hands of local terminal virtual role is shown, for making Referred to terminal A player, selection stakes on, board or abandons board etc. with noting, allowing.
It should be noted that the display mode of board power winning rate can intuitively be shown with word or numeral, can also It is to be shown by forms such as pie chart or progress bars, relation information can also report by voice broadcast, etc., tool Hold in vivo and be not construed as limiting here.
For example, in Fig. 4, terminal A is respectively heart K and plum according to two obtained hands of local terminal virtual role Bee Liu Flower K, the board power winning rate of estimation local terminal virtual role is 100%, and the progress bar by being divided into 10 lattice is shown, wherein, Every lattice represent 10% winning rate in 10 lattice, and now the full lattice of the progress bar of the lower right of local terminal virtual role icon show 100%.
203rd, terminal A judges whether local terminal virtual role enters pond;If so, then perform step 204;If it is not, then perform step 212。
Each participant obtains carrying out after two hands the first round and staked on, and can select board or to abandon board etc. with noting, allowing, this When, terminal A sees the presence situation that detecting is played in display interface, judges whether local terminal virtual role is selected into pond, when local terminal is empty When plan role selecting abandons board, terminate local exchange game;When the selection of local terminal virtual role is staked on, game continues.
204th, after three community cards are distributed, terminal A randomly selected from remaining playing card two polishings five open it is public Board, and randomly select two two hands as opposite end virtual role.
When the first round stakes on end, and game continues, server-assignment three opens community card, now, local terminal virtual role and Opposite end virtual role would know that the board face of this three community cards.For example, as shown in figure 5, three community cards be respectively heart 6, Heart 10 and heart 4.
Current community card only has three, and complete community card needs five, in order to according to local terminal virtual role Two hands, two hands of five community cards and opposite end virtual role, calculate the first winning rate of local terminal virtual role, this When, terminal A can be in addition to this three community cards, also poor two community cards, and two hands of opposite end virtual role Sampled, i.e. terminal A can randomly select two polishings five from remaining playing card and open community card, and randomly select two Two hands of Zhang Zuowei opposite ends virtual role.When three players in such as Fig. 5 be present, now in the presence of the virtual angle in two opposite ends Color is, it is necessary to randomly select two two hands as an opposite end virtual role, then randomly selects two conducts another is right Hold two hands of virtual role.
Specifically, so that local exchange game has three players as an example, terminal A first obtains the quantity that community card there is currently and is 3, it is determined that not meeting five, and determine that community card is also poor two, now, terminal A can remove local terminal from 52 sheet playing cards Two hands of virtual role and the allocated three community cards, obtain remaining 47 sheet playing card, then from this 47 playing card Two are randomly selected in board and is used as community card, two community cards so extracted, plus three the allocated community cards, just Five community cards can be obtained.Then, two for two hands of local terminal virtual role being removed from 52 sheet playing cards, having been extracted Community card and the allocated three community cards are opened, obtain 45 sheet playing cards, then two works are randomly selected from 45 sheet playing cards For two hands of an opposite end virtual role, and two another opposite ends of conduct are randomly selected from remaining 43 sheet playing card Two hands of virtual role.
It is understood that terminal A can also first from 52 sheet playing cards remove local terminal virtual role two hands and Three the allocated community cards, remaining 47 sheet playing card is obtained, then two conducts are randomly selected from this 47 sheet playing card Two hands of one opposite end virtual role, and two another opposite end of conduct void are randomly selected from remaining 45 sheet playing card Intend two hands of role.Then, two for two hands of local terminal virtual role being removed from 52 sheet playing cards, having been extracted Two hands of community card and the opposite end virtual role extracted, obtain 43 sheet playing cards, then from 43 sheet playing cards with Machine extracts two community card polishings five and opens community card.
Now, in five community cards obtained, it is that stochastical sampling obtains to have two, rather than real community card, with And two hands of obtained opposite end virtual role are also what stochastical sampling obtained, not real hands of opposite end virtual role.
205th, terminal A is according to two hands of two hands of local terminal virtual role, five community cards and opposite end virtual role Board, the first winning rate of local terminal virtual role is calculated, and show the first winning rate.
After two hands of two hands of local terminal virtual role, five community cards and opposite end virtual role are obtained, eventually End A can further calculate the first winning rate of local terminal virtual role.
It should be noted that terminal A can pre-set weights corresponding to each board face, and weighed corresponding to every kind of board type Value, for example, mapping relations of the table 1 between board face and weights, corresponding relation of the table 2 between board type and weights.Wherein, table 1 Middle board face is bigger, and corresponding weights are higher;Board face is smaller, and corresponding weights are lower.Board type is bigger in table 2, and corresponding weights are got over It is high;Board type is smaller, and corresponding weights are lower.
Flexibly set it is understood that parameter every in Tables 1 and 2 can be actually needed, specific value exists It is not construed as limiting herein,, can be with when needing to carry out the differentiation of size to same board face according to pattern for example, in actual applications Different weights are assigned to the different patterns in same board face, for example, can be assigned respectively to spade A, heart A, plum blossom A and square A The weights 17,16,15 and 14 given, for convenience, in embodiments of the present invention, will be by taking parameters in Tables 1 and 2 as an example Illustrate.
Table 1
Board face A K Q J 10 9 8 7 6 5 4 3 2
Weights 14 13 12 11 10 9 8 7 6 5 4 3 2
Table 2
Board type Imperial straight flush Straight flush Four Cucurbit Color Along son Three Two pairs A pair High board
Weights 9 8 7 6 5 4 3 2 1 0
First, weight corresponding to local terminal virtual role is calculated:The rule that terminal A plays according to holdem, local terminal is empty Intend two hands of role and seven sheet playing cards of five community cards composition, be ranked up according to board face from high to low, i.e., according to A, K, Q, the order of J, 10,9,8,7,6,5,4,3 and 2 are ranked up, then to being pressed according to seven sheet playing cards after the descending of board face Be ranked up according to board type from high to low, i.e., according to imperial straight flush, straight flush, four, cucurbit, color, along son, three, two pairs, A pair and high board are ranked up.
For example, in Fig. 5, the allocated three community cards are respectively heart 6, heart 10 and heart 4, local terminal virtual role Two hands be respectively heart K and plum blossom K, it is assumed that two community cards extracted are respectively plum blossom A and square J, according to board After high to low progress descending, the order of seven obtained boards is plum blossom A, heart K, plum blossom K, square J, heart 10, heart 6 in face With heart 4, further according to board type after high to low progress descending, the order of seven obtained boards is heart K, plum blossom K, plum blossom A, square J, heart 10, heart 6 and heart 4.
Then, in seven sheet playing cards after according to board type descending, preceding five sheet playing card of the row of extracting, according to table 1 With the weight of the weight computing local terminal virtual role in table 2.
For example, the order of seven obtained boards is heart K, plum blossom K, plum blossom A, square J, heart 10, heart 6 and heart 4, Therefrom preceding five sheet playing card of the row of extracting is heart K, plum blossom K, plum blossom A, square J and heart 10, now, according to the He of table 1 In this five sheet playing card of the determination of table 2, the weights per sheet playing card board face, and weighed corresponding to the board type of this five sheet playing card composition Value, shown in table 3.Wherein, in table 3, the weights of board type are put in the first place, and are arranged successively according to the order of each board face from big to small Sequence, heart K, plum blossom K, plum blossom A, the weights of square J and heart 10, is corresponding in turn to the weights in board face 1, the weights in board face 2, board face 3 weights, the weights in the weights winning face 5 in board face 4.Due to board type present in this five sheet playing card be a pair, therefore this five Weights corresponding to the board type of sheet playing card are 1.
Table 3
Wherein, the binary number according to corresponding to the weight that table 3 can obtain local terminal virtual role is 000111011101111010111010, decimal number is converted into as 1957562,1957562 sheets as finally given The weight of virtual role is held, when subsequently by the weight of local terminal virtual role compared with the weight of opposite end virtual role, is needed What is compared is decimal numeral weight size.
It should be noted that in binary number corresponding to the weight of local terminal virtual role, highest 4 is the weights pair of board type The binary number (such as 0001) answered, other from it is high to low be from 5 high to low sheet playing card board faces successively according to priority Weights corresponding to binary number.
The calculation of the weight of local terminal virtual role can also be actually needed and flexibly be set, for convenience, In embodiments of the present invention, it will think and illustrate exemplified by above-mentioned calculation.
Secondly, weight corresponding to the virtual role of opposite end is calculated:The rule that terminal A plays according to holdem, it will extract Two hands of opposite end virtual role and seven sheet playing cards of five community cards composition, arranged according to board face from high to low Sequence, i.e., it is ranked up according to A, K, Q, J, 10,9,8,7,6,5,4,3 and 2 order, then to according to seven after the descending of board face Playing card are ranked up according to board type from high to low, i.e., according to imperial straight flush, straight flush, four, cucurbit, color, along son, three Bar, two pairs, a pair and high board are ranked up.
Then, in seven sheet playing cards after according to sequence descending, preceding five sheet playing card of the row of extracting, according to above-mentioned The weight of weight computing local terminal virtual role in Tables 1 and 2, the calculating side of its calculation and the weight of local terminal virtual role Formula is similar, and therefore not to repeat here.
When not only existing 2 players in local exchange game, also need to calculate weight corresponding to other opposite end virtual roles, it is counted Calculation mode is similar with the above-mentioned calculation to the corresponding weight of one of opposite end virtual role, and therefore not to repeat here.
After the weight of the weight of local terminal virtual role and opposite end virtual role is obtained, compare the weight of local terminal virtual role And the magnitude relationship between the weight of opposite end virtual role, for example, when the weight of local terminal virtual role is more than opposite end virtual role Weight when, local terminal virtual role victory;When the weight of local terminal virtual role is less than the weight of opposite end virtual role, local terminal is virtual Role bears;When the weight of local terminal virtual role is equal to the weight of opposite end virtual role, local terminal virtual role and the virtual angle in opposite end Color is into deuce;Now, the number and comparative result currently compared is recorded.
In order to improve the accuracy and reliability of the first winning rate of local terminal virtual role, terminal A can use Monte Carlo The thought of algorithm, carry out repeatedly simulation and calculate, i.e., two hands and of local terminal virtual role are removed from 52 sheet playing cards Three community cards of distribution, obtain remaining 47 sheet playing card, then randomly select two polishings five from this 47 sheet playing card and open Community card, and randomly select two two hands as opposite end virtual role.
Then, it is public according to two hands of the local terminal virtual role redefined and five according to above-mentioned calculation Board, the weight of local terminal virtual role is calculated, and it is public according to two hands of the opposite end virtual role redefined and five Board, calculate the weight of opposite end virtual role.By the weight of the local terminal virtual role retrieved and the weight of opposite end virtual role It is compared, and records the number and comparative result currently compared.
Because sampling number is more, more approximate optimal solution simulates that the number of calculating is more, obtain local terminal virtual role Therefore winning rate, can repeatedly randomly select two polishings five and open community card, and randomly select two conducts closer to exact value Two hands of opposite end virtual role, then calculate the weight of local terminal virtual role and the weight of opposite end virtual role.Simulation calculates Number can flexibly be set according to being actually needed, for example, preset times can be 9000 times, specific value is here not It is construed as limiting.
After repeatedly simulation calculates, the total degree that simulation calculates, and the number of local terminal virtual role victory are obtained, now, can With the number according to total degree and local terminal virtual role victory, the first winning rate of calculating local terminal virtual role:Local terminal virtual role Number/total degree * 100% of first winning rate=local terminal virtual role victory, is finally shown the first obtained winning rate, for Referred to using terminal A player, select board or to abandon board etc. with noting, allowing.
For example, in Fig. 5, the first winning rate that local terminal virtual role is calculated is 70%, current in holdem game In display interface, 70% winning rate is shown in the form of progress bar in the lower right of local terminal virtual role icon, due to the progress Bar is divided into 10 lattice, and 10% winning rate is represented per lattice, therefore, can show the first winning rate by Fill Color in 7 lattice.In addition, Local terminal virtual role Bee Liu two hands, with reference to three community cards, existing board type is a pair, therefore, virtual in local terminal The lower right prompting Pair of character icon, the board type for representing there is currently is a pair.
206th, terminal A judges whether local terminal virtual role continues to play;If so, then perform step 207;If it is not, then perform Step 212.
After three community cards are distributed carry out second wheel stake on, now, terminal A detecting local terminal virtual role whether select after Continuous game, when the selection of local terminal virtual role continues game, game continues;When board is abandoned in the selection of local terminal virtual role, terminate this Office's game.
207th, after the 4th community card is distributed, terminal A randomly selects a polishing five from remaining playing card and opens public affairs Board altogether, and randomly select two two hands as opposite end virtual role.
When the second wheel stakes on ends, during game continuation, the 4th community card of server-assignment, now, local terminal virtual role The board face of this four community cards is would know that with opposite end virtual role.For example, as shown in fig. 6, four community cards are respectively heart 6th, heart 10, heart 4 and spade 6.
Current community card only has four, and complete community card needs five, in order to according to local terminal virtual role Two hands, two hands of five community cards and opposite end virtual role, calculate the second winning rate of local terminal virtual role, this When, terminal A can be in addition to this four community cards, also poor community card, and two hands of opposite end virtual role Sampled, i.e. terminal A can randomly select a polishing five from remaining playing card and open community card, and randomly select two Two hands of Zhang Zuowei opposite ends virtual role.When three players in such as Fig. 5 be present, now in the presence of the virtual angle in two opposite ends Color is, it is necessary to randomly select two two hands as an opposite end virtual role, then randomly selects two conducts another is right Hold two hands of virtual role.
Specifically, so that local exchange game has three players as an example, terminal A first obtains the quantity that community card there is currently and is 4, it is determined that not meeting five, and determine that community card is also poor one, now, terminal A can remove local terminal from 52 sheet playing cards Two hands of virtual role and the allocated four community cards, obtain remaining 46 sheet playing card, then from this 46 playing card One is randomly selected in board and is used as community card, the community card so extracted, plus four the allocated community cards, just Five community cards can be obtained.Then, one for two hands of local terminal virtual role being removed from 52 sheet playing cards, having been extracted Community card and the allocated four community cards are opened, obtain 45 sheet playing cards, then two works are randomly selected from 45 sheet playing cards For two hands of opposite end virtual role, and it is virtual to randomly select from remaining 43 sheet playing card two another opposite ends of conduct Two hands of role.
It is understood that terminal A can also first from 52 sheet playing cards remove local terminal virtual role two hands and Four the allocated community cards, remaining 46 sheet playing card is obtained, then two conducts are randomly selected from this 46 sheet playing card Two hands of one opposite end virtual role, and two another opposite end of conduct void are randomly selected from remaining 45 sheet playing card Intend two hands of role.Then, two for two hands of local terminal virtual role being removed from 52 sheet playing cards, having been extracted Two hands of community card and the opposite end virtual role extracted, obtain 43 sheet playing cards, then from 43 sheet playing cards with Machine extracts a community card polishing five and opens community card.
Now, in five community cards obtained, it is that stochastical sampling obtains to have one, rather than real community card, with And two hands of obtained opposite end virtual role are also what stochastical sampling obtained, not real hands of opposite end virtual role.
208th, terminal A is according to two hands of two hands of local terminal virtual role, five community cards and opposite end virtual role Board, the second winning rate of local terminal virtual role is calculated, and show the second winning rate.
After two hands of two hands of local terminal virtual role, five community cards and opposite end virtual role are obtained, eventually End A can further calculate the second winning rate of local terminal virtual role, and the second obtained winning rate is shown, should for using Terminal A player is referred to.
First, weight corresponding to weight corresponding to local terminal virtual role and opposite end virtual role is calculated, when in local exchange game When not only existing 2 players, also need to calculate weight corresponding to other opposite end virtual roles, weight corresponding to local terminal virtual role Calculation, and the calculation of weight is similar with above-mentioned calculation corresponding to the virtual role of opposite end, does not go to live in the household of one's in-laws on getting married herein State.
For example, in Fig. 6, local terminal virtual role Bee Liu weight, an opposite end virtual role is calculated in repeatedly simulation After Jacky weight and another opposite end virtual role Vivian weight, the weight obtained every time is compared respectively, The number of local terminal virtual role Bee Liu victory is determined, and is won according to the total degree that simulation calculates and local terminal virtual role Bee Liu Number, be calculated local terminal virtual role Bee Liu winning rate be 60%.In the current display interface of holdem game It is interior, 60% winning rate is shown in the form of progress bar in the lower right of local terminal virtual role icon.
In Fig. 6 display interface, under an opposite end virtual role Jacky all gives as security the note in hand, the top of its icon All-In is shown, represents that all bet, another opposite end virtual role Vivian are currently at consideration state, the top of its icon Show Thinking.Due to local terminal virtual role Bee Liu two hands, with reference to existing four community cards so that local terminal Board type existing for virtual role Bee Liu be two pairs, therefore local terminal virtual role icon lower right prompt Two Pair, with It is two pairs to represent board type existing for local terminal virtual role Bee Liu.
209th, terminal A judges whether local terminal virtual role continues to play;If so, then perform step 210;If it is not, then perform Step 212.
Carry out third round after the 4th community card is distributed to stake on, now, whether terminal A detecting local terminal virtual roles select Continue to play, when the selection of local terminal virtual role continues game, game continues;When board is abandoned in the selection of local terminal virtual role, terminate Local exchange is played.
210th, after the 5th community card is distributed, terminal A randomly selects two as opposite end void from remaining playing card Intend two hands of role.
When third round stakes on end, and game continues, the 5th community card of server-assignment, now, local terminal virtual role The board face of this five community cards is would know that with opposite end virtual role.For example, as shown in fig. 7, five community cards are respectively heart 6th, heart 10, heart 4, spade 6 and plum blossom 3.
Current community card has met five, in order to two hands according to local terminal virtual role, five it is public Two hands of board and opposite end virtual role, the 3rd winning rate of local terminal virtual role is calculated, now, terminal A can be that opposite end is empty Two hands for intending role are sampled, i.e. terminal A can randomly select two from remaining playing card and be used as opposite end virtual Two hands of role.When three players in such as Fig. 7 be present, now in the presence of two opposite end virtual roles, it is necessary to randomly select Two two hands as an opposite end virtual role, then randomly select two two as another opposite end virtual role Hands.
Specifically, so that local exchange game has three players as an example, terminal A first obtains the quantity that community card there is currently and is 5, it is determined that met five, now, terminal A can remove two hands and of local terminal virtual role from 52 sheet playing cards Five the allocated community cards, remaining 45 sheet playing card is obtained, then two conducts pair are randomly selected from this 45 sheet playing card Two hands of virtual role are held, and randomly select from remaining 43 sheet playing card two conducts another opposite end virtual roles Two hands.
211st, terminal A is according to two hands of two hands of local terminal virtual role, five community cards and opposite end virtual role Board, the 3rd winning rate of local terminal virtual role is calculated, and show the 3rd winning rate.
212nd, local exchange game is terminated.
After two hands of two hands of local terminal virtual role, five community cards and opposite end virtual role are obtained, eventually End A can further calculate the 3rd winning rate of local terminal virtual role, and the 3rd obtained winning rate is shown, should for using Terminal A player is referred to, and is staked on to carry out fourth round.
For example, as shown in fig. 7, first, calculate weight corresponding to local terminal virtual role Bee Liu:Terminal A flutters according to Dezhou The rule of gram game, by local terminal virtual role Bee Liu two hands (heart K and plum blossom K) and five community cards (heart 6, Heart 10, heart 4, spade 6 and plum blossom 3) composition seven sheet playing cards, be ranked up according to board face from high to low, i.e., according to A, K, the order of Q, J, 10,9,8,7,6,5,4,3 and 2 is ranked up, and obtains heart K, plum blossom K, heart 10, spade 6, heart 6, red Peach 4 and plum blossom 3.
Then, to being ranked up according to seven sheet playing cards after the descending of board face according to board type from high to low, i.e., according to imperial family Straight flush, straight flush, four, cucurbit, color, suitable son, three, two pairs, a pair and high board are ranked up, and obtain heart K, plum blossom K, spade 6, heart 6, heart 10, heart 4 and plum blossom 3.
Secondly, in seven sheet playing cards after according to board type descending, preceding five sheet playing card of the row of extracting:Heart K, plum Flower K, spade 6, heart 6 and heart 10, and weighed corresponding to weights and each board type according to corresponding to each board face in above-mentioned Tables 1 and 2 Value calculates local terminal virtual role Bee Liu weight, as shown in table 4.Wherein, in table 4, the weights of board type are put in the first place, and are pressed Sorted successively according to the order of each board face from big to small, heart K, plum blossom K, spade 6, the weights of heart 6 and heart 10 are right successively Answer the weights in board face 1, the weights in board face 2, the weights in board face 3, board face 4 weights winning face 5 weights.Due to this five playing card Board type present in board is two pairs, therefore weights corresponding to the board type of this five sheet playing card are 2.
Table 4
Wherein, the binary number according to corresponding to the weight that table 4 can obtain local terminal virtual role Bee Liu is 001011011101011001101010, decimal number is converted into as 3004010,3004010 sheets as finally given Virtual role Bee Liu weight is held, subsequently by local terminal virtual role Bee Liu weight and the weight of opposite end virtual role , it is necessary to which what is compared is decimal numeral weight size when being compared.
Finally, according to the two of opposite end virtual role hands and five community cards, opposite end is calculated according to above-mentioned calculation Weight corresponding to virtual role, i.e., according to an opposite end virtual role Jacky two hands and five community cards, calculate one Opposite end virtual role Jacky weight, and it is public according to another opposite end virtual role Vivian two hands and five Board, calculate another opposite end virtual role Vivian weight.Also, repeatedly simulation calculates, the weight obtained every time is distinguished It is compared, determines the number of local terminal virtual role Bee Liu victory, and according to the total degree that simulation calculates and local terminal virtual role The number of Bee Liu victory, the winning rate that local terminal virtual role Bee Liu are calculated are 50%.Current in holdem game In display interface, 50% winning rate (i.e. the 3rd victory is shown in the form of progress bar in the lower right of local terminal virtual role icon Rate).
From the foregoing, it will be observed that in holdem game, terminal A can by simulating the hands and community card of other players, and According to the hands and community card of each player, the result for calculating authorities' game is repeatedly simulated using Monte carlo algorithm, for example, By the mode such as the weights of counting the hand and the weights in board face, it can accurately compare and there emerged a the size that player corresponds to board, and to being made A reliable expected winning rate is shown with terminal A player.It is directly perceived and clear so as to give one comparison of the player Clear winning rate prompting, solves current game environment and lacks sports, guides the problem of not directly perceived enough and more single to new hand, improves The diversity of game presentation, particularly has certain prompting and guiding function to some new hands and little Bai players, reduces them Irrational bet, help, which is played, makes good, a sports environment for rationality.
For ease of preferably implementing 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 implication of noun is identical with above-mentioned data processing method, and specific implementation is thin Section may be referred to the explanation in embodiment of the method.
Referring to Fig. 8, Fig. 8 is the structural representation of data processing equipment provided in an embodiment of the present invention, the wherein data Processing unit can include information acquisition unit 301, the first Weight Acquisition unit 302, the second Weight Acquisition unit 303, renewal Unit 304 and display unit 305 etc..
Wherein, information acquisition unit 301, for obtaining the first information corresponding to local terminal virtual role, opposite end virtual role The shared public information of corresponding second information and local terminal virtual role and opposite end virtual role, the first information, the second information and Public information is the proper subclass of information bank.
Wherein, the first information, the second information and public information are the proper subclass of information bank, in the scene of chess and card games In, the information bank can be pack or a secondary playing card in addition to big Xiao Wang, can also be how secondary playing card Board, or secondary mahjong, etc., will be by secondary 52 sheet playing cards in addition to big Xiao Wang of information bank in following examples Example is described in detail, wherein, the first information, the second information and public information are the part playing card in 52 sheet playing cards.
It is understood that in other application scene, the information bank can also be the information bank comprising other information, tool Hold in vivo and be not construed as limiting here.
The mode of the first information can be corresponding to the acquisition local terminal virtual role of information acquisition unit 301, actively or passively The first information is obtained from server.Specifically, information acquisition unit 301 sends information acquisition request to server, and receives clothes The first information that business device is fed back based on the information acquisition request.For example, after game is opened, local terminal virtual role is generated, is started Information acquisition request can be generated after game, and information acquisition request is sent to server, now, server can be to information Acquiring unit 301 sends the information that game needs.Certainly, server can also be that information acquisition unit 301 is monitored, when When detecting unlatching game, the information of game needs is actively sent to information acquisition unit 301.
Because game needs multi-party participation, therefore information acquisition unit 301 also needs to obtain corresponding to the virtual role of opposite end Second information, its acquisition modes can be that information acquisition unit 301 is randomly selected default from the information of information bank current residual Information, as the second information corresponding to the virtual role of opposite end.For example, in holdem game, extracted from 52 sheet playing cards After going out 2 sheet playing cards as the first information corresponding to local terminal virtual role, 2 will be extracted from remaining 50 sheet playing card and flutterred Gram board is as the second information corresponding to the virtual role of opposite end.In another example in three public canasters, extracted from 52 sheet playing cards Go out 3 sheet playing cards as the first information corresponding to local terminal virtual role, and extract 3 sheet playing cards as opposite end virtual role Corresponding second information.
It should be noted that for the fairness of game, because information acquisition unit 301 can only know local terminal virtual role pair The first information answered, the second information corresponding to the virtual role of opposite end can not be known, therefore information acquisition unit 301 is worked as from information bank Presupposed information is randomly selected in preceding remaining information, as the second information corresponding to the virtual role of opposite end, now, acquisition of information list The second information that member 301 is got may not be real second information of opposite end virtual role.Certainly, allow in some game In the case of, information acquisition unit 301 directly can send information acquisition request to opposite end, and receive opposite end and asked based on acquisition of information Seek real second information of opposite end virtual role of transmission.
According to the demand of different game, information acquisition unit 301 also needs to obtain local terminal virtual role and the virtual angle in opposite end The shared public information of color, the public information are the visual information of local terminal and opposite end.For example, in holdem game, need It is all visual and available for all game participants that 5 sheet playing cards, which are extracted, as community card, the community card.
In being played in holdem, public information is not announced disposably, therefore information acquisition unit 301 can not Disposably get real public information, for example, the first round deal out the cards announce 0 community card, second wheel deal out the cards announcement 3 it is public Board, third round, which is dealt out the cards, announces 4 community cards, and fourth round, which is dealt out the cards, announces 5 community cards.Now, information acquisition unit 301 can be first The quantity that public information there is currently first is obtained, judges whether the quantity meets destination number;What if public information there is currently Quantity is unsatisfactory for destination number, it is determined that the quantity between quantity and destination number is poor;From except the first information and there is currently In information bank outside public information, presupposed information corresponding with quantity difference is obtained;Presupposed information is increased in public information, With polishing public information, now obtain complete public information and simply simulate, and not real public information;If public letter Cease the quantity that there is currently and meet destination number, then can be directly obtained complete public information, the public letter now obtained Breath is real.
For example, it is necessary to 5 sheet playing cards be extracted as community card, although being dealt out the cards in the second wheel in holdem game 3 community cards are had issued for, but also without meeting 5, now can be from current 2 hands for removing local terminal virtual role 2 hands of board, opposite end virtual role, and after 3 community cards, 2 polishing public affairs are randomly selected out in remaining 45 sheet playing card Board altogether.
It should be noted that the first information, the second information and public information acquisition order, can be first from information bank The first information is obtained, then the second information is obtained from the information bank in addition to the first information, finally from except the first information and second Public information is obtained in information bank outside information;Either, the first information is first obtained from information bank, then from except the first information Outside information bank in obtain public information, finally from the information bank in addition to the first information and public information obtain second letter Breath, etc., specific acquisition order are not construed as limiting here.
First Weight Acquisition unit 302, for the first information and public information got according to information acquisition unit 301 Obtain the first weight corresponding to local terminal virtual role.
After information acquisition unit 301 gets the first information, the second information and public information, the first Weight Acquisition unit 302 can according to corresponding to the first information and public information obtain local terminal virtual role the first weight.
In some embodiments, as shown in figure 9, the first Weight Acquisition unit 302 can include:
First sequence subelement 3021, for the first information that is got to information acquisition unit 301 and public information by It is ranked up according to priority from high to low, generates the first sorted lists;
First extraction subelement 3022, for the row of extraction from the first sorted lists of the first sequence generation of subelement 3021 The first object information of preceding predetermined number;
First obtains subelement 3023, the power for the first object information extracted for obtaining the first extraction subelement 3022 Weight;
First setting subelement 3024, for the weight for the first object information for getting the first acquisition subelement 3023 It is set as the first weight corresponding to local terminal virtual role.
Specifically, the first sequence subelement 3021 first can be according to the pre-set priority rule of game, to the first information It is ranked up with public information according to priority from high to low, the pre-set priority rule can be carried out according to different game rules Flexibly set, for example, the pre-set priority rule can be ranked up according to the board face size of playing card and board type size etc..
Alternatively, first sequence subelement 3021 be specifically used for, the first information got to information acquisition unit 301 and The face amount of each information in public information is from greatly to small carry out descending, the first drop down list of generation;Traveled through according to rule of combination First drop down list, it is determined that the composite type of matching;Composite type is ranked up from high to low order according to priority, it is raw Into the first sorted lists.
According to different application scenarios, the first information, public information, rule of combination and composite type etc. can bases It is actually needed and is flexibly set.
For example, in holdem game, the first information is 2 hands of local terminal virtual role, and public information is 5 public affairs Board altogether, first to 2 hands and 5 community cards according to board face to small carry out descending, obtaining ordering first drop down list greatly, The board face is from can be A, K, Q, J, 10,9,8,7,6,5,4,3 and 2 etc. greatly to small order.
Specifically, it is assumed that 2 hands of local terminal virtual role are respectively heart A and square J, and 5 community cards are respectively side Block 8, plum blossom 9, heart 3, spade A and spade 9, according to board face from greatly to obtained order after small progress descending be followed successively by spade A, Heart A, square J, spade 9, plum blossom 9, square 8 and heart 3.
After descending sort, the first sequence subelement 3021 can travel through the first drop down list according to rule of combination, it is determined that The composite type of matching, the rule of combination according to priority from as little as it is high be followed successively by high board, a pair, two pairs, three, along son, same Flower, cucurbit, four, straight flush and imperial straight flush etc..For example, include spade A, heart A, square J, spade 9, plum blossom 9, square 8 and heart 3 the first drop down list in, it is determined that it is a pair that the composite type of matching, which includes spade A and heart A, spade 9 and plum blossom 9 be a pair, two pairs altogether.
After composite type is obtained, the first sequence subelement 3021 can be according to the priority of composite type from high to low Sequentially, obtained composite type is ranked up, generates the first sorted lists, for example, obtained order is followed successively by spade A, red Peach A, spade 9, plum blossom 9, square J, the first sorted lists of square 8 and heart 3.
Then, in the first sorted lists that the first extraction subelement 3022 obtains after sequence, extraction row is preceding default The first object information of quantity, the predetermined number can flexibly be set according to different game rules, for example, before extraction comes 5 sheet playing cards, obtain spade A, heart A, spade 9, plum blossom 9 and square J.
It should be noted that for different types of snipsnapsnorum, board face is from greatly to small order and composite type etc. Can flexibly it be set according to actual conditions, particular content is not construed as limiting here.
Secondly, after the first extraction subelement 3022 obtains first object information, the first acquisition subelement 3023 can obtain The weight of first object information is taken, alternatively, the first acquisition subelement 3023 is specifically used for, and obtains each in first object information The weights of information, the first weights are generated according to the weights of each information;Determine exist in first object information according to rule of combination Composite type, the second weights are determined according to composite type;First object information is determined according to the first weights and the second weights Weight.
For example, first obtains subelement 3023 first to setting certain weights per sheet playing card, generation board face and weights it Between mapping relations, can be bigger according to board face, corresponding weights are higher;Board face is smaller, the lower rule of corresponding weights It is configured, for example, playing card A weights are 14, the weights of playing card 9 are 9 etc., for spade A, the heart in playing card A A, plum blossom A and square A can set different weights respectively, it can also be provided that same weights, particular content is not made here Limit.And first to obtain subelement 3023 be that different combination types (i.e. board type) set different weights, generation composite type Mapping relations between weights, can be higher according to the priority of composite type, corresponding weights are higher;Composite type Priority is lower, and the lower rule of corresponding weights is configured, for example, a pair of weights are 1, the weights of straight flush are 8 etc., Particular content is not construed as limiting here.
In holdem game, first object information is to be taken out from 2 hands and 5 community cards of local terminal virtual role 5 higher sheet playing cards of the priority of taking-up, it is determined that after this 5 sheet playing card, first obtains subelement 3023 can be according to board Mapping relations between face and weights, weights corresponding to every sheet playing card in this 5 sheet playing card are obtained, and according to composite type Mapping relations between weights, obtain weights corresponding to the board type of this 5 sheet playing card composition.
For example, this 5 sheet playing card is respectively spade A, heart A, spade 9, plum blossom 9 and square 2, spade A and heart A board The weights in face are 14, and the weights in the board face of spade 9 and plum blossom 9 are 9, and the weights in the board face of square 2 are 2, the power that will be obtained Value 14,14,9,9 and 2 is respectively converted into binary system, and the weights of combination producing first are successively in order 11101110100110010010.First acquisition subelement 3023 determines group present in this 5 sheet playing card according to rule of combination It is two pairs to close type, and the weights according to corresponding to composite type is two pairs of determinations are 2, are converted into binary system, second obtained Weights are 0010.Then, combine to obtain successively according to the order of the second weights and the first weights 001011101110100110010010, and the decimal system is converted into, the weight for obtaining first object information is 3074450. Finally, first set subelement 3024 can by corresponding to the weight setting of first object information as local terminal virtual role first power Weight, first weight is stored, conveniently needs to use first weight during follow-up calculating.
Second Weight Acquisition unit 303, for the second information and public information got according to information acquisition unit 301 Obtain the second weight corresponding to the virtual role of opposite end.
After the first information, the second information and public information is got, the second Weight Acquisition unit 303 can be according to second Information and public information obtain the second weight corresponding to the virtual role of opposite end.
In some embodiments, as shown in Figure 10, the second Weight Acquisition unit 303 can include:
Second sequence subelement 3031, for the second information for being got to information acquisition unit 301 and public information by It is ranked up according to priority from high to low, generates the second sorted lists;
Second extraction subelement 3032, for the row of extraction from the second sorted lists of the second sequence generation of subelement 3031 Second target information of preceding predetermined number;
Second obtains subelement 3033, the power for the second target information extracted for obtaining the second extraction subelement 3032 Weight;
Second setting subelement 3034, for the weight for the second target information for getting the second acquisition subelement 3033 It is set as the second weight corresponding to the virtual role of opposite end.
Specifically, the second sequence subelement 3031 first can be according to the pre-set priority rule of game, to the second information It is ranked up with public information according to priority from high to low, the pre-set priority rule can be carried out according to different game rules Flexibly set, for example, the pre-set priority rule can be ranked up according to the board face size of playing card and board type size etc..
Alternatively, second sequence subelement 3031 be specifically used for, the second information got to information acquisition unit 301 and The face amount of each information in public information is from greatly to small carry out descending, the second drop down list of generation;Traveled through according to rule of combination Second drop down list, it is determined that the composite type of matching;Composite type is ranked up from high to low order according to priority, it is raw Into the second sorted lists.
According to different application scenarios, the second information, public information, rule of combination and the composite type etc. can bases It is actually needed and is flexibly set.
For example, in holdem game, the second information is 2 hands of opposite end virtual role, and public information is 5 public affairs Board altogether, first to 2 hands and 5 community cards according to board face to small carry out descending, obtaining ordering second drop down list greatly, The board face is from can be A, K, Q, J, 10,9,8,7,6,5,4,3 and 2 etc. greatly to small order.
Specifically, it is assumed that 2 hands of opposite end virtual role are respectively that 6,5 community cards of heart Q and plum blossoms block are respectively Square 8, plum blossom 9, heart 3, spade A and spade 9, according to board face from being followed successively by spade to obtained order after small progress descending greatly A, heart Q, spade 9, plum blossom 9, square 8, plum blossom 6 and heart 3.
After descending sort, the second sequence subelement 3031 can travel through the second drop down list according to rule of combination, it is determined that The composite type of matching, the rule of combination according to priority from as little as it is high be followed successively by high board, a pair, two pairs, three, along son, same Flower, cucurbit, four, straight flush and imperial straight flush etc..For example, include spade A, heart Q, spade 9, plum blossom 9, square 8, plum blossom 6 and heart 3 the second drop down list in, it is determined that it is a pair, altogether a pair that the composite type of matching, which includes spade 9 and plum blossom 9,.
After composite type is obtained, the second sequence subelement 3031 can be according to the priority of composite type from high to low Sequentially, obtained composite type is ranked up, the second sorted lists is generated, for example, obtained order is followed successively by spade 9, plum Spend the second sorted lists of 9, spade A, heart Q, square 8, plum blossom 6 and heart 3.
Then, in the second sorted lists that the second extraction subelement 3032 obtains after sequence, extraction row is preceding default Second target information of quantity, the predetermined number can flexibly be set according to different game rules, for example, before extraction comes 5 sheet playing cards, obtain spade 9, plum blossom 9, spade A, heart Q and square 8.
It should be noted that for different types of snipsnapsnorum, board face is from greatly to small order and composite type etc. Can flexibly it be set according to actual conditions, particular content is not construed as limiting here.
Secondly, after the second target information is obtained, the second acquisition subelement 3033 can obtain the power of the second target information Weight, alternatively, the second acquisition subelement 3033 are specifically used for, and the weights of each information in the second target information are obtained, according to every The weights of item information generate the 3rd weights;Composite type present in second target information is determined according to rule of combination, according to group Close type and determine the 4th weights;The weight of the second target information is determined according to the 3rd weights and the 4th weights.
For example, second obtains subelement 3033 first to setting certain weights per sheet playing card, generation board face and weights it Between mapping relations, can be bigger according to board face, corresponding weights are higher;Board face is smaller, the lower rule of corresponding weights It is configured, particular content is not construed as limiting here.And different weights are set for different combination types (i.e. board type), it is raw Can be higher according to the priority of composite type, corresponding weights are higher into the mapping relations between composite type and weights; The priority of composite type is lower, and the lower rule of corresponding weights is configured, and particular content is not construed as limiting here.
In holdem game, the second target information is to be taken out from 2 hands and 5 community cards of opposite end virtual role 5 higher sheet playing cards of the priority of taking-up, it is determined that after this 5 sheet playing card, second obtains subelement 3033 can be according to board Mapping relations between face and weights, obtain and calculate weights corresponding to every sheet playing card in this 5 sheet playing card, and according to combination Mapping relations between type and weights, obtain weights corresponding to the board type of this 5 sheet playing card composition.
For example, this 5 sheet playing card is respectively spade 9, plum blossom 9, spade A, heart Q and square 8, the board of spade 9 and plum blossom 9 The weights in face are 9, and the weights in spade A board face are 14, and the weights in heart Q board face are 12, and the weights in the board face of square 8 are 8, obtained weights 9,9,14,12 and 8 are respectively converted into binary system, and the weights of combination producing first are successively in order 10011001111011001000.Determine that composite type present in this 5 sheet playing card is a pair according to rule of combination, according to group Close type be two pairs determine corresponding to weights be 1, be converted into binary system, the second obtained weights be 0001, then, according to The order of second weights and the first weights combines to obtain 000110011001111011001000 successively, and is converted into ten and enters System, the weight for obtaining first object information are 1679048.Finally, the second setting subelement 3034 can be by the second target information Weight setting be the second weight corresponding to local terminal virtual role, store second weight, it is convenient follow-up to need to use when calculating Second weight.
Updating block 304, for updating public information and the second information, and by the first Weight Acquisition unit and the second weight Acquiring unit obtains the second weight corresponding to the first weight corresponding to local terminal virtual role and opposite end virtual role respectively, until more New number reaches preset times, obtains the first data set of the first weight comprising predetermined number, and include predetermined number Second data set of the second weight.
Due in the embodiment of the present invention, the fairness based on game, information acquisition unit 301 possibly can not accurately be known pair The second information of virtual role is held, therefore it is only an estimation result to obtain the second information, for undocumented part or complete Portion's public information, it is also to be obtained by estimation to get public information, and obtains the second information and public information according to estimation Carry out simulation calculating.
In order to improve the accuracy of estimation result and reliability, updating block 304 can use the think of of Monte carlo algorithm Think, carry out repeatedly simulation and calculate, that is, update public information and the second information, and by the first Weight Acquisition unit 302 and the second power Weight acquiring unit 303 obtains the second weight corresponding to the first weight corresponding to local terminal virtual role and opposite end virtual role respectively, Until update times reach preset times, the preset times can flexibly be set according to being actually needed, for example, preset times It can be 8000 times, specific value is not construed as limiting here.
It should be noted that in the embodiment of the present invention updating block 304 in addition to preset times carry out simulation calculating, In practical application, all possibility situations can also be traveled through and calculated, particular content is not construed as limiting here.
In some embodiments, updating block 304 is specifically used for, and obtains the quantity that public information there is currently;Judge Whether quantity meets destination number;If it is not, the quantity then between quantification and destination number is poor;From except the first information and currently In information bank outside existing public information, the first presupposed information corresponding with quantity difference is obtained;Presupposed information is increased to In public information;The second presupposed information is obtained from the information bank in addition to the first information and public information, and second is preset Information setting is the second information.
For example, in holdem game, public information is 5 community cards, because during game, the first round is sent out Board announces 0 community card, and the second wheel, which is dealt out the cards, announces 3 community cards, and third round, which is dealt out the cards, announces 4 community cards, and fourth round is dealt out the cards public affairs Cloth 5 opens community card, it is therefore desirable to is determined to obtain the mode of community card according to the process of going game.Specifically, updating block 304 The quantity that community card there is currently can be first obtained, judges whether the quantity meets destination number, the destination number can be 5 .If community card is also not up to 5, now, the quantity between quantification and destination number is poor, i.e. the also poor a few Zhang Da of community card To 5.
For example, game is currently at the second wheel and has disclosed 3 community cards, also poor 2 community cards can be only achieved 5 (i.e. Destination number), at this time, it may be necessary to (i.e. current from 2 hands (i.e. the first information) except local terminal virtual role and 3 community cards Existing public information) outside 47 sheet playing cards (i.e. information bank) in, randomly select out 2 sheet playing cards (the i.e. first default letter Breath), this 2 sheet playing card is increased in public information, you can polishing 5 opens community card.Again from 2 hands except local terminal virtual role In 45 sheet playing cards outside board and 5 community cards, it is empty as opposite end to randomly select out 2 sheet playing cards (i.e. the second presupposed information) Intend 2 hands of role.
Then, as the first Weight Acquisition unit 302 according to corresponding to local terminal virtual role the first information and renewal after public affairs Co-information calculates the first weight corresponding to local terminal virtual role, and by the second Weight Acquisition unit 303 according to the public affairs after renewal Second information corresponding to co-information and opposite end virtual role calculates the second weight corresponding to the virtual role of opposite end, and will obtain the One weight and the second weight are stored, and are repeated no more here.
Further, updating block 304 is also particularly useful for when the quantity that public information there is currently meets destination number When, maintain public information;The 3rd presupposed information is obtained from the information bank in addition to the first information and public information, and by the 3rd Presupposed information is set as the second information.
For example, game is currently at fourth round and dealt out the cards and disclosed 5 community cards, community card has reached 5, now, Updating block 304 need not again from the playing card of current residual extract playing card polishing community card, only need to from except local terminal it is virtual In 45 sheet playing cards outside 2 hands and 5 community cards of role, 2 sheet playing cards are randomly selected out as the virtual angle in opposite end 2 hands of color.Then, the first weight as corresponding to the first Weight Acquisition unit 302 calculates local terminal virtual role, and by Two Weight Acquisition units 303 calculate the second weight corresponding to the virtual role of opposite end, and by the first obtained weight and the second weight Stored, repeated no more here.
When update times are not up to preset times, updating block 304 reacquires community card and right according to the method described above The hands of virtual role are held, then, the first weight as corresponding to the first Weight Acquisition unit 302 calculates local terminal virtual role, with And the second weight as corresponding to the second Weight Acquisition unit 303 calculates opposite end virtual role, and by the first obtained weight and Two weights are stored, and are repeated no more here.
When update times reach preset times, updating block 304 obtains first of the first weight comprising predetermined number Data set, and the second data set of the second weight comprising predetermined number.For example, when update times are 8000 times, obtain The first weight be 8001, i.e., each corresponding first weight that renewal obtains every time, plus one obtained before renewal the One weight.
It should be noted that according to the rule of different game, public information, information bank, destination number, the first default letter Breath, the second presupposed information and the 3rd presupposed information etc., can flexibly be set according to being actually needed, and particular content is here not It is construed as limiting.
Display unit 305, local terminal is obtained for the first data set got according to updating block 304 and the second data set Relation information between virtual role and opposite end virtual role, and show relation information.
Wherein, relation information can include relationship between success and failure, for example, the probability won victory and probability of failure etc..
Obtaining the first data set of the first weight comprising predetermined number, and the second weight comprising predetermined number After second data set, display unit 305 can obtain local terminal virtual role and opposite end according to the first data set and the second data set Relation information between virtual role, the relation information can refer to for player, can be to relation in order to intuitively be presented to player Information is shown.The display mode of relation information can intuitively be shown with word or numeral or pass through cake Figure or the form such as progress bar shown, relation information can also report by voice broadcast, etc., particular content exists It is not construed as limiting herein.
Alternatively, display unit 305 is specifically used for, and will obtain the first weight every time and the second weight is compared respectively, Obtain each comparative result;Calculated according to comparative result and predetermined number between local terminal virtual role and opposite end virtual role Relationship between success and failure;The winning rate of local terminal virtual role is determined according to relationship between success and failure, and shows winning rate.
Specifically, the first data set of the first weight comprising predetermined number, and the comprising predetermined number are being obtained After second data set of two weights, display unit 305 can obtain every time corresponding from the first data set and the second data set First weight and the second weight, will be each corresponding to the first weight and the second weight be compared, for example, first can be compared Magnitude relationship between weight and the second weight, when the first weight is more than the second weight, illustrate that local terminal virtual role wins, when the When one weight is less than the second weight, illustrate that local terminal virtual role is born, the number of statistics local terminal virtual role victory, and statistical comparison Total degree, the winning rate for obtaining local terminal virtual role is:Number/total degree * 100% of local terminal virtual role victory, is finally incited somebody to action To winning rate shown.For example, when the number that local terminal virtual role wins is 800 times, and total degree is 1000 times, local terminal is obtained The winning rate of virtual role is 80%., can so as to give one comparison of the player intuitively prompting of expected winning rate and guiding function To reduce the irrational bet of player, the sports environment of rationality is made.
It should be noted that data processing equipment can also include setting unit, the setting unit can be provided for out The switch of display relation information function is opened or closes, after display relation information function is opened, data processing equipment will perform Above-mentioned steps 101 finally show obtained relation information to step 107;After display relation information function is closed, data processing Device will not show relation information, and player can select to be turned on and off showing relation information according to oneself hobby or demand Function.
From the foregoing, it will be observed that the embodiment of the present invention obtains the first letter corresponding to local terminal virtual role by information acquisition unit 301 Breath, the first information are contained in information bank;The public information that local terminal virtual role and opposite end virtual role are shared is obtained, and is obtained The second information corresponding to the virtual role of opposite end is taken, public information and the second information are contained in information bank in addition to the first information Information.Then, as the first Weight Acquisition unit 302 the according to corresponding to the first information and public information obtain local terminal virtual role One weight;As the second Weight Acquisition unit 303 second according to corresponding to the second information and public information obtain opposite end virtual role Weight;Updating block 304 updates public information and the second information, and is performed by the first Weight Acquisition unit 302 according to the first letter Breath and public information obtain the first weight corresponding to local terminal virtual role, and by the second Weight Acquisition unit 303 according to second Information and public information obtain second weight etc. corresponding to the virtual role of opposite end, until update times reach preset times, obtain First data set of the first weight comprising predetermined number, and the second data set of the second weight comprising predetermined number;Most Afterwards, display unit 305 is calculated between local terminal virtual role and opposite end virtual role according to the first data set and the second data set Relation information, and show relation information.First weight corresponding to the local terminal virtual role obtained in the program by preset times, And the second weight corresponding to the virtual role of opposite end, calculate the relation information between local terminal virtual role and opposite end virtual role, example Such as, the relationship between success and failure between local terminal virtual role and opposite end virtual role so that user may be referred to the relation information, reach straight Ground prompting and the purpose of guiding user are seen, improves the diversity handled data.
Accordingly, the embodiment of the present invention also provides a kind of terminal, as shown in figure 11, the terminal can include radio frequency (RF, Radio Frequency) circuit 601, include the memories 602, defeated of one or more computer-readable recording mediums Enter unit 603, display unit 604, sensor 605, voicefrequency circuit 606, Wireless Fidelity (WiFi, Wireless Fidelity) Module 607, include the part such as one or the processor 608 of more than one processing core and power supply 609.This area skill Art personnel are appreciated that the restriction of the terminal structure shown in Figure 11 not structure paired terminal, can include than illustrate it is more or Less part, either combine some parts or different parts arrangement.Wherein:
RF circuits 601 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, transfer to one or more than one processor 608 is handled;In addition, it is sent to up data are related to Base station.Generally, RF circuits 601 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuits 601 can also pass through radio communication and network and its His equipment communication.The radio communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 602 can be used for storage software program and module, and processor 608 is stored in memory 602 by operation Software program and module, so as to perform various function application and data processing.Memory 602 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can store uses created data according to terminal (such as voice data, phone directory etc.) etc..In addition, memory 602 can include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 602 can also include Memory Controller, to provide processor 608 and input block 603 to memory 602 Access.
Input block 603 can be used for the numeral or character information for receiving input, and generation is set with user and function Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, in a specific embodiment In, input block 603 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or tactile Control plate, collect user on or near it touch operation (such as user using any suitable object such as finger, stylus or Operation of the annex on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to formula set in advance Put.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 608, and can reception processing Order that device 608 is sent simultaneously is performed.It is furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.Except touch sensitive surface, input block 603 can also include other input equipments.Specifically, other are defeated Physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse can be included but is not limited to by entering equipment One or more in mark, action bars etc..
Display unit 604 can be used for display by user input information or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 604 may include display panel, optionally, can use liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, send processing to Device 608 is followed by subsequent processing device 608 and provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although in fig. 11, touch sensitive surface and display panel are the parts independent as two to realize input and defeated Enter function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realize input and output function.
Terminal may also include at least one sensor 605, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity transducer can close display panel and/or the back of the body when terminal is moved in one's ear Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) acceleration Size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be repeated here.
Voicefrequency circuit 606, loudspeaker, microphone can provide the COBBAIF between user and terminal.Voicefrequency circuit 606 can Electric signal after the voice data received is changed, is transferred to loudspeaker, and voice signal output is converted to by loudspeaker;It is another The voice signal of collection is converted to electric signal by aspect, microphone, and voice data is converted to after being received by voicefrequency circuit 606, then After voice data output processor 608 is handled, through RF circuits 601 to be sent to such as another terminal, or by voice data Export to memory 602 further to handle.Voicefrequency circuit 606 is also possible that earphone jack, with provide peripheral hardware earphone with The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronicses postal by WiFi module 607 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 11 is shown WiFi module 607, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, can not change as needed completely Become in the essential scope of invention and omit.
Processor 608 is the control centre of terminal, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 602, and call and be stored in memory 602 Data, the various functions and processing data of terminal are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 608 can wrap Include one or more processing cores;Preferably, processor 608 can integrate application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 608.
Terminal also includes the power supply 609 (such as battery) to all parts power supply, it is preferred that power supply can pass through power supply pipe Reason system and processor 608 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 609 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., will not be repeated here.Specifically in this implementation In example, the processor 608 in terminal can be according to following instruction, by corresponding to the process of one or more application program Executable file is loaded into memory 602, and runs the application program of storage in the memory 602 by processor 608, from And realize various functions:
It is virtual to obtain the first information corresponding to local terminal virtual role, the second information corresponding to the virtual role of opposite end and local terminal The public information that role and opposite end virtual role are shared, the first information, the second information and public information are the proper subclass of information bank; The first weight according to corresponding to the first information and public information obtain local terminal virtual role;Obtained according to the second information and public information Take the second weight corresponding to the virtual role of opposite end;Update public information and the second information, and return execution according to the first information and Public information obtains the step of the first weight corresponding to local terminal virtual role, until update times reach preset times, is wrapped First data set of the first weight containing predetermined number, and the second data set of the second weight comprising predetermined number;According to First data set and the second data set obtain the relation information between local terminal virtual role and opposite end virtual role, and show relation Information.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, the detailed description above with respect to data processing method is may refer to, here is omitted.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with Completed by instructing, or control related hardware to complete by instructing, the instruction can be stored in one and computer-readable deposit In storage media, and loaded and performed by processor.
Therefore, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, the instruction can be processed Device is loaded, to perform the step in any data processing method that the embodiment of the present invention provided.For example, the instruction can To perform following steps:
It is virtual to obtain the first information corresponding to local terminal virtual role, the second information corresponding to the virtual role of opposite end and local terminal The public information that role and opposite end virtual role are shared, the first information, the second information and public information are the proper subclass of information bank; The first weight according to corresponding to the first information and public information obtain local terminal virtual role;Obtained according to the second information and public information Take the second weight corresponding to the virtual role of opposite end;Update public information and the second information, and return execution according to the first information and Public information obtains the step of the first weight corresponding to local terminal virtual role, until update times reach preset times, is wrapped First data set of the first weight containing predetermined number, and the second data set of the second weight comprising predetermined number;According to First data set and the second data set obtain the relation information between local terminal virtual role and opposite end virtual role, and show relation Information.
The specific implementation of each operation can be found in embodiment above above, will not be repeated here.
Wherein, the storage medium can include:Read-only storage (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 perform at any data that the embodiment of the present invention is provided Step in reason method, it is thereby achieved that achieved by any data processing method that the embodiment of the present invention is provided Beneficial effect, embodiment above is referred to, will not be repeated here.
A kind of data processing method, device and the storage medium provided above the embodiment of the present invention has carried out detailed Jie Continue, specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is only It is the method and its core concept for being used to help understand the present invention;Meanwhile for those skilled in the art, according to the present invention's Thought, there will be changes in specific embodiments and applications, in summary, this specification content should not be construed as Limitation of the present invention.

Claims (15)

  1. A kind of 1. data processing method, it is characterised in that including:
    It is virtual to obtain the first information corresponding to local terminal virtual role, the second information corresponding to the virtual role of opposite end and the local terminal The public information that role and opposite end virtual role are shared, the first information, the second information and public information are true for information bank Subset;
    The first weight according to corresponding to the first information and public information obtain the local terminal virtual role;
    The second weight according to corresponding to second information and public information obtain the opposite end virtual role;
    The public information and the second information are updated, and returns to execution and obtains described according to the first information and public information The step of holding the first weight corresponding to virtual role, until update times reach preset times, obtain the comprising predetermined number First data set of one weight, and the second data set of the second weight comprising predetermined number;
    Obtained according to first data set and the second data set between the local terminal virtual role and the opposite end virtual role Relation information, and show the relation information.
  2. 2. data processing method according to claim 1, it is characterised in that described according to the first information and public letter Include corresponding to the breath acquisition local terminal virtual role the step of the first weight:
    The first information and public information are ranked up according to priority from high to low, generate the first sorted lists;
    The first object information of preceding predetermined number is arranged in extraction from first sorted lists;
    Obtain the weight of the first object information;
    It is the first weight corresponding to the local terminal virtual role by the weight setting of the first object information.
  3. 3. data processing method according to claim 2, it is characterised in that described to the first information and public information The step of being ranked up according to priority from high to low, generating the first sorted lists includes:
    To the face amount of each information in the first information and public information to small carry out descending, generating the first descending chain greatly Table;
    First drop down list is traveled through according to rule of combination, it is determined that the composite type of matching;
    The composite type is ranked up from high to low order according to priority, generates the first sorted lists.
  4. 4. data processing method according to claim 2, it is characterised in that the power for obtaining the first object information The step of weight includes:
    The weights of each information in the first object information are obtained, the first weights are generated according to the weights of each information;
    Composite type present in the first object information is determined according to rule of combination, second is determined according to the composite type Weights;
    The weight of the first object information is determined according to first weights and the second weights.
  5. 5. data processing method according to claim 1, it is characterised in that described according to second information and public letter Include corresponding to the breath acquisition opposite end virtual role the step of the second weight:
    Second information and public information are ranked up according to priority from high to low, generate the second sorted lists;
    The second target information of preceding predetermined number is arranged in extraction from second sorted lists;
    Obtain the weight of second target information;
    It is the second weight corresponding to the opposite end virtual role by the weight setting of second target information.
  6. 6. data processing method according to claim 5, it is characterised in that described to second information and public information The step of being ranked up according to priority from high to low, generating the second sorted lists includes:
    To the face amount of each information in second information and public information to small carry out descending, generating the second descending chain greatly Table;
    Second drop down list is traveled through according to rule of combination, it is determined that the composite type of matching;
    The composite type is ranked up from high to low order according to priority, generates the second sorted lists.
  7. 7. data processing method according to claim 5, it is characterised in that the power for obtaining second target information The step of weight includes:
    The weights of each information in second target information are obtained, the 3rd weights are generated according to the weights of each information;
    Composite type present in second target information is determined according to rule of combination, the 4th is determined according to the composite type Weights;
    The weight of second target information is determined according to the 3rd weights and the 4th weights.
  8. 8. data processing method according to any one of claim 1 to 7, it is characterised in that the renewal is described public The step of information and the second information, includes:
    Obtain the quantity that the public information there is currently;
    Judge whether the quantity meets destination number;
    If not, it is determined that the quantity between the quantity and the destination number is poor;
    From the information bank in addition to the first information and the public information that there is currently, obtain corresponding with the quantity difference First presupposed information;
    The presupposed information is increased in the public information;
    The second presupposed information is obtained from the information bank in addition to the first information and public information, and described second is preset Information setting is second information.
  9. 9. data processing method according to claim 8, it is characterised in that described to judge whether the quantity meets target After the step of quantity, methods described also includes:
    When the quantity that public information there is currently meets destination number, the public information is maintained;
    The 3rd presupposed information is obtained from the information bank in addition to the first information and public information, and the described 3rd is preset Information setting is second information.
  10. 10. data processing method according to any one of claim 1 to 7, it is characterised in that the relation information includes Relationship between success and failure, it is described virtual according to first data set and the second data set acquisition local terminal virtual role and the opposite end Relation information between role, and include the step of show the relation information:
    The first weight will be obtained every time and the second weight is compared respectively, obtain each comparative result;
    The victory or defeat calculated according to the comparative result and predetermined number between local terminal virtual role and the opposite end virtual role is closed System;
    The winning rate of local terminal virtual role is determined according to the relationship between success and failure, and shows the winning rate.
  11. A kind of 11. data processing equipment, it is characterised in that including:
    Information acquisition unit, for obtaining the first information corresponding to local terminal virtual role, the second letter corresponding to the virtual role of opposite end Breath and the shared public information of the local terminal virtual role and opposite end virtual role, the first information, the second information and public Information is the proper subclass of information bank;
    First Weight Acquisition unit, corresponding to obtaining the local terminal virtual role according to the first information and public information First weight;
    Second Weight Acquisition unit, corresponding to obtaining the opposite end virtual role according to second information and public information Second weight;
    Updating block, weighed for updating the public information and the second information, and by the first Weight Acquisition unit and second Weight acquiring unit obtains first weight and the second weight respectively, until update times reach preset times, obtains comprising pre- If the first data set of the first weight of number, and the second data set of the second weight comprising predetermined number;
    Display unit, for obtaining the local terminal virtual role and the opposite end according to first data set and the second data set Relation information between virtual role, and show the relation information.
  12. 12. data processing equipment according to claim 11, it is characterised in that the first Weight Acquisition unit includes:
    First sequence subelement, it is raw for being ranked up to the first information and public information according to priority from high to low Into the first sorted lists;
    First extraction subelement, the first object letter for the preceding predetermined number of extraction row from first sorted lists Breath;
    First obtains subelement, for obtaining the weight of the first object information;
    First setting subelement, for being the corresponding to the local terminal virtual role by the weight setting of the first object information One weight.
  13. 13. the data processing equipment according to claim 11 or 12, it is characterised in that the updating block is specifically used for:
    Obtain the quantity that the public information there is currently;
    Judge whether the quantity meets destination number;
    If not, it is determined that the quantity between the quantity and the destination number is poor;
    From the information bank in addition to the first information and the public information that there is currently, obtain corresponding with the quantity difference First presupposed information;
    The presupposed information is increased in the public information;
    The second presupposed information is obtained from the information bank in addition to the first information and public information, and described second is preset Information setting is second information.
  14. 14. the data processing equipment according to claim 11 or 12, it is characterised in that the relation information closes including victory or defeat System, the display unit are specifically used for, and will obtain the first weight every time and the second weight is compared respectively, obtain each ratio Relatively result;
    The victory or defeat calculated according to the comparative result and predetermined number between local terminal virtual role and the opposite end virtual role is closed System;
    The winning rate of local terminal virtual role is determined according to the relationship between success and failure, and shows the winning rate.
  15. 15. a kind of storage medium, it is characterised in that the storage medium is stored with a plurality of instruction, and the instruction is suitable to processor Loaded, the step in the data processing method described in 1 to 10 any one is required with perform claim.
CN201711145719.4A 2017-11-17 2017-11-17 A kind of data processing method, device and storage medium Active CN107694098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711145719.4A CN107694098B (en) 2017-11-17 2017-11-17 A kind of data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711145719.4A CN107694098B (en) 2017-11-17 2017-11-17 A kind of data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN107694098A true CN107694098A (en) 2018-02-16
CN107694098B CN107694098B (en) 2019-07-19

Family

ID=61185273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711145719.4A Active CN107694098B (en) 2017-11-17 2017-11-17 A kind of data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN107694098B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108704311A (en) * 2018-04-19 2018-10-26 网易(杭州)网络有限公司 Method, apparatus, electronic equipment and the storage medium of configuration card group
CN110110141A (en) * 2018-09-19 2019-08-09 浙江宇视科技有限公司 Camera list sort method, device and monitoring management platform
CN110548287A (en) * 2018-06-01 2019-12-10 日本聚逸株式会社 Game processing system, game processing method, and recording medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030118191A1 (en) * 2001-12-21 2003-06-26 Huayan Wang Mail Security method and system
CN105727550A (en) * 2016-01-27 2016-07-06 安徽大学 Dot and box chess game system based on UCT algorithm
US20160267615A1 (en) * 2014-03-10 2016-09-15 Amit Mital Calculating an individual's national, state and district education and education environment index and recommending statistically proven methods of improvement tailored to input from a user such as a child's parent
CN106250442A (en) * 2016-07-26 2016-12-21 新疆大学 The feature selection approach of a kind of network security data and system
CN106469317A (en) * 2016-09-20 2017-03-01 哈尔滨工业大学深圳研究生院 A kind of method based on carrying out Opponent Modeling in non-perfect information game

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030118191A1 (en) * 2001-12-21 2003-06-26 Huayan Wang Mail Security method and system
US20160267615A1 (en) * 2014-03-10 2016-09-15 Amit Mital Calculating an individual's national, state and district education and education environment index and recommending statistically proven methods of improvement tailored to input from a user such as a child's parent
CN105727550A (en) * 2016-01-27 2016-07-06 安徽大学 Dot and box chess game system based on UCT algorithm
CN106250442A (en) * 2016-07-26 2016-12-21 新疆大学 The feature selection approach of a kind of network security data and system
CN106469317A (en) * 2016-09-20 2017-03-01 哈尔滨工业大学深圳研究生院 A kind of method based on carrying out Opponent Modeling in non-perfect information game

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108704311A (en) * 2018-04-19 2018-10-26 网易(杭州)网络有限公司 Method, apparatus, electronic equipment and the storage medium of configuration card group
CN108704311B (en) * 2018-04-19 2021-11-12 网易(杭州)网络有限公司 Method and device for configuring card set, electronic equipment and storage medium
CN110548287A (en) * 2018-06-01 2019-12-10 日本聚逸株式会社 Game processing system, game processing method, and recording medium
CN110548287B (en) * 2018-06-01 2023-02-28 日本聚逸株式会社 Game processing system, game processing method, and recording medium
CN110110141A (en) * 2018-09-19 2019-08-09 浙江宇视科技有限公司 Camera list sort method, device and monitoring management platform
CN110110141B (en) * 2018-09-19 2021-04-20 浙江宇视科技有限公司 Camera list sorting method and device and monitoring management platform

Also Published As

Publication number Publication date
CN107694098B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN104618440B (en) Smart machine control method and device
JP5841276B1 (en) GAME CONTROL METHOD, COMPUTER AND CONTROL PROGRAM
CN106937158A (en) Live display methods, apparatus and system
CN103838982B (en) Virtual game object generating method and device
CN107694098B (en) A kind of data processing method, device and storage medium
CN104618222B (en) A kind of method and device for matching facial expression image
CN111773696A (en) Virtual object display method, related device and storage medium
US20170103605A1 (en) Computer and method for game control
CN108123945B (en) Distribution method, system and the intelligent terminal of random data
CN104106091B (en) Virtual location is registered
CN104424211B (en) A kind of dissemination method of the business datum based on microblogging, device and system
CN106669146B (en) A kind of method and device of selection matching group membership
CN107362538A (en) One kind game auxiliary information methods of exhibiting, device and client
JP2013223602A (en) Server, apparatus, and program of video game control
CN107908765A (en) A kind of game resource processing method, mobile terminal and server
CN110433487A (en) A kind of method and relevant apparatus of traffic resource assignment
CN110430194A (en) A kind of method of Information Authentication, the method and device of chess and card Information Authentication
JP5735088B1 (en) GAME CONTROL METHOD, COMPUTER AND CONTROL PROGRAM
CN105930172A (en) Dynamic display method and system for user interface of network game in mobile terminal
CN108195392A (en) A kind of more people's layout of roads methods and terminal
CN107115670A (en) A kind of anagrammatism system and implementation method based on virtual reality
CN106097003A (en) Method, equipment and the system that a kind of virtual coin reassigns
JP2016190045A (en) Game control method, computer, and control program
CN104162276B (en) A kind of method for performing game
CN107451885A (en) A kind of basketball lease operation system and method

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