CN105447296A - Poker hand pattern sequence data processing system, apparatus and method and Poker card order sequence data processing system, apparatus and method - Google Patents

Poker hand pattern sequence data processing system, apparatus and method and Poker card order sequence data processing system, apparatus and method Download PDF

Info

Publication number
CN105447296A
CN105447296A CN201410499687.8A CN201410499687A CN105447296A CN 105447296 A CN105447296 A CN 105447296A CN 201410499687 A CN201410499687 A CN 201410499687A CN 105447296 A CN105447296 A CN 105447296A
Authority
CN
China
Prior art keywords
board type
board
playing card
logical value
sequence
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
CN201410499687.8A
Other languages
Chinese (zh)
Other versions
CN105447296B (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.)
Burson Marsteller Network Game Development (shenzhen) Co Ltd
Original Assignee
Burson Marsteller Network Game Development (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 Burson Marsteller Network Game Development (shenzhen) Co Ltd filed Critical Burson Marsteller Network Game Development (shenzhen) Co Ltd
Priority to CN201410499687.8A priority Critical patent/CN105447296B/en
Publication of CN105447296A publication Critical patent/CN105447296A/en
Application granted granted Critical
Publication of CN105447296B publication Critical patent/CN105447296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a Poker hand pattern sequence data processing system which comprises an external instruction receiving module, a model establishing module, and a model construction module, wherein the external instruction receiving module is used for receiving a designated hand pattern request or a hand pattern sampling request including Poker game category marking information and hand pattern category information; the model establishing module is used for pre-establishing a hand pattern configuration library and the hand pattern configuration library is used for recording attribute-associated hand pattern configuration tables between various hand patterns and probability intervals in at least one type of Poker game; and the model construction module is used for generating a two-dimensional dynamic data structure for carrying out associated recording on Poker logic values, suit information and the like of a pile required by the Poker game. The invention further provides a Poker hand pattern sequence data processing method, a Poker card order sequence data processing method, a Poker hand pattern sequence data processing apparatus and a Poker card order sequence data processing apparatus. Generation probabilities of specific hand patterns can be randomly regulated.

Description

Data handling system, the apparatus and method of playing card board type sequence and board sequence sequence
Technical field
The present invention relates to microcomputer data processing field, particularly relate to a kind of playing card board type sequence data disposal system and method, a kind of playing card board sequence sequence data treating apparatus and method thereof.
Background technology
User is when terminal carries out electronic chess-cards game, and server can at random for user sends the playing card of given number for user.A electronic chess-cards game except attracting user in playing method, and what also need to make good use of joins the probability of occurrence that board algorithm arbitrarily controls special board type, stimulates the game enthusiasm of user.Such as fight landlord, and special board type just refers to antithetical phrase in fighting landlord, along son, bomb etc.
Do not having before use joins board algorithm, more common way adopts random disposable to select board to send to user from board heap, probability of occurrence not for special board type processes especially, so the board in user's hand is all server distribute to each role according to randomized policy at random from board heap, this method is too simple, and the distribution for combination of playing a card is substantially uncontrollable.The board of role disperses all very much, and the probability taking special board type can be very little, and time one long user will reduce the enthusiasm of game gradually.
After chess and card games (such as mahjong, playing card etc.) exploitation, when entering test phase, then there is the demand that special board type (as the antithetical phrase in fighting landlord, along son, bomb etc.) is tested, therefore there is the demand for providing specific board type generating algorithm.Meanwhile, in order to increase the pungency of product, also existing and increasing the specific demand that user obtains the probability of special board type.The probability that drops of special board type is usual under the prior art, be all constantly test based on natural probability, because under natural probability, the probability of occurrence of special board type all can be very low, so need repeatedly to attempt, this is also a kind of very large waste for test resource.
Summary of the invention
Based on this, be necessary the problem for unifying to control special board type probability of occurrence in electronic chess-cards game, a kind of playing card board type sequence data disposal system and method, a kind of playing card board sequence sequence data treating apparatus and method thereof are provided.
The data handling system of a kind of playing card board type sequence provided by the invention, it comprises:
External command receiver module, for receiving appointment board type request containing snipsnapsnorum kind beacon information and board type kind of information or board type sampling request;
Model building module, for setting up a board type repository in advance, records the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum;
Model construction module, for generating two-dimensional dynamic data structure, in order to playing card logical value and the pattern information of board heap needed for associated record snipsnapsnorum;
Board type decimation blocks, for the board type allocation list in board type repository according to described board type sampling request call, utilize random sampling pattern select target board type from described board type allocation list, generate the instruction of target board type, or according to described appointment board type request determination target board type, generate the instruction of target board type;
Board sequence generation module, for building the storage space being used for registration plate sequence according to described target board type instruction, and search described two-dimensional dynamic data structure according to the playing card logical value of random sampling, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays; And
Board sequence output module, for reading described storage space, and by described board ordinal number group structure output.
Wherein in an embodiment, described system also comprises: repository test interface, for receiving adjustment instruction, and adjusts according to adjustment instruction the probability interval that in described board type repository, in each board type allocation list, various board type is corresponding.
Wherein in an embodiment, described board type decimation blocks comprises:
Allocation list call unit, for calling corresponding board type allocation list in described board type repository according to described board type requirement request;
Random sampling unit, for the integer of stochastic generation from default sample space, generate sampling instruction, described default sample space comprises the probability interval in described board type allocation list;
Search unit, for receiving described sampling instruction, according to described integer searching invoked board type allocation list, the board type that the probability interval fallen into by described integer is corresponding is defined as target board type; And
Board type generation unit, for described target board type is generated the instruction of target board type according to communications protocol form, or according to described appointment board type request determination target board type, generate the instruction of target board type according to communications protocol form, and transfer to described board sequence generation module.
Wherein in an embodiment, described board sequence generation module comprises:
Board type input interface, for receiving the target board type instruction from described board type decimation blocks;
Storage space generation unit, for building storage space according to described target board type instruction;
Playing card logical value generation unit, for one or more playing card logical value of random sampling in all playing card logical values of piling from required board, and is sequentially filled into described storage space;
Playing card pattern generation unit, for according to sampling obtain described in one or more playing card logical value search described two-dimensional dynamic data structure, get the last one in the corresponding list structure of each playing card logical value or the first pattern, and this pattern information association is marked to the corresponding playing card logical value in described storage space, to form the board sequence structure of arrays of association board type, playing card logical value and pattern in described storage space.
Based on the data handling system of above-mentioned playing card board type sequence, present invention also offers a kind of data processing equipment of playing card board sequence sequence, it comprises:
The data handling system of above-mentioned playing card board type sequence;
Command reception interface, for receiving the game type specification signal and/or board type specification signal that user provides, and resolve number information in the board type array mode information in snipsnapsnorum kind beacon information, game role hand board of generating and/or game role hand board; And
Complete board sequence output interface, for according to the number information in described snipsnapsnorum kind beacon information, board type array mode information and/or described game role hand board, generate the type request of appointment board and/or board type sampling request of repeatedly calling described playing card board type sequence data disposal system, and the board sequence structure of arrays received in order from described board sequence output module, until obtain the complete one card hand data meeting number information in described board type array mode information or described game role hand board.
Based on the data handling system of above-mentioned playing card board type sequence, present invention also offers a kind of data processing method of playing card board type sequence, it comprises:
Receive the type request of appointment board or board type sampling request that contain snipsnapsnorum kind beacon information and board type kind of information;
The playing card logical value of board heap needed for associated record snipsnapsnorum and pattern information, generate two-dimensional dynamic data structure;
According to the board type allocation list in the board type repository that described board type sampling request call is set up in advance, described board type repository is for recording the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum, utilize random sampling pattern select target board type from described board type allocation list, or according to the board type kind of information determination target board type in the request of described appointment board type;
The storage space being used for registration plate sequence is built according to described target board type, playing card logical value according to random sampling searches described two-dimensional dynamic data structure, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays;
Read described storage space, and by described board ordinal number group structure output.
Wherein in an embodiment, search described two-dimensional dynamic data structure according to the playing card logical value of random sampling in described method and select a kind of step of pattern to comprise from the corresponding list structure of described playing card logical value:
One or more playing card logical value of random sampling from all playing card logical values that required board is piled, and be sequentially filled into described storage space;
Described in obtaining according to sampling, one or more playing card logical value searches described two-dimensional dynamic data structure, judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty, if, then return the information of board type failed regeneration, redefine sampling playing card logical value;
If not, then get the last a kind of pattern in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
Wherein in an embodiment, in described method, the arbitrary sampling method of target board type comprises:
Stochastic generation integer from default sample space, generate sampling instruction, described default sample space comprises the probability interval in described board type allocation list;
Receive described sampling instruction, according to described integer searching invoked board type allocation list, the board type that the probability interval fallen into by described integer is corresponding is defined as target board type.
Based on the data processing method of above-mentioned playing card board type sequence, present invention also offers a kind of data processing method of playing card board sequence sequence, it comprises:
Receive the game type specification signal that provides of user and/or board type specification signal, and resolve number information in the board type array mode information in snipsnapsnorum kind beacon information, game role hand board of generating and/or game role hand board;
According to the number information in described snipsnapsnorum kind beacon information, board type array mode information and/or described game role hand board, generate and repeatedly specify board type request and/or board type sampling request;
According to described appointment board type request and/or the following process of board type sampling request multiple exercise:
Receive described appointment board type request or board type sampling request;
The playing card logical value of board heap needed for associated record snipsnapsnorum and pattern information, generate two-dimensional dynamic data structure;
According to the board type allocation list in the board type repository that described board type sampling request call pre-sets, described board type repository is for recording the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum, utilize random sampling pattern select target board type from described board type allocation list, or according to the board type kind of information determination target board type in the request of described appointment board type;
The storage space being used for registration plate sequence is built according to described target board type, and search described two-dimensional dynamic data structure according to the playing card logical value of random sampling, a kind of pattern is selected from the list structure that described playing card logical value is corresponding, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays;
Read described storage space, and by described board ordinal number group structure output;
Judge whether to obtain the complete one card hand data meeting described board type array mode information or described game role hand card number information, if, then generate game role hand board data according to the order of repeatedly board ordinal number group structure output, if not, then continue to perform described appointment board type request or board type sampling request.
Wherein in an embodiment, search described two-dimensional dynamic data structure according to the playing card logical value of random sampling in described method and select a kind of step of pattern to comprise from the corresponding list structure of described playing card logical value:
One or more playing card logical value of random sampling from all playing card logical values that required board is piled, and be sequentially filled into described storage space;
Described in obtaining according to sampling, one or more playing card logical value searches described two-dimensional dynamic data structure, judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty, if, then return the information of board type failed regeneration, redefine sampling playing card logical value;
If not, then get the last one in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
Wherein in an embodiment, the step of searching described two-dimensional dynamic data structure acquisition random sampling pattern in described method also comprises: judge whether to need complete board to pile, if, then when returning board type failed regeneration information, the associated nodes of deleting from board heap is saved temporarily, or after the described associated nodes of deletion, the associated nodes of having deleted from board heap of temporarily preserving is put into board heap relevant position; If not, then, after the described associated nodes of deletion, associated nodes node is put into user's hand board, or when returning board type failed regeneration information, directly redefine sampling playing card logical value.
The data handling system of above-mentioned a kind of playing card board type sequence and method and playing card board sequence sequence data treating apparatus thereof and method thereof, it is based on random sampling pattern, integrate the board type rule of various game, define a highly versatile, extensibility, and convenient and practical technology, it not only can generate method and system seamless connection with current existing electronic game board sequence, be embodied as user and provide complete game hand board and the probability that drops arbitrarily controlling specific board type, testing cost can also be reduced when the specific board type of test drops probability, simplify the step of tester.The present invention can also utilize computer program to realize dropping to board sequence specific in snipsnapsnorum the adjustment of probability, and there is versatility widely, it can by the repository test interface of configuration, configure the relevant board type allocation list of different snipsnapsnorum, here board type refers to as the antithetical phrase in fighting landlord, along son, bomb etc., and can also freely allocate probability interval size corresponding to board type by repository test interface in the process of test, thus realize the probability that drops of specific board type in arbitrarily adjustment and test snipsnapsnorum.And data handling system and the method for above-mentioned a kind of playing card board type sequence can be loaded in any a snipsnapsnorum, by the mode called separately and its combination, thus control the probability that drops of specific board type, and can be implemented in test process, the probability that drops of board type is specified by the test of input board type kind of information.In testing requirement, specified the board type needing test by repository test interface by tester; In the demand in order to improve special board type probability, then automatically generate required board type by server according to the probability that product personnel provide.
Accompanying drawing explanation
Fig. 1 is the structural representation of the data handling system of playing card board type sequence of the present invention and the data processing equipment of playing card board sequence sequence thereof;
Fig. 2 is the structural representation of two-dimensional dynamic data structure 400 in Fig. 1;
Fig. 3 is a kind of schematic flow sheet of data processing method of playing card board type sequence;
Fig. 4 is a kind of schematic flow sheet of data processing method of playing card board sequence sequence;
Fig. 5 is an optimum embodiment of Fig. 4 method;
Fig. 6 is the embodiment process flow diagram in a kind of situation of step 10 in Fig. 4;
Fig. 7 is the embodiment process flow diagram in the another kind of situation of step 10 in Fig. 4;
Fig. 8 is the embodiment process flow diagram in another situation of step 10 in Fig. 4.
Embodiment
Based in prior art, the probability problem that drops controlling specific board type in electronic playing card game cannot be unified, the invention provides a kind of data handling system and data processing method thereof of playing card board type sequence.Technical scheme of the present invention is described in detail below with reference to drawings and Examples.
As shown in Figure 1, present embodiments provide a kind of data handling system of playing card board type sequence, it comprises:
External command receiver module 600, for receiving appointment board type request containing snipsnapsnorum kind beacon information and board type kind of information or board type sampling request, board type here refers to antithetical phrase in such as fighting landlord, along son, bomb etc.;
Model building module 101, for setting up a board type repository 100 in advance, records the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum;
Model construction module 401, for generating two-dimensional dynamic data structure 400, in order to playing card logical value and the pattern information of board heap needed for associated record snipsnapsnorum, here two-dimensional dynamic data structure 400 combinationally uses Hash table and one dimension dynamic link table to store board heapinfo, here all playing card in snipsnapsnorum are participated in after board heap refers to selected snipsnapsnorum kind, such as, if snipsnapsnorum is 13, then required board heap is then 52 sheet playing cards except large Xiao Wang;
Board type decimation blocks 200, for the board type allocation list in board type repository 100 according to described board type sampling request call, utilize random sampling pattern select target board type from described board type allocation list, generate the instruction of target board type, or according to described appointment board type request determination target board type, generate the instruction of target board type;
Board sequence generation module 500, for building the storage space being used for registration plate sequence according to described target board type instruction, and search described two-dimensional dynamic data structure according to the playing card logical value of random sampling, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays; Here can consider when carrying out pattern sampling to adopt the mode of the random sampling pattern information corresponding from playing card logical value to select, or directly determine that last one or the first pattern are as target pattern; And
Board sequence output module 700, for reading described storage space, and by described board ordinal number group structure output, in order to form the board order sequenced data corresponding to above-mentioned target board type.
In the present embodiment, board type board type repository 100 is set up by the board type setting rule and the probability that drops of integrating various snipsnapsnorum, and the pattern of corresponding board type is selected based on the two-dimensional dynamic data structure 400 that ad hoc rules is arranged, thus achieve the unified management of the probability that drops to board type specific in electronic playing card game, be convenient to realize to drop the renewal of probability and adjustment to corresponding board type.
Based on above-described embodiment, in the present embodiment as shown in Figure 1, system architecture can also comprise: repository test interface 300, for receiving adjustment instruction, and adjusts according to adjustment instruction the probability interval that in described board type repository, in each board type allocation list, various board type is corresponding.
Board type kind of information in above-described embodiment comprises the number information in the board type array mode information or game role hand board obtained according to the snipsnapsnorum kind selected in snipsnapsnorum kind beacon information.The board type array mode information that the request of above-mentioned appointment board type obtains for the snipsnapsnorum kind of specifying according to user calls board type repository; Above-mentioned board type sampling request sends for the snipsnapsnorum kind of specifying according to user the solicited message utilizing said system to carry out random sampling board type.
Multiple board type allocation list can be comprised in board type repository 100 as shown in Figure 1, the corresponding a kind of snipsnapsnorum of each board type allocation list, the corresponding fighting landlord game of such as the first board type allocation list, it records antithetical phrase, along son, the probability interval that the board types such as bomb are corresponding, corresponding 13 game of second board type allocation list, it records sequence, bomb, cucurbit, color waits the probability interval that board type is corresponding, by the probability interval corresponding to board type unit minimum in the snipsnapsnorum that different board type allocation list records is different, here probability interval takes from the default sample space of stochastic sampling, adding default sample space is 10000, then probability interval can in 1 to 10000 any range of choice, as shown in the table.
Table 1 represents the first board type allocation list
Antithetical phrase Five along son Bomb Individual
[1,1000] (1000,3000] (3000,4000] (4000,10000]
Table 2 represents the second board type allocation list
Sequence Bomb Cucurbit Color
[1,1000] (1000,3000] (3000,4000] (4000,10000]
Can arbitrarily arrange and revise by the repository test interface of Operation system setting the probability interval that in above-mentioned table, various board type is corresponding, or reset the size of default sample space.When carrying out the selection of board type, can adopt by selecting an integer arbitrarily between default sample space is as 1 to 10000, then the probability interval at this integer place is judged, search above-mentioned board type allocation list, determine corresponding board type, so the probability that drops of corresponding board type can be changed by the probability interval that the corresponding board type of adjustment is corresponding.
The playing card logical value of board heap needed for above-mentioned two-dimensional dynamic data structure 400 associated record snipsnapsnorum and pattern information, as shown in Figure 2, when each time required for game board heap being put into two-dimensional dynamic data structure 400, by randomly ordered for pattern corresponding for each logical value, when so each playing card logical value obtained according to sampling searches two-dimensional dynamic data structure, only need to get last a kind of or the first pattern in the list structure corresponding to it, and the respective nodes of deleting after at every turn obtaining corresponding pattern in list structure, avoid at the same sheet playing card realizing occurring when generating with a board sequence more than two.This principle by following about the explanation of board sequence generation module 500 in citing describe in detail.
As shown in Figure 1, said external command reception module 600 is also for asking according to described appointment board type request or the sampling of board type, upgrade described two-dimensional dynamic data structure 400, board heap needed for snipsnapsnorum is put into two-dimensional dynamic data structure 400, and pattern corresponding to each playing card logical value is randomly ordered.
As shown in Figure 1, wherein in an embodiment, above-mentioned board type decimation blocks 200 can comprise:
Allocation list call unit 201, for calling corresponding board type allocation list in described board type repository according to described board type requirement request;
Random sampling unit 202, for the integer of stochastic generation from default sample space, generate sampling instruction, described default sample space comprises the probability interval in described board type allocation list;
Search unit 203, for receiving described sampling instruction, according to described integer searching invoked board type allocation list, the board type that the probability interval fallen into by described integer is corresponding is defined as target board type; And
Board type generation unit 204, for described target board type is generated the instruction of target board type according to communications protocol form, or according to described appointment board type request determination target board type, generate the instruction of target board type according to communications protocol form, and transfer to described board sequence generation module.Here target board type instruction mainly refers to the command signal including concrete board type information, is convenient to board sequence generation module 500 and knows that it needs the board type board sequence built.
As shown in Figure 1, wherein in an embodiment, above-mentioned board sequence generation module 500 can comprise:
Board type input interface 501, for receiving the target board type instruction from described board type decimation blocks;
Storage space generation unit 502, for building storage space according to described target board type instruction, this storage space can adopt and build one or more dimensions structure of arrays, or stacked manner, and associate the board sequence information of board type and corresponding board type, such as, if represent during the type instruction of target board, request generates " antithetical phrase ", then storage space generation unit 502 can generate the dynamic structure of arrays for recording two board information;
Playing card logical value generation unit 503, for one or more playing card logical value of random sampling in all playing card logical values of piling from required board, and be sequentially filled into described storage space, " all playing card logical values " described here refers to, if snipsnapsnorum is 13, then required board heap is then 52 sheet playing cards except large Xiao Wang, so all playing card logical values namely refer to A, 2,3 ..., K 13 playing card logical value values;
Playing card pattern generation unit 504, for according to sampling obtain described in one or more playing card logical value search described two-dimensional dynamic data structure, get the last one in the corresponding list structure of each playing card logical value or the first pattern, and this pattern information association is marked to the corresponding playing card logical value in described storage space, to form the board sequence structure of arrays of association board type, playing card logical value and pattern in described storage space.
In above-described embodiment, as shown in Figure 2, if game selection 13, then record A respectively from the first row of 1 to 13 row in two-dimensional dynamic data structure, 2, 3, K 13 playing card logical values, " ox01 " " ox11 " " ox21 " " ox31 " that the 1st so corresponding row " 1 " is corresponding is randomly assigned to four kinds of patterns respectively, such as " ox01 " represents square piece A, " ox11 " represents plum blossom A, " ox21 " represents spade A, " ox31 " represents heart A, in addition, when each time required board heap being put into two-dimensional dynamic data structure, pattern corresponding to playing card logical value is all by random alignment, that is, 2nd row, it is different that the pattern information that 3rd row etc. is stored thereafter all represents from the 1st row, " ox02 " " ox12 " " ox22 " " ox32 " that such as the 2nd row " 2 " is corresponding represents square piece 2 respectively, plum blossom 2, heart 2, spade 2, by that analogy, the 13rd row " 13 " is corresponding " ox0D " " ox1D " " ox2D " " ox3D " represents plum blossom K, square piece K, heart K, spade K respectively.So, playing card logical value generation unit 503 generates playing card logic value according to board type, such as, in the fighting landlord selection of the suitable sub-board type that 5 boards form, according to the rule of fighting landlord, first at random from 3-10 logical value, select a value as along the numerical value sub, such as result obtains 5, then the whole playing card logical values forming board type comprise 5,6,7,8,9; Then according to two-dimensional dynamic data structure, select the pattern corresponding to each logical value successively, if the corresponding pattern chained list of certain numerical value is empty in required 5 logical values, then there is not this logical value, failed regeneration in indication board heap; Otherwise, the list structure in Fig. 2 will be searched according to " 5,6,7,8,9 ", select the last one in the corresponding list structure of each playing card logical value or the first pattern, obtain the board sequence generated and generate board sequence structure of arrays, in order to put into user's hand, simultaneously in order to avoid duplicating playing card with when once game generates complete board sequence, then after the board sequence generating corresponding board type, from the board heap of two-dimensional dynamic data structure corresponding record, delete the pattern node that the playing card logical value selected is corresponding.Below illustrate, such as, when generating with a board sequence, the pattern of playing card logical value 5 correspondence is selected according to the method described above according to user instruction, in the two-dimensional dynamic data structure shown in Fig. 2 " 5 " corresponding respectively: square piece, plum blossom, heart, spade, so, first time select " 5 " corresponding pattern time from the first selection be " square piece ", and the node emptied in list structure, namely in two-dimensional dynamic data structure " 5 " corresponding respectively: empty, plum blossom, heart, spade, and when the pattern needing selection playing card logical value " 5 " corresponding for the second time, from the first pattern select just can only time " plum blossom ", and the node emptied in list structure, namely in two-dimensional dynamic data structure " 5 " corresponding respectively: empty, empty, heart, spade, by that analogy, until the pattern information of playing card logical value " 5 " correspondence all empties, select just cannot select logical value 5 again during playing card logical value according to board type so again, and again should screen other logic value again from playing card logical value.
According to above-described embodiment, situation about duplicating when pattern is sampled, above-mentioned playing card pattern generation unit 504, when carrying out searching above-mentioned two-dimensional dynamic data structure, can also comprise with lower unit:
For perform to obtain according to sampling described in one or more playing card logical value search the unit of described two-dimensional dynamic data structure;
Judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty unit for performing;
When being empty for the pattern information corresponding in playing card logical value described in described two-dimensional dynamic data structure, return the information of board type failed regeneration, redefine the unit of sampling playing card logical value; And
When not being empty for the pattern information corresponding in playing card logical value described in described two-dimensional dynamic data structure, get the last one in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the unit of the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
Based on said system and each embodiment thereof, as shown in Figure 3, the present embodiment additionally provides a kind of data processing method of playing card board type sequence, and it comprises:
Step 31: receive the type request of appointment board or board type sampling request that contain snipsnapsnorum kind beacon information and board type kind of information;
Step 32: the playing card logical value of board heap needed for associated record snipsnapsnorum and pattern information, generate two-dimensional dynamic data structure; Here the building mode of two-dimensional dynamic data structure is see above-mentioned related description, does not tire out state at this.
Step 33: according to the board type allocation list in the board type repository that described board type sampling request call is set up in advance, described board type repository is for recording the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum, utilize random sampling pattern select target board type from described board type allocation list, or according to the board type kind of information determination target board type in the request of described appointment board type; The probability interval of board type allocation list here to adjust it by arranging repository test interface 300 or to upgrade, thus realizes adjusting corresponding board type probability of occurrence when there being adjustment particular probability demand each time.
Step 34: build the storage space being used for registration plate sequence according to described target board type, playing card logical value according to random sampling searches described two-dimensional dynamic data structure, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays;
Step 35: read described storage space, by described board ordinal number group structure output, in order to form the board order sequenced data corresponding to described target board type.
Method in above-described embodiment is mainly according to board type repository and the two-dimensional dynamic data structure of specifying board type request or board type sampling request to call the various playing card type of summary record and the probability that drops, realize the generation to single board type board sequence, be convenient in the original complete board sequence generation system of follow-up seamless connection and method, realize repeatedly calling said method and generate to the classification realizing whole secondary board sequence.When needs debugging or the relevant board type of test drop probability, also comprised before step 31 at said method: a repository test interface is provided, receive the adjustment instruction from repository test interface, adjust according to this adjustment instruction the probability interval that in described board type repository, in each board type allocation list, various board type is corresponding, thus change the probability that drops of specific board type when utilizing board type allocation list to carry out random sampling.
As shown in Figure 3, in one of them embodiment of the present invention, in said method, step 34 specifically comprises the following steps, and step 343 has been search the step that two-dimensional dynamic data structure obtains random sampling pattern to 346, shown in specific as follows:
Step 341: build the storage space being used for registration plate sequence according to described target board type, storage space here can adopt and build one or more dimensions structure of arrays, or stacked manner;
Step 342: one or more playing card logical value of random sampling from all playing card logical values that required board is piled according to board type and board type rule; Here board type rule refers to the playing card number that should contain for board type, if such as board type refers to antithetical phrase, then board type rule just refers to and comprises two boards, and the storage space so built according to target board type should be used for the array space of recording two board information.
Step 343: the one or more playing card logical values obtained search described two-dimensional dynamic data structure according to sampling;
Step 344: judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty, if so, then performs step 346: the information returning board type failed regeneration, return to step 342 and determine sampling playing card logical value;
If not, then perform step 345: get the last a kind of pattern in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
In above-mentioned steps 33, the arbitrary sampling method of target board type comprises the following steps: stochastic generation integer from default sample space, and generate sampling instruction, described default sample space comprises the probability interval in described board type allocation list; Acceptance sampling instruction, according to described integer searching invoked board type allocation list, the board type that the probability interval fallen into by described integer is corresponding is defined as target board type.Specifically be appreciated that as follows: above-mentioned target board type can be specify or use the method for simulation random sampling to generate according to appointment probability according to real needs by tester backstage.When needs generate according to probability, first a limited nature number interval determined is specified, a natural number in generation interval of computer random, due to the generation feature of computing machine pseudo random number, each elementary event producing these numbers can to think equally likely possibility, meet classical probability scheme, therefore can according to the number specific needs probability comprising elementary event.In the present embodiment, target board type is determined between the single elementary event location produced in the mode simulating random sampling, such as preset sample space and be set to 10000, be divided into respective bins by 10000, such as, use [1,1000] and (1000,10000] the interval probability interval representing corresponding board type, each computing machine all can produce the integer between a 1-10000 at random, is called an elementary event, according to the interval at produced concrete integer place, determine target board type.
Above embodiments describe and a kind ofly can arbitrarily regulate single board type to drop the board type board order sequenced data disposal system of probability and data processing method thereof, this system can be build software application layer on server or terminal hardware, and, this board type board sequence generation system mainly generates for the board sequence of single board type, such as by means of only the board sequence once calling this system stochastic generation antithetical phrase, or one five the board sequences along son, or the board sequence of a bomb, therefore, can also be embedded in the generating apparatus linking original role's hand board board sequence for the whole game of whole secondary board, thus form a kind of data processing equipment of new playing card board sequence sequence, in order to realize generating in general snipsnapsnorum the complete one card hand board sequence of game role by repeatedly calling board type board sequence generation system and data processing method thereof, thus reach unified management and regulate specific board type to drop the object of probability, and can test specific board type drop probability test process in reduce testing cost, simplify testing procedure.
As shown in Figure 1, a kind of board sequence sequence data treating apparatus of the complete one card hand of game user role that can provide comprises:
The data handling system of the playing card board type sequence described in each embodiment above-mentioned, as shown in Figure 1, the parsing of corresponding construction, see above-mentioned each section of explanation, does not do tired stating at this to its concrete structure;
Command reception interface 800, for receiving the game type specification signal and/or board type specification signal that user provides, and resolve number information in the board type array mode information in snipsnapsnorum kind beacon information, game role hand board of generating and/or game role hand board;
Complete board sequence output interface 900, for according to the number information in described snipsnapsnorum kind beacon information, board type array mode information and/or described game role hand board, generate the type request of appointment board and/or board type sampling request of repeatedly calling above-mentioned playing card board type sequence data disposal system, and the board sequence structure of arrays received in order from described board sequence output module, until obtain the complete one card hand data meeting number information in described board type array mode information or described game role hand board.
Have in foregoing and mention specify board type request or board type sampling request to comprise the respectively snipsnapsnorum kind of specifying according to user and the board type kind of information obtained or the demand that sends carry out random sampling board type solicited message according to said system.Usual user can be clicked by mouse when carrying out snipsnapsnorum and selecting and give a game type selection information, thus above-mentioned command reception interface 800 correspondingly can produce snipsnapsnorum kind beacon information, how to select any board type allocation list in order to be supplied to computing machine; And simultaneously after playing card kind is determined, automatically can generate the number information in corresponding board type array mode information or game role hand board, in fact comprise two kinds of implementations here:
The first, generate board type array mode information by the method outside the data handling system independent of the playing card board type sequence described in each embodiment above-mentioned, this can determine board type array mode information see the mode of above-mentioned random sampling board type.Such as, if game type selects information to represent, user have selected three people's fighting landlord game, be exactly so stay three cards in one's hand according to the rule of three people's fighting landlords, everyone divides 17, then board type array mode information can be a bomb (4), one along son (5), a king (1), 7 individual, the appointment board type request so generated comprises: a bomb (4), one along son (5), a king (1), 7 individual board type demands, need the data handling system calling 10 above-mentioned playing card board type sequences respectively, if 7 individual can be a kind of board type, then can be reduced to the data handling system calling 4 above-mentioned playing card board type sequences.Certain board type array mode information here can be the board type array mode of the game role hand board data that composition is complete, also can be a certain or several board type that user specifies.Can so that test macro under this mode, realize the demand that specific board type probability is tested, the data handling system of above-mentioned playing card board type sequence can certainly be made to be embedded in the dependent game playing card board sequence generating apparatus of early development, make board sequence generating apparatus more demand can be brought to experience for user, the board type can specified according to user carries out the selection of target board type, can also determine board type board sequence at random according to remaining board number.
The second, according to the game type information that user selects, can know the game role hand card number information that game role should be distributed.Such as if three people's fighting landlord game, then game role needs 17 sheet playing cards, so can generate the board type sampling request of repeatedly calling above-mentioned playing card board type sequence data disposal system by complete board sequence output interface 900, when calling above-mentioned playing card board type sequence data disposal system each time, all random sampling obtains target board type, generate corresponding board sequence, until obtain the complete one card hand data meeting number information in described game role hand board.
Above-mentioned complete board sequence output interface 900 can comprise following unit:
Request generation unit, for according to the number information in described board type array mode information and/or described game role hand board, generates and repeatedly specifies board type request and/or board type sampling request;
Call unit, for repeatedly calling above-mentioned playing card board type sequence data disposal system according to above-mentioned appointment board type request or board type sampling request;
Judging unit, for judging whether to obtain the complete one card hand data meeting described board type array mode information or described game role hand card number information, if, then generate game role hand board data according to the order of repeatedly board ordinal number group structure output, otherwise continue through above-mentioned call unit and perform described appointment board type request or board type sampling request.
Based on the data processing equipment of above-mentioned playing card board sequence sequence, as shown in Figure 4, the present embodiment additionally provides a kind of data processing method of playing card board sequence sequence, and its method comprises:
Step 10: receive the game type specification signal that provides of user and/or board type specification signal, and resolve number information in the board type array mode information in snipsnapsnorum kind beacon information, game role hand board of generating and/or game role hand board;
Step 20: according to the number information in described snipsnapsnorum kind beacon information, board type array mode information and/or described game role hand board, generates and repeatedly specifies board type request and/or board type sampling request;
Step 30: repeatedly call or perform following step 31 to 35 according to above-mentioned appointment board type request and/or board type sampling request.
Step 31: receive described appointment board type request or board type sampling request;
Step 32: the playing card logical value of board heap needed for associated record snipsnapsnorum and pattern information, generate two-dimensional dynamic data structure;
Step 33: according to the board type allocation list in the board type repository that described board type sampling request call is set up in advance, described board type repository is for recording the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum, utilize random sampling pattern select target board type from described board type allocation list, or according to the board type kind of information determination target board type in the request of described appointment board type;
Step 34: build the storage space being used for registration plate sequence according to described target board type, and search described two-dimensional dynamic data structure according to the playing card logical value of random sampling, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays;
Step 35: read described storage space, by described board ordinal number group structure output;
Step 40: judge whether to obtain the complete one card hand data meeting described board type array mode information or described game role hand card number information, if, then perform step 50: generate game role hand board data according to the order of repeatedly board ordinal number group structure output, if not, then step 60 is performed: continue to perform described appointment board type request or board type sampling request.
Participate in the fine division step of the step 34 in Fig. 3 in above-mentioned steps 34 about the step of searching above-mentioned two-dimensional dynamic data structure and obtain random sampling pattern, this do not do tired state bright.In said method, the two-dimensional dynamic data structure of step 32 can upgrade in the following ways: according to described appointment board type request or board type sampling request, upgrade described two-dimensional dynamic data structure, board heap needed for snipsnapsnorum is put into described two-dimensional dynamic data structure, and pattern corresponding to each playing card logical value is randomly ordered.
In addition, in a preferred embodiment of the present invention, as shown in Figure 5, step 34 can also comprise the following steps:
Step 341: build the storage space being used for registration plate sequence according to described target board type;
Step 342: according to board type and board type regular random sampling playing card logical value;
Step 343: the playing card logical value obtained searches described two-dimensional dynamic data structure according to sampling;
Step 344: judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty, if, then perform step 346: pattern chained list is empty, indicate required logical value to be all assigned with away, cannot continue to distribute, board type failed regeneration, empty user hand board data, redefine sampling playing card logical value;
If not, then perform step 345: get the last a kind of pattern in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
The step judging whether to need complete board to pile of step 350 and step 347 is all performed after execution of step 346 and step 345.After step 345, perform step 347, if so, then perform step 348: the associated nodes of deleting from board heap is saved temporarily, associated nodes is put back to during failed regeneration in board heap; Then perform step 349 if not: associated nodes node is put into user's hand board.
Step 350 is performed, if then perform step 351: the associated nodes of having deleted from board heap of temporarily preserving is put into board heap relevant position, and performs step 352 after execution of step 346; If not, then directly perform step 352: judge whether to regenerate, no is return above-mentioned steps 342, then terminate this board type board sequence if not and generate, generate and terminate, read the board sequence structure of arrays in described storage space.
The steps such as step 350 and step 347 are increased in the correlation step 34 of Fig. 5, its object is to: 54 sheet playing cards that the playing card that bidge table has are always not all, namely may be processed playing card having lacked part playing card, then the board recorded in two-dimensional dynamic data structure heap may be imperfect; The logical value list of playing card, in order to search conveniently, can use array to preserve the pattern list of logical value and correspondence; Playing card are because the difference of rule, whole playing card (such as fighting landlord) may be used, also just wherein part playing card (such as holdem) may be used, then in the process generating board type, in order to raise the efficiency, for only using the business of part playing card can not preserve the node deleted from board heap, and for needing the business of whole playing card, then need when failed regeneration, the playing card deleted to be put into again board heap.
As shown in Figure 4, how to judge whether to have obtained the complete one card hand data mode meeting described board type array mode information or described game role hand card number information in above-mentioned steps 40 and give related embodiment explanation.Following examples can based on the optimum embodiment expansion explanation shown in Fig. 5.
Embodiment as shown in Figure 6, based on the embodiment shown in Fig. 4 or Fig. 5, if step 10 " the game type specification signal that reception user provides and/or board type specification signal, and resolve generation snipsnapsnorum kind beacon information, number information in board type array mode information in game role hand board and/or game role hand board ", wherein, board type array mode information is the board type array mode that can form the complete one card hand data of game role of the demand board type composition according to user's input, then after executing the step 35 shown in Fig. 4 or Fig. 5 and exporting board sequence structure of arrays, when performing step 40, judge whether to obtain the complete one card hand data meeting described board type array mode information, if then generate game role hand board data according to the order of repeatedly board ordinal number group structure output, otherwise, continue to perform the request of described appointment board type.Here by step 31 in the board type number in corresponding board type array mode information repeatedly calling graph 5 to 35, and meet required board type array mode information by whether and restrain repeatedly invoked procedure.
Embodiment as shown in Figure 7, if board type array mode information is part board type demand in above-mentioned steps 10, when needing to combine with it by other board types of random screening the situation forming the complete one card hand data of game role, such as, when carrying out three people's fighting landlord game, user needs to comprise the specific board types such as large Xiao Wang in the game hand board of assigning by special experience, so remaining 15 needs asks repeatedly step 31 in calling graph 4 or Fig. 5 to carry out random sampling board type to 35 by the sampling of setting board type, thus specify step 31 in board type request call Fig. 4 or Fig. 5 to generate large small trump type board sequence to 35 to carry out merging the complete one card hand data generating and be assigned to game role with by setting.So, as shown in Figure 7, after executing the step 35 shown in Fig. 4 or Fig. 5 and exporting board sequence structure of arrays, the step 40 performed changes to: first, perform step 124: judge whether to obtain the complete one card hand data meeting described board type array mode information, then to continue to perform in described appointment board type request call Fig. 4 or Fig. 5 step 31 if not to 35; If so, then perform step 125: judge whether to obtain the complete one card hand data meeting described game role hand card number information, then to continue to perform in described board type sampling request call Fig. 4 or Fig. 5 step 31 if not to 35; If then generate game role hand board data according to the order of repeatedly board ordinal number group structure output.Here by whether meeting the board type array mode information of specifying and role's hand card array corresponding to game rule closes the process that judgment mode restrains repeatedly step 31 to 35 in calling graph 4 or Fig. 5.
Embodiment as shown in Figure 8, if user does not input board type demand in above-mentioned steps 10, then only can generate number information in snipsnapsnorum kind beacon information and game role hand board, and unlicensed type array mode information, then as shown in Figure 8, after the process of the step 31 to 35 in repeatedly calling graph 4 or Fig. 5, when performing step 40: judge whether to obtain the complete one card hand data meeting described game role hand card number information, then to continue to perform in described board type sampling request call Fig. 4 or Fig. 5 step 31 if not to 35; If then generate game role hand board data according to the order of repeatedly board ordinal number group structure output.The present embodiment is by means of only judging whether the game role hand board data generated meet role's hand card number that game rule specifies and require to restrain whole invoked procedure.
Based on each embodiment above-mentioned, the present embodiment can generate the special board type of specifying fast, can meet the testing requirement of tester for special board type.Meanwhile, when above-mentioned playing card board type board order sequenced data disposal system and method being added in game, also dynamic controls the probability of occurrence of special board type, effectively increases the pungency of game.The configurability of the present embodiment is strong, and required board type can be specified by user, or generates according to configuration probability; The present embodiment can also carry out flexible expansion and renewal.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a data handling system for playing card board type sequence, is characterized in that, described system comprises:
External command receiver module, for receiving appointment board type request containing snipsnapsnorum kind beacon information and board type kind of information or board type sampling request;
Model building module, for setting up a board type repository in advance, records the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum;
Model construction module, for generating two-dimensional dynamic data structure, in order to playing card logical value and the pattern information of board heap needed for associated record snipsnapsnorum;
Board type decimation blocks, for the board type allocation list in board type repository according to described board type sampling request call, utilize random sampling pattern select target board type from described board type allocation list, generate the instruction of target board type, or according to described appointment board type request determination target board type, generate the instruction of target board type;
Board sequence generation module, for building the storage space being used for registration plate sequence according to described target board type instruction, and search described two-dimensional dynamic data structure according to the playing card logical value of random sampling, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays; And
Board sequence output module, for reading described storage space, and by described board ordinal number group structure output.
2. the data handling system of playing card board type sequence according to claim 1, it is characterized in that, described system also comprises: repository test interface, for receiving adjustment instruction, and adjust according to adjustment instruction the probability interval that in described board type repository, in each board type allocation list, various board type is corresponding.
3. the data handling system of playing card board type sequence according to claim 1, is characterized in that, described board type decimation blocks comprises:
Allocation list call unit, for calling corresponding board type allocation list in described board type repository according to described board type requirement request;
Random sampling unit, for the integer of stochastic generation from default sample space, generate sampling instruction, described default sample space comprises the probability interval in described board type allocation list;
Search unit, for receiving described sampling instruction, according to described integer searching invoked board type allocation list, the board type that the probability interval fallen into by described integer is corresponding is defined as target board type; And
Board type generation unit, for described target board type is generated the instruction of target board type according to communications protocol form, or according to described appointment board type request determination target board type, generate the instruction of target board type according to communications protocol form, and transfer to described board sequence generation module.
4. the data handling system of playing card board type sequence according to claim 1, is characterized in that, described board sequence generation module comprises:
Board type input interface, for receiving the target board type instruction from described board type decimation blocks;
Storage space generation unit, for building storage space according to described target board type instruction;
Playing card logical value generation unit, for one or more playing card logical value of random sampling in all playing card logical values of piling from required board, and is sequentially filled into described storage space;
Playing card pattern generation unit, for according to sampling obtain described in one or more playing card logical value search described two-dimensional dynamic data structure, get the last one in the corresponding list structure of each playing card logical value or the first pattern, and this pattern information association is marked to the corresponding playing card logical value in described storage space, to form the board sequence structure of arrays of association board type, playing card logical value and pattern in described storage space.
5. a data processing equipment for playing card board sequence sequence, is characterized in that, described device comprises:
The data handling system of the playing card board type sequence described in any claim of Claims 1-4;
Command reception interface, for receiving the game type specification signal and/or board type specification signal that user provides, and resolve number information in the board type array mode information in snipsnapsnorum kind beacon information, game role hand board of generating and/or game role hand board; And
Complete board sequence output interface, for according to the number information in described snipsnapsnorum kind beacon information, board type array mode information and/or described game role hand board, generate the type request of appointment board and/or board type sampling request of repeatedly calling described playing card board type sequence data disposal system, and the board sequence structure of arrays received in order from described board sequence output module, until obtain the complete one card hand data meeting number information in described board type array mode information or described game role hand board.
6., based on the data processing method of a kind of playing card board type sequence of playing card board type sequence data disposal system according to claim 1, it is characterized in that, described method comprises:
Receive the type request of appointment board or board type sampling request that contain snipsnapsnorum kind beacon information and board type kind of information;
The playing card logical value of board heap needed for associated record snipsnapsnorum and pattern information, generate two-dimensional dynamic data structure;
According to the board type allocation list in the board type repository that described board type sampling request call is set up in advance, described board type repository is for recording the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum, utilize random sampling pattern select target board type from described board type allocation list, or according to the board type kind of information determination target board type in the request of described appointment board type;
The storage space being used for registration plate sequence is built according to described target board type, playing card logical value according to random sampling searches described two-dimensional dynamic data structure, a kind of pattern is selected from the corresponding list structure of described playing card logical value, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays;
Read described storage space, and by described board ordinal number group structure output.
7. the data processing method of playing card board type sequence according to claim 6, it is characterized in that, search described two-dimensional dynamic data structure according to the playing card logical value of random sampling in described method and select a kind of step of pattern to comprise from the corresponding list structure of described playing card logical value:
One or more playing card logical value of random sampling from all playing card logical values that required board is piled, and be sequentially filled into described storage space;
Described in obtaining according to sampling, one or more playing card logical value searches described two-dimensional dynamic data structure, judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty, if, then return the information of board type failed regeneration, redefine sampling playing card logical value;
If not, then get the last a kind of pattern in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
8. the data processing method of playing card board type sequence according to claim 6, it is characterized in that, in described method, the arbitrary sampling method of target board type comprises:
Stochastic generation integer from default sample space, generate sampling instruction, described default sample space comprises the probability interval in described board type allocation list;
Receive described sampling instruction, according to described integer searching invoked board type allocation list, the board type that the probability interval fallen into by described integer is corresponding is defined as target board type.
9., based on the data processing method of a kind of playing card board sequence sequence of claim 6, it is characterized in that, described method comprises:
Receive the game type specification signal that provides of user and/or board type specification signal, and resolve number information in the board type array mode information in snipsnapsnorum kind beacon information, game role hand board of generating and/or game role hand board;
According to the number information in described snipsnapsnorum kind beacon information, board type array mode information and/or described game role hand board, generate and repeatedly specify board type request and/or board type sampling request;
According to described appointment board type request and/or the following process of board type sampling request multiple exercise:
Receive described appointment board type request or board type sampling request;
The playing card logical value of board heap needed for associated record snipsnapsnorum and pattern information, generate two-dimensional dynamic data structure;
According to the board type allocation list in the board type repository that described board type sampling request call pre-sets, described board type repository is for recording the board type allocation list of Attribute Association between various board type and probability interval at least one snipsnapsnorum, utilize random sampling pattern select target board type from described board type allocation list, or according to the board type kind of information determination target board type in the request of described appointment board type;
The storage space being used for registration plate sequence is built according to described target board type, and search described two-dimensional dynamic data structure according to the playing card logical value of random sampling, a kind of pattern is selected from the list structure that described playing card logical value is corresponding, described storage space is inserted in the pattern association of described playing card logical value and corresponding sampling, forms board sequence structure of arrays;
Read described storage space, and by described board ordinal number group structure output;
Judge whether to obtain the complete one card hand data meeting described board type array mode information or described game role hand card number information, if, then generate game role hand board data according to the order of repeatedly board ordinal number group structure output, if not, then continue to perform described appointment board type request or board type sampling request.
10. the data processing method of playing card board sequence sequence according to claim 9, it is characterized in that, search described two-dimensional dynamic data structure according to the playing card logical value of random sampling in described method and select a kind of step of pattern to comprise from the corresponding list structure of described playing card logical value:
One or more playing card logical value of random sampling from all playing card logical values that required board is piled, and be sequentially filled into described storage space;
Described in obtaining according to sampling, one or more playing card logical value searches described two-dimensional dynamic data structure, judge whether the pattern information that described in described two-dimensional dynamic data structure, playing card logical value is corresponding is empty, if, then return the information of board type failed regeneration, redefine sampling playing card logical value;
If not, then get the last one in the corresponding list structure of described playing card logical value or the first pattern, be defined as target pattern, from described two-dimensional dynamic data structure, delete the associated nodes of this target pattern and corresponding playing card logical value simultaneously.
CN201410499687.8A 2014-09-25 2014-09-25 Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence Active CN105447296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410499687.8A CN105447296B (en) 2014-09-25 2014-09-25 Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410499687.8A CN105447296B (en) 2014-09-25 2014-09-25 Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence

Publications (2)

Publication Number Publication Date
CN105447296A true CN105447296A (en) 2016-03-30
CN105447296B CN105447296B (en) 2018-01-16

Family

ID=55557467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410499687.8A Active CN105447296B (en) 2014-09-25 2014-09-25 Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence

Country Status (1)

Country Link
CN (1) CN105447296B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108992923A (en) * 2018-06-22 2018-12-14 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device
CN109011567A (en) * 2018-08-07 2018-12-18 深圳市东方博雅科技有限公司 A kind of equipment and system that participant can be made to carry out game
CN109739753A (en) * 2018-12-24 2019-05-10 网易(杭州)网络有限公司 Chess/card game test method, device, equipment and storage medium
CN110443284A (en) * 2019-07-15 2019-11-12 超参数科技(深圳)有限公司 Training method, call method, server and the readable storage medium storing program for executing of AI model
CN110548277A (en) * 2019-09-29 2019-12-10 腾讯科技(深圳)有限公司 Method, device and equipment for acquiring hand cards in card game program and readable medium
CN112134912A (en) * 2019-06-25 2020-12-25 湖南云帆流量科技有限公司 Block chain based distribution method and device
CN112933603A (en) * 2021-02-07 2021-06-11 深圳市天天来玩科技有限公司 Service data processing method, device, equipment and storage medium
CN113058271A (en) * 2021-03-09 2021-07-02 北京达佳互联信息技术有限公司 Game control method, device, server and storage medium
CN113262496A (en) * 2021-06-09 2021-08-17 浙江畅唐网络股份有限公司 Card type data processing method of whipped egg game and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060082060A1 (en) * 2004-10-14 2006-04-20 Soto Susan L Educational game
CN1835783A (en) * 2003-06-18 2006-09-20 思瓦特波克公司 Computer-based interactive real-time card selection game
CN101301526A (en) * 2008-07-10 2008-11-12 深圳市宝安区福永明浩威电子厂 Electronic playing card game machine and control method for providing game for contesting with landowner
CN101320406A (en) * 2007-05-25 2008-12-10 Nhn公司 Card game service providing method and system
CN103877725A (en) * 2012-12-20 2014-06-25 腾讯科技(深圳)有限公司 Electronic chess and card data processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835783A (en) * 2003-06-18 2006-09-20 思瓦特波克公司 Computer-based interactive real-time card selection game
US20060082060A1 (en) * 2004-10-14 2006-04-20 Soto Susan L Educational game
CN101320406A (en) * 2007-05-25 2008-12-10 Nhn公司 Card game service providing method and system
CN101301526A (en) * 2008-07-10 2008-11-12 深圳市宝安区福永明浩威电子厂 Electronic playing card game machine and control method for providing game for contesting with landowner
CN103877725A (en) * 2012-12-20 2014-06-25 腾讯科技(深圳)有限公司 Electronic chess and card data processing method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108992923B (en) * 2018-06-22 2019-09-13 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device
CN108992923A (en) * 2018-06-22 2018-12-14 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device
CN109011567A (en) * 2018-08-07 2018-12-18 深圳市东方博雅科技有限公司 A kind of equipment and system that participant can be made to carry out game
CN109739753A (en) * 2018-12-24 2019-05-10 网易(杭州)网络有限公司 Chess/card game test method, device, equipment and storage medium
CN112134912A (en) * 2019-06-25 2020-12-25 湖南云帆流量科技有限公司 Block chain based distribution method and device
CN112134912B (en) * 2019-06-25 2023-07-21 湖南云帆流量科技有限公司 Block chain-based distribution method and device
CN110443284A (en) * 2019-07-15 2019-11-12 超参数科技(深圳)有限公司 Training method, call method, server and the readable storage medium storing program for executing of AI model
CN110548277B (en) * 2019-09-29 2020-12-25 腾讯科技(深圳)有限公司 Method, device and equipment for acquiring hand cards in card game program and readable medium
CN110548277A (en) * 2019-09-29 2019-12-10 腾讯科技(深圳)有限公司 Method, device and equipment for acquiring hand cards in card game program and readable medium
CN112933603A (en) * 2021-02-07 2021-06-11 深圳市天天来玩科技有限公司 Service data processing method, device, equipment and storage medium
CN113058271A (en) * 2021-03-09 2021-07-02 北京达佳互联信息技术有限公司 Game control method, device, server and storage medium
CN113058271B (en) * 2021-03-09 2024-02-23 北京达佳互联信息技术有限公司 Game control method, game control device, server and storage medium
CN113262496A (en) * 2021-06-09 2021-08-17 浙江畅唐网络股份有限公司 Card type data processing method of whipped egg game and related device

Also Published As

Publication number Publication date
CN105447296B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN105447296A (en) Poker hand pattern sequence data processing system, apparatus and method and Poker card order sequence data processing system, apparatus and method
CN104079686B (en) The method to set up and distribution method of terminal device MAC Address
CN102023843B (en) Function calling method and device as well as smart card
CN106844397A (en) Multiplexed transport method, apparatus and system based on point storehouse point table
CN110162388A (en) A kind of method for scheduling task, system and terminal device
CN103617508A (en) Configurable business rule plug-in extension apparatus and business rule plug-in extension method
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN103841562B (en) A kind of time interval resource takes processing method and processing device
CN106131244A (en) A kind of message transmitting method and device
CN107357630A (en) A kind of method, apparatus and storage medium for realizing that virtual machine is synchronous
CN103049516A (en) Method and device for processing data
CN106897299A (en) A kind of data bank access method and device
CN109828790A (en) A kind of data processing method and system based on Shen prestige isomery many-core processor
CN108418752B (en) A kind of creation method and device of aggregation group
CN104461705B (en) A kind of method and storage control, cluster storage system of business access
CN106685954A (en) Method and device for scanning plug-in and determining rule scheduling sequence in plug-in
CN104731702B (en) Test system and its service end
CN108710687A (en) A kind of acquisition methods and device of service identification sequence
CN104298596B (en) Random distribution method and device for test scheme and server
CN107104829B (en) Physical equipment matching distribution method and device based on network topology data
CN102780780A (en) Method, equipment and system for data processing in cloud computing mode
CN113795032A (en) Method and device for judging room division invisible fault, storage medium and equipment
CN113849310A (en) Data processing method, device, equipment and machine-readable storage medium
CN106970837A (en) A kind of information processing method and electronic equipment
CN103970854B (en) Method for synchronizing incremental certificate information between SAP ECC end and SAP BW end

Legal Events

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