CN105447296B - Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence - Google Patents

Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence Download PDF

Info

Publication number
CN105447296B
CN105447296B CN201410499687.8A CN201410499687A CN105447296B CN 105447296 B CN105447296 B CN 105447296B CN 201410499687 A CN201410499687 A CN 201410499687A CN 105447296 B CN105447296 B CN 105447296B
Authority
CN
China
Prior art keywords
board type
board
playing card
sequence
type
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.)
Active
Application number
CN201410499687.8A
Other languages
Chinese (zh)
Other versions
CN105447296A (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a kind of data handling system of playing card board type sequence, it includes:External command receiving module, for receiving the specified board type request containing snipsnapsnorum species beacon information winning type kind of information or the sampling request of board type;Model building module, for pre-establishing a board type repository, record the board type allocation list of Attribute Association between various board types and probability interval at least one snipsnapsnorum;Model construction module, for generating two-dimensional dynamic data structure, playing card logical value and suit information to board heap needed for associated record snipsnapsnorum etc..Present invention also offers a kind of data processing method of playing card board type sequence, a kind of playing card board sequence sequence data processing method and its device.It can arbitrarily adjust the probability that drops of specific board type.

Description

Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence
Technical field
The present invention relates to microcomputer data processing field, more particularly to a kind of processing of playing card board type sequence data System and method, a kind of playing card board sequence sequence data processing unit and its method.
Background technology
For user when terminal carries out electronic chess-cards game, server can send certain number of flutter for user at random Gram board is for users to use.A electronic chess-cards game in playing method except attracting user, it is also necessary to make good use of with board algorithm with Meaning controls the probability of occurrence of special board type, stimulates the game enthusiasm of user.For example the landlord that fights, special board type just refer to fighting landlord In antithetical phrase, along son, bomb etc..
No using before matching somebody with somebody board algorithm, more common way is to select board to send from board heap using random disposable To user, do not handled especially for the probability of occurrence of special board type, then the board in user's hand is all that server is random Each role is distributed to according to randomized policy from board heap, this method is excessively simple, and the distribution for combination of playing a card is basic It is uncontrollable.The board of role is all very scattered, and the probability for taking special board type can be very small, and the time, one long user will gradually reduce The enthusiasm of game.
After chess and card games (such as mahjong, playing card etc.) are developed, during into test phase, then have for special board The demand of type (antithetical phrase, suitable son, bomb in such as fighting landlord) test, therefore exist for providing specific board type generating algorithm Demand.Meanwhile in order to increase the excitant of product, the specific demand of the probability of special board type is obtained there is also increase user.It is special Different board type drops probability generally under the prior art, is all based on natural probability and is constantly tested, because natural probability Under, the probability of occurrence of special board type all can be very low, so needing repeatedly to be attempted, this is also a kind of very big for test resource Waste.
The content of the invention
Based on this, it is necessary to the problem of for special board type probability of occurrence can not be uniformly controlled in electronic chess-cards game, carry For a kind of playing card board type sequence data processing system and its method, a kind of playing card board sequence sequence data processing unit and its side Method.
A kind of data handling system of playing card board type sequence provided by the invention, it includes:
External command receiving module, for receiving the finger containing snipsnapsnorum species beacon information winning type kind of information Determine the request of board type or the sampling request of board type;
Model building module, for pre-establishing a board type repository, record various boards at least one snipsnapsnorum The board type allocation list of Attribute Association between type and probability interval;
Model construction module, for generating two-dimensional dynamic data structure, to board heap needed for associated record snipsnapsnorum Playing card logical value and suit information;
Board type decimation blocks, for the board type configuration in board type repository described in request call of being sampled according to the board type Table, using random sampling pattern, selection target board type, generation target board type instruct from the board type allocation list, or according to institute State specified board type request and determine target board type, the type instruction of generation target board;
Board sequence generation module, the memory space for being used for registration plate sequence is built for being instructed according to the target board type, and according to The two-dimensional dynamic data structure is searched according to the playing card logical value of random sampling, chained list knot is corresponded to from the playing card logical value A kind of pattern is selected in structure, the playing card logical value and the pattern accordingly sampled association are inserted into the memory space, formed Board sequence structure of arrays;And
Board sequence output module, for reading the memory space, and by the board ordinal number group structure output.
In one of the embodiments, the system also includes:Repository test interface, for receiving adjust instruction, and The probability interval according to corresponding to adjust instruction adjusts various board types in each board type allocation list in the board type repository.
In one of the embodiments, the board type decimation blocks include:
Allocation list call unit, for corresponding board type in the board type repository according to board type sampling request call Allocation list;
Random sampling unit, for one integer of generation, generation sampling instruction to be described pre- at random from default sample space If sample space includes the probability interval in the board type allocation list;
Searching unit, for receiving the sampling instruction, the board type allocation list being called according to the integer searching, by institute State board type corresponding to the probability interval that integer is fallen into and be defined as target board type;And
Board type generation unit, for the target board type to be generated into the instruction of target board type according to communications protocol form, or Target board type is determined according to the specified board type request, generates the instruction of target board type according to communications protocol form, and transmit to institute State board sequence generation module.
In one of the embodiments, the board sequence generation module includes:
Board type input interface, for receiving the target board type instruction from the board type decimation blocks;
Memory space generation unit, for instructing structure memory space according to the target board type;
Playing card logical value generation unit, for the random sampling one from all playing card logical values of required board heap or The multiple playing card logical values of person, and sequentially it is filled into the memory space;
Playing card pattern generation unit, one or more of playing card logical values for being obtained according to sampling are searched The two-dimensional dynamic data structure, each playing card logical value is taken to correspond to last a kind of or the first flower in list structure Color, and the corresponding playing card logical value that the suit information connective marker is given in the memory space, so as to empty in the storage Between the middle board sequence structure of arrays for forming association board type, playing card logical value and pattern.
Based on the data handling system of above-mentioned playing card board type sequence, present invention also offers a kind of playing card board sequence sequence Data processing equipment, it includes:
The data handling system of above-mentioned playing card board type sequence;
Command reception interface, specify signal and/or board type to specify signal for receiving the game type that user provides, and solve Analysis generation snipsnapsnorum species beacon information, board type combination information and/or game role hand in game role hands Number information in board;And
Complete board sequence output interface, for according to the snipsnapsnorum species beacon information, board type combination information And/or the playing card board type sequence data processing system is repeatedly called in the number information in the game role hands, generation The request of specified board type and/or the sampling request of board type, and receive the board ordinal number group knot from the board sequence output module in order Structure, until obtaining the complete hands number for meeting number information in the board type combination information or the game role hands According to.
Based on the data handling system of above-mentioned playing card board type sequence, present invention also offers a kind of playing card board type sequence Data processing method, it includes:
Receive the request of the specified board type containing snipsnapsnorum species beacon information winning type kind of information or board type is taken out Sample is asked;
The playing card logical value and suit information of board heap needed for associated record snipsnapsnorum, generate two-dimensional dynamic data knot Structure;
A board type allocation list in the board type repository pre-established according to board type sampling request call, the board type Repository is used for the board type allocation list for recording Attribute Association between various board types and probability interval at least one snipsnapsnorum, Using random sampling pattern from the board type allocation list selection target board type, or according to the board in the specified board type request Type kind of information determines target board type;
Memory space for registration plate sequence is built according to the target board type, the playing card logical value according to random sampling The two-dimensional dynamic data structure is searched, is corresponded to from the playing card logical value and a kind of pattern is selected in list structure, by described in The memory space is inserted in playing card logical value and the pattern association accordingly sampled, and forms board sequence structure of arrays;
Read the memory space, and by the board ordinal number group structure output.
In one of the embodiments, the playing card logical value lookup two dimension in methods described according to random sampling is dynamic State data structure simultaneously corresponds to the step of a kind of pattern is selected in list structure from the playing card logical value and included:
One or more playing card logical value of random sampling from all playing card logical values of required board heap, and sequentially It is filled into the memory space;
The one or more of playing card logical values obtained according to sampling search the two-dimensional dynamic data structure, sentence Whether suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure of breaking is empty, if so, then returning to board The information of type failed regeneration, redefine sampling playing card logical value;
If it is not, then take the playing card logical value to correspond to last a kind of pattern or the first pattern in list structure, It is defined as target pattern, while the target pattern and corresponding playing card logical value is deleted from the two-dimensional dynamic data structure Associated nodes.
In one of the embodiments, the random sampling pattern of target board type includes in methods described:
One integer of generation, generation sampling instruction, the default sample space include institute at random from default sample space State the probability interval in board type allocation list;
The sampling instruction is received, the board type allocation list being called according to the integer searching, the integer is fallen into Board type corresponding to probability interval 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 playing card board sequence sequence Data processing method, it includes:
Receiving the game type that user provides specifies signal and/or board type to specify signal, and parses generation snipsnapsnorum Number information in board type combination information and/or game role hands in species beacon information, game role hands;
According to the snipsnapsnorum species beacon information, board type combination information and/or the game role hands In number information, generate repeatedly specified board type request and/or the sampling request of board type;
Procedure below is performed a plurality of times according to the specified board type request and/or the sampling request of board type:
Receive the specified board type request or the sampling request of board type;
The playing card logical value and suit information of board heap needed for associated record snipsnapsnorum, generate two-dimensional dynamic data knot Structure;
A board type allocation list in the board type repository pre-set according to board type sampling request call, the board type Repository is used for the board type allocation list for recording Attribute Association between various board types and probability interval at least one snipsnapsnorum, Using random sampling pattern from the board type allocation list selection target board type, or according to the board in the specified board type request Type kind of information determines target board type;
Memory space for registration plate sequence is built according to the target board type, and according to the playing card logic of random sampling Value searches the two-dimensional dynamic data structure, and a kind of pattern is selected from list structure corresponding to the playing card logical value, will The memory space is inserted in the playing card logical value and the pattern association accordingly sampled, and forms board sequence structure of arrays;
Read the memory space, and by the board ordinal number group structure output;
Judge whether to have obtained and meet the complete of the board type combination information or the game role hands number information One card hand data, if so, then game role hands data are sequentially generated according to multiple board ordinal number group structure output, if it is not, then Continue executing with the specified board type request or the sampling request of board type.
In one of the embodiments, the playing card logical value lookup two dimension in methods described according to random sampling is dynamic State data structure simultaneously corresponds to the step of a kind of pattern is selected in list structure from the playing card logical value and included:
One or more playing card logical value of random sampling from all playing card logical values of required board heap, and sequentially It is filled into the memory space;
The one or more of playing card logical values obtained according to sampling search the two-dimensional dynamic data structure, sentence Whether suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure of breaking is empty, if so, then returning to board The information of type failed regeneration, redefine sampling playing card logical value;
If it is not, then taking the playing card logical value to correspond to last a kind of or the first pattern in list structure, it is defined as Target pattern, while that deletes from the two-dimensional dynamic data structure target pattern and corresponding playing card logical value associates section Point.
In one of the embodiments, the two-dimensional dynamic data structure is searched in methods described and obtains random sampling pattern The step of also include:Judge whether to need complete board heap, if so, then when returning to board type failed regeneration information, will be from board heap The associated nodes of deletion save temporarily, or after the associated nodes are deleted, and will preserve temporarily from board heap The associated nodes of deletion are put into board heap relevant position;If it is not, then associated nodes node is put into after the associated nodes are deleted In user's hands, or when returning to board type failed regeneration information, sampling playing card logical value is directly redefined.
Data handling system and method and its playing card board sequence the sequence data processing of a kind of above-mentioned playing card board type sequence Devices and methods therefor, it is based on random sampling pattern, integrate various game board type rule, form one it is versatile, can Autgmentability and convenient and practical technology, it not only can be seamless with current existing electronic game board sequence generation method and system Linking, realization provide the user complete game hands and arbitrarily control the probability that drops of specific board type, can also be special in test Determine board type drop probability when reduce testing cost, the step of simplifying tester.The present invention can also utilize computer program real Now specific board sequence in snipsnapsnorum is dropped the adjustment of probability, and there is extensive versatility, it can be by configuring Repository test interface, configures the related board type allocation list of different snipsnapsnorums, and board type here is referred to as in fighting landlord Antithetical phrase, along son, bomb etc., and board type correspondence can also be freely allocated by repository test interface during test Probability interval size, so as to realize arbitrarily regulation and test snipsnapsnorum in specific board type the probability that drops.It is and above-mentioned The data handling system and method for a kind of playing card board type sequence can be loaded into any a snipsnapsnorum, by independent The mode of calling is in connection, so as to control the probability that drops of specific board type, and can also realize in test process, pass through Input the probability that drops that board type is specified in the test of board type kind of information.In testing requirement, by tester by configuring library test Interface specifies the board type for needing to test;In order to improve in the demand of special board type probability, then by server according to product personnel The probability of offer automatically generates required board type.
Brief description of the drawings
Fig. 1 is the data processing of the data handling system and its playing card board sequence sequence of the playing card board type sequence of the present invention The structural representation of device;
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 the data processing method of playing card board type sequence;
Fig. 4 is a kind of schematic flow sheet of the data processing method of playing card board sequence sequence;
Fig. 5 is an optimum embodiment of Fig. 4 methods;
Fig. 6 be Fig. 4 in step 10 it is a kind of in the case of embodiment flow chart;
Fig. 7 is the embodiment flow chart in another case of step 10 in Fig. 4;
Fig. 8 be Fig. 4 in step 10 another in the case of embodiment flow chart.
Embodiment
Based on the probability problem that drops that specific board type in electronic playing card game in the prior art, can not be uniformly controlled, sheet Invention provides a kind of data handling system and its data processing method of playing card board type sequence.Below with reference to accompanying drawing and reality Apply example and describe technical scheme in detail.
As shown in figure 1, present embodiments providing a kind of data handling system of playing card board type sequence, it includes:
External command receiving module 600, contain snipsnapsnorum species beacon information winning type kind of information for receiving The request of specified board type or the sampling request of board type, board type here refers to antithetical phrase in such as fighting landlord, along son, bomb Deng;
Model building module 101, for pre-establishing a board type repository 100, record at least one snipsnapsnorum The board type allocation list of Attribute Association between various board types and probability interval;
Model construction module 401, for generating two-dimensional dynamic data structure 400, to associated record snipsnapsnorum institute The playing card logical value and suit information of board heap are needed, two-dimensional dynamic data structure 400 here is that Hash table and one is applied in combination Dynamic link table is tieed up to store board heapinfo, board heap here refers to participate in snipsnapsnorum after selecting snipsnapsnorum species All playing card, such as, if snipsnapsnorum is 13, required board heap is then 52 playing card in addition to big Xiao Wang Board;
Board type decimation blocks 200, for the board in board type repository 100 described in request call of being sampled according to the board type Type allocation list, using random sampling pattern, selection target board type, generation target board type instruct from the board type allocation list, or Target board type, the type instruction of generation target board are determined according to the specified board type request;
Board sequence generation module 500, for being used for the memory space of registration plate sequence according to target board type instruction structure, and Playing card logical value according to random sampling searches the two-dimensional dynamic data structure, and chained list is corresponded to from the playing card logical value A kind of pattern is selected in structure, the playing card logical value and the pattern accordingly sampled association are inserted into the memory space, shape Into board sequence structure of arrays;Here be can contemplate when carrying out pattern sampling by the way of random sampling from playing card logical value pair Selected in the suit information answered, or directly determine a kind of last or the first pattern as target pattern;And
Board sequence output module 700, for reading the memory space, and by the board ordinal number group structure output, to shape Into the board ordinal number evidence corresponding to above-mentioned target board type.
In the present embodiment, the board type by integrating various snipsnapsnorums sets rule and the probability that drops is established board type and configured Storehouse 100, and the pattern of corresponding board type is selected based on the two-dimensional dynamic data structure 400 that ad hoc rules is set, it is achieved thereby that Unified management to the probability that drops of specific board type in electronic playing card game, it is easy to implement and probability is dropped more to corresponding board type New and adjustment.
Based on above-described embodiment, as shown in figure 1, system architecture can also include in the present embodiment:Repository test interface 300, for receiving adjust instruction, and according to various boards in each board type allocation list in the adjust instruction adjustment board type repository Probability interval corresponding to type.
Board type kind of information in above-described embodiment is included according to the playing card selected in snipsnapsnorum species beacon information Board game type and the number information in the board type combination information or game role hands that obtain.Above-mentioned specified board type request The board type combination information that is obtained for the snipsnapsnorum species specified according to user calls board type repository;It is above-mentioned The sampling request of board type is used for the snipsnapsnorum species specified according to user and sends and carry out random sampling board using said system The solicited message of type.
Multiple board type allocation lists can be included in board type repository 100 as shown in Figure 1, each board type allocation list is corresponding A kind of snipsnapsnorum, such as the first board type allocation list correspond to fighting landlord game, and it records antithetical phrase, along board types pair such as son, bombs The probability interval answered, corresponding 13 game of the second board type allocation list, it records the board types pair such as straight flush, bomb, cucurbit, color The probability interval answered, recorded by different board type allocation lists corresponding to board type unit minimum in different snipsnapsnorums Probability interval, probability interval here are derived from the default sample space of stochastical sampling, if it is 10000 to preset sample space, then Probability interval can be as shown in the table in 1 to 10000 any range of choice.
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
Straight flush Bomb Cucurbit Color
[1,1000] (1000,3000] (3000,4000] (4000,10000]
The repository test interface set by system arbitrarily can be set and corrected in above-mentioned table corresponding to various board types Probability interval, or reset the size of default sample space.When carrying out the selection of board type, can use by being adopted default An integer is arbitrarily selected between sample space such as 1 to 10000, the probability interval where the integer is then judged, searches above-mentioned board Type allocation list, it is determined that corresponding board type, so corresponding board type can be changed by probability interval corresponding to adjusting corresponding board type Drop probability.
The playing card logical value and pattern of board heap needed for the above-mentioned associated record snipsnapsnorum of two-dimensional dynamic data structure 400 Information, as shown in Fig. 2 each time by board heap is put into two-dimensional dynamic data structure 400 needed for game when, by each logical value Corresponding pattern is randomly ordered, then when the playing card logical value obtained every time according to sampling searches two-dimensional dynamic data structure, Only need to take last a kind of or the first pattern in the list structure corresponding to it, and deleted after corresponding pattern is obtained every time Except the respective nodes in list structure, avoid realizing with the same sheet playing card for occurring more than two during a board sequence generation. This principle by it is following on the explanation of board sequence generation module 500 in illustrate describe in detail.
As shown in figure 1, said external command reception module 600 is additionally operable to be taken out according to the specified board type request or board type Sample is asked, and updates the two-dimensional dynamic data structure 400, the board heap needed for snipsnapsnorum is put into two-dimensional dynamic data structure 400, pattern corresponding to each playing card logical value is randomly ordered.
As shown in figure 1, in one of the embodiments, above-mentioned board type decimation blocks 200 can include:
Allocation list call unit 201, for corresponding in the board type repository according to board type sampling request call Board type allocation list;
Random sampling unit 202, for generating an integer, generation sampling instruction, institute at random from default sample space State default sample space and include the probability interval in the board type allocation list;
Searching unit 203, instructed for receiving the sampling, the board type allocation list being called according to the integer searching, Board type corresponding to the probability interval that the integer is fallen into is defined as target board type;And
Board type generation unit 204, for the target board type to be generated into the instruction of target board type according to communications protocol form, or Person determines target board type according to the specified board type request, and the instruction of target board type is generated according to communications protocol form, and transmit to The board sequence generation module.The instruction of goal board type is primarily referred to as the command signal for including specific board type information, is easy to Board sequence generation module 500 knows the board type board sequence that its needs is built.
As shown in figure 1, in one of the embodiments, above-mentioned board sequence generation module 500 can include:
Board type input interface 501, for receiving the target board type instruction from the board type decimation blocks;
Memory space generation unit 502, for instructing structure memory space according to the target board type, the memory space can One or more dimensions structure of arrays is built to use, or stacked manner, and the board sequence information of board type and corresponding board type is associated, than Such as, if representing request generation " antithetical phrase " when target board type instructs, memory space generation unit 502 can be then generated for recording two Open the dynamic structure of arrays of board information;
Playing card logical value generation unit 503, for the random sampling one from all playing card logical values of required board heap Individual or multiple playing card logical values, and the memory space is sequentially filled into, " all playing card logical values " described here Refer to, if snipsnapsnorum is 13, required board heap is then 52 sheet playing cards in addition to big Xiao Wang, then all to flutter Gram board logical value refer to A, 2,3 ..., 13 playing card logical values of K;
Playing card pattern generation unit 504, for the one or more of playing card logical values obtained according to sampling Search the two-dimensional dynamic data structure, take each playing card logical value correspond to last a kind of in list structure or the first Pattern, and the corresponding playing card logical value that the suit information connective marker is given in the memory space, so as in the storage The board sequence structure of arrays of association board type, playing card logical value and pattern is formed in space.
In above-described embodiment, if as shown in Fig. 2 game selection 13, in two-dimensional dynamic data structure from 1 to 13 row First row record respectively A, 2,3 ..., 13 playing card logical values of K, then corresponding 1st row " 1 " is corresponding " ox01 " " ox11 " " ox21 " " ox31 " is randomly assigned to four kinds of patterns respectively, for example " ox01 " represents square piece A, and " ox11 " represents plum blossom A, " ox21 " represents spade A, and " ox31 " represents heart A, in addition, required board heap is put into two-dimensional dynamic data structure each time When, pattern corresponding to playing card logical value is all by random alignment, that is to say, that the flower that the 2nd row, the 3rd row etc. are stored thereafter The difference that color information all represents with the 1st row, such as the 2nd row " 2 " corresponding " ox02 " " ox12 " " ox22 " " ox32 " represent respectively Square piece 2, plum blossom 2, heart 2, spade 2;……;By that analogy, the 13rd row " 13 " 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 is given birth to according to board type Into playing card logic value, for example, in fighting landlord the suitable sub- board type that 5 boards are formed selection, it is first according to the rule of fighting landlord A value first is selected as along the numerical value son, such as result since 3-10 logical values at random and obtains 5, then forms the complete of board type Portion's playing card logical value includes 5,6,7,8,9;Then according to two-dimensional dynamic data structure, select successively corresponding to each logical value Pattern, if in required 5 logical values some numerical value correspond to pattern chained list for sky, then it represents that this logic is not present in board heap Value, failed regeneration;Otherwise, will be according to " 5,6,7,8,9 " search the list structure in Fig. 2, select each playing card logical value Last a kind of or the first pattern in corresponding list structure, the board sequence generation board sequence structure of arrays of generation is obtained, to be put into In user's hand, while in order to avoid duplicating playing card with when once playing and generating complete board sequence, then corresponding board type is being generated Board sequence after flower is deleted corresponding to the playing card logical value selected from the board heap of two-dimensional dynamic data structure corresponding record Color node.It is illustrated below, such as, when with a board sequence generation, playing card are selected according to user instruction according to the method described above Pattern corresponding to board logical value 5, it is respectively corresponding to " 5 " in the two-dimensional dynamic data structure shown in Fig. 2:It is square piece, plum blossom, red Peach, spade, then, from the first selection it is " square piece " when selecting pattern corresponding to " 5 " for the first time, and empties in list structure Node, i.e., is respectively corresponding to " 5 " in two-dimensional dynamic data structure:Sky, plum blossom, heart, spade, and ought need to select for the second time When selecting pattern corresponding to playing card logical value " 5 ", from the selection of the first pattern just can only when " plum blossom ", and empty in list structure Node, i.e., is respectively corresponding to " 5 " in two-dimensional dynamic data structure:Sky, sky, heart, spade, by that analogy, until playing card Suit information corresponding to board logical value " 5 " all empties, then selects just to select again during playing card logical value further according to board type Logical value 5 is selected, and other logic values should be screened from playing card logical value again again.
According to above-described embodiment, situation about being duplicated when being sampled in order to avoid pattern, above-mentioned playing card pattern generation list Member 504 can also include with lower unit when search above-mentioned two-dimensional dynamic data structure:
The two-dimentional dynamic number is searched for performing the one or more of playing card logical values obtained according to sampling According to the unit of structure;
For performing whether judge suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure For the unit of sky;
It is space-time for the suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure, returns The information of board type failed regeneration, redefine the unit of sampling playing card logical value;And
It is not space-time for the suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure, takes The playing card logical value corresponds to last a kind of or the first pattern in list structure, is defined as target pattern, while from institute State the unit for the associated nodes that the target pattern and corresponding playing card logical value are deleted in two-dimensional dynamic data structure.
Based on said system and its each embodiment, as shown in figure 3, the present embodiment additionally provides a kind of playing card board type sequence The data processing method of row, it includes:
Step 31:Receive containing snipsnapsnorum species beacon information winning type kind of information specified board type request or The sampling request of board type;
Step 32:The playing card logical value and suit information of board heap needed for associated record snipsnapsnorum, it is dynamic to generate two dimension State data structure;Here the building mode of two-dimensional dynamic data structure is not tired herein to state referring to above-mentioned related description.
Step 33:A board type allocation list in the board type repository pre-established according to board type sampling request call, The board type repository is used for the board for recording Attribute Association between various board types and probability interval at least one snipsnapsnorum Type allocation list, using random sampling pattern from the board type allocation list selection target board type, or according to the specified board type Board type kind of information in request determines target board type;Here the probability interval of board type allocation list can be by setting repository to survey Mouth 300 of trying is adjusted or updated to it, and corresponding board type is adjusted when there is adjustment particular probability demand each time so as to realize Probability of occurrence.
Step 34:Memory space for registration plate sequence is built according to the target board type, the playing card according to random sampling Board logical value searches the two-dimensional dynamic data structure, is corresponded to from the playing card logical value and a kind of flower is selected in list structure Color, the playing card logical value and the pattern accordingly sampled association are inserted into the memory space, form board sequence structure of arrays;
Step 35:The memory space is read, by the board ordinal number group structure output, corresponds to the target to be formed The board ordinal number evidence of board type.
Method in above-described embodiment mainly collects note according to the request of specified board type or the sampling request of board type to call The board type repository and two-dimensional dynamic data structure of various playing card types and the probability that drops are recorded, to realize to single board type board sequence Generation, it is easy in the original complete board sequence generation system and method for follow-up seamless connection, realizes and repeatedly call the above method real The classification generation of existing complete decks sequence.When need debug or test related board type drop probability when, in the above method in step 31 Also include before:One repository test interface is provided, receives the adjust instruction from repository test interface, is referred to according to the adjustment Probability interval corresponding to various board types in each board type allocation list, board type is utilized so as to change in the order adjustment board type repository Allocation list carries out the probability that drops of specific board type during random sampling.
As shown in figure 3, in one of embodiment of the present invention, step 34 specifically includes following step in the above method Suddenly, and step 343 to 346 is to complete to search the step of two-dimensional dynamic data structure obtains random sampling pattern, institute specific as follows Show:
Step 341:Memory space for registration plate sequence is built according to the target board type, memory space here can be with Using structure one or more dimensions structure of arrays, or stacked manner;
Step 342:According to the random sampling one from all playing card logical values of required board heap of board type winning type rule Or multiple playing card logical values;Here board type rule refers to the playing card number that should contain for board type, such as such as Fruit board type refers to antithetical phrase, then board type rule just refers to include two boards, then the memory space built according to target board type should be used In the array space for recording two board information.
Step 343:The one or more playing card logical values obtained according to sampling search the two-dimensional dynamic data structure;
Step 344:Whether judge suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure For sky, if so, then performing step 346:The information of board type failed regeneration is returned, step 342 is returned to and determines sampling playing card Logical value;
If it is not, then perform step 345:Take the playing card logical value correspond to last a kind of pattern in list structure or The first pattern, it is defined as target pattern, while the target pattern is deleted with accordingly flutterring from the two-dimensional dynamic data structure The associated nodes of gram board logical value.
The random sampling pattern of target board type comprises the following steps in above-mentioned steps 33:Given birth at random from default sample space Into an integer, generation sampling instruction, the default sample space includes the probability interval in the board type allocation list;Reception is taken out Sample instructs, the board type allocation list being called according to the integer searching, board type corresponding to the probability interval that the integer is fallen into It is defined as target board type.Specifically it is appreciated that as follows:Above-mentioned target board type can be by tester backstage according to real needs Specify or generated using the method for simulation random sampling according to specified probability.When needing to be generated according to probability, specify first The limited nature number interval of one determination, a natural number in one section of generation of computer random, because computer is pseudo- The generation feature of random number, each elementary event for producing these numbers may be considered equally likely possibility, meet classical probability Scheme, therefore can be according to the number specific needs probability comprising elementary event.In the present embodiment, to simulate random sampling Section where single elementary event caused by mode determines that target board type, such as default sample space are set to 10000, by 10000 Be divided into respective bins, for example, with [1,1000] and (1000,10000] section represents the probability interval of corresponding board type, meter every time Calculation machine can all randomly generate the integer between a 1-10000, referred to as an elementary event, according to caused specific integer institute Section, determine target board type.
Above embodiments describe it is a kind of can arbitrarily adjust single board type drop probability board type board ordinal number according to processing system System and its data processing method, the system can build software application layer on server or terminal hardware, and And board type board sequence generation system generates primarily directed to the board sequence of single board type, such as only by once calling the system random Generate an antithetical phrase board sequence, either one five along son board sequences or a bomb board sequence, and hence it is also possible to by its In the generating means of the embedded original role's hands board sequence entirely played for complete decks of link, so as to form a kind of new flutter The data processing equipment of gram board board sequence sequence, to by repeatedly call board type board sequence generate system and its data processing method and The complete hands board sequence of game role is generated in real snipsnapsnorum generally used now, so as to reach unified management and adjust specific Board type drops the purpose of probability, and can also reduce testing cost in the test process that specific board type drops probability is tested, Simplify testing procedure.
As shown in figure 1, a kind of board sequence sequence data processing unit that can provide the complete hands of game user role includes:
The data handling system of playing card board type sequence described in above-mentioned each embodiment, its concrete structure as shown in figure 1, The parsing of corresponding construction does not make tired state herein referring to above-mentioned each section explanation;
Command reception interface 800, signal and/or board type is specified to specify signal for receiving the game type that user provides, And parse generation snipsnapsnorum species beacon information, the board type combination information in game role hands and/or game angle Number information in color hands;
Complete board sequence output interface 900, for according to the snipsnapsnorum species beacon information, board type combination letter Above-mentioned playing card board type sequence data processing system is repeatedly called in number information in breath and/or the game role hands, generation The request of specified board type and/or the sampling request of board type of system, and the board ordinal number group from the board sequence output module is received in order Structure, until obtaining the complete hands number for meeting number information in the board type combination information or the game role hands According to.
Have in the above and refer to that the specified request of board type or the sampling of board type request includes flutterring according to what user specified respectively Gram board game type and the board type kind of information obtained or the demand sent carry out random sampling board type according to said system Solicited message.Usual user can be clicked on when carrying out snipsnapsnorum selection by mouse gives a game type selection letter Breath, snipsnapsnorum species beacon information is produced so as to which above-mentioned command reception interface 800 can correspond to, to be supplied to computer such as What any board type allocation list of selection;And corresponding board type combination side can be automatically generated after the determination of playing card species simultaneously Number information in formula information or game role hands, include two kinds of implementations here in fact:
The first, outside the data handling system independently of the playing card board type sequence described in above-mentioned each embodiment Method generation board type combination information, this may refer to the mode of above-mentioned random sampling board type to determine board type combination Information.Such as if game type selection information represents that user have selected three people's fighting landlords game, then according to three people's fighting landlords Rule be exactly to stay three cards in one's hand, everyone divides 17, then board type combination information can be a bomb (4), one it is suitable Sub (5), a king (1), 7 individual, then the specified board type request bag of generation contains:One bomb (4), one it is suitable Sub (5), a king (1), 7 individual board type demands, it is respectively necessary for 10 above-mentioned playing card board type sequences of calling Data handling system, if 7 individual can be a kind of board type, can be reduced to call 4 above-mentioned playing card board type sequences Data handling system.Certainly board type combination information here can form the board of complete game role hands data The a certain or several board type that type combination or user specify.It can be realized under this mode in order to test system The demand tested specific board type probability, naturally it is also possible to be embedded in the data handling system of above-mentioned playing card board type sequence Into the dependent game playing card board sequence generating means of early development so that board sequence generating means can be that user brings more need Experience is asked, the selection of target board type can be carried out according to the board type that user specifies, can also be determined at random according to remaining board number Board type board sequence.
Second, the game type information selected according to user, the game angle that game role should be distributed can be known Color hands number information.For example if three people's fighting landlords are played, then game role needs 17 sheet playing cards, then can pass through Complete board sequence output interface 900 generates the board type sampling request for repeatedly calling above-mentioned playing card board type sequence data processing system, When calling above-mentioned playing card board type sequence data processing system each time, all random sampling obtains target board type, and generation is corresponding Board sequence, until obtaining the complete hands data for meeting number information in the game role hands.
Above-mentioned complete board sequence output interface 900 can include following unit:
Generation unit is asked, in the board type combination information and/or the game role hands Number information, generate repeatedly specified board type request and/or the sampling request of board type;
Call unit, for repeatedly calling above-mentioned playing card board according to above-mentioned specified board type request or the sampling request of board type Type sequence data processing system;
Judging unit, meet the board type combination information or the game role hands for judging whether to have obtained The complete hands data of number information, if so, being then sequentially generated game role hands according to multiple board ordinal number group structure output Data, on the contrary continue through above-mentioned call unit and perform the specified board type request or the sampling request of board type.
Based on the data processing equipment of above-mentioned playing card board sequence sequence, flutterred as shown in figure 4, the present embodiment additionally provides one kind The data processing method of gram board board sequence sequence, its method include:
Step 10:Receiving the game type that user provides specifies signal and/or board type to specify signal, and parses generation playing card Number is believed in board type combination information and/or game role hands in board game type beacon information, game role hands Breath;
Step 20:According to the snipsnapsnorum species beacon information, board type combination information and/or the game angle Number information in color hands, generate repeatedly specified board type request and/or the sampling request of board type;
Step 30:Following step 31 is repeatedly called or performs according to above-mentioned specified board type request and/or board type sampling request To 35.
Step 31:Receive the specified board type request or the sampling request of board type;
Step 32:The playing card logical value and suit information of board heap needed for associated record snipsnapsnorum, it is dynamic to generate two dimension State data structure;
Step 33:A board type allocation list in the board type repository pre-established according to board type sampling request call, The board type repository is used for the board for recording Attribute Association between various board types and probability interval at least one snipsnapsnorum Type allocation list, using random sampling pattern from the board type allocation list selection target board type, or according to the specified board type Board type kind of information in request determines target board type;
Step 34:Memory space for registration plate sequence, and flutterring according to random sampling are built according to the target board type Gram board logical value searches the two-dimensional dynamic data structure, correspond to from the playing card logical value selected in list structure it is a kind of colored Color, the playing card logical value and the pattern accordingly sampled association are inserted into the memory space, form board sequence structure of arrays;
Step 35:The memory space is read, by the board ordinal number group structure output;
Step 40:Judge whether to have obtained and meet the board type combination information or game role hands number letter The complete hands data of breath, if so, then performing step 50:Game role is sequentially generated according to multiple board ordinal number group structure output Hands data, if it is not, then performing step 60:Continue executing with the specified board type request or the sampling request of board type.
In above-mentioned steps 34 Fig. 3 is participated on searching the step of above-mentioned two-dimensional dynamic data structure obtains random sampling pattern In step 34 fine division step, do not make herein it is tired state it is bright.The two-dimensional dynamic data structure of step 32 can be with the above method Update in the following ways:According to the specified board type request or the sampling request of board type, the two-dimensional dynamic data knot is updated Structure, the board heap needed for snipsnapsnorum is put into the two-dimensional dynamic data structure, pattern corresponding to each playing card logical value It 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:The memory space for registration plate sequence is built according to the target board type;
Step 342:According to board type winning type regular random sampling playing card logical value;
Step 343:The playing card logical value obtained according to sampling searches the two-dimensional dynamic data structure;
Step 344:Whether judge suit information corresponding to playing card logical value described in the two-dimensional dynamic data structure For sky, if so, then performing step 346:Pattern chained list is sky, indicates required logical value and is all allocated away, can not Continue to distribute, board type failed regeneration, empty user hands data, redefine sampling playing card logical value;
If it is not, then perform step 345:Take the playing card logical value correspond to last a kind of pattern in list structure or The first pattern, it is defined as target pattern, while the target pattern is deleted with accordingly flutterring from the two-dimensional dynamic data structure The associated nodes of gram board logical value.
Be performed both by after execution of step 346 and step 345 step 350 and step 347 judge whether to need it is complete The step of board heap.Step 347 is performed after step 345, if so, then performing step 348:The association section that will be deleted from board heap Point saves temporarily, to put back to associated nodes in board heap during failed regeneration;If otherwise perform step 349:Association is saved Point node is put into user's hands.
Step 350 is performed after execution of step 346, if then performing step 351:It will preserve temporarily from board The associated nodes deleted in heap are put into board heap relevant position, and perform step 352;If it is not, then directly perform step 352:Judge Whether regenerate, no is then to return to above-mentioned steps 342, if otherwise terminating the generation of this board type board sequence, generation terminates, and reads institute State the board sequence structure of arrays in memory space.
Increase the step such as step 350 and step 347 in Fig. 5 correlation step 34, its object is to:What bidge table was possessed Playing card not always all 54 sheet playing cards, it is possible to be to be processed the playing card for having lacked part playing card, then The board heap recorded in two-dimensional dynamic data structure may be imperfect;The logic value list of playing card can make to search conveniently Logical value and corresponding pattern list are preserved with array;Playing card may use whole playing card because the difference of rule (such as fighting landlord), it is also possible to simply with which part playing card (such as holdem), during board type is generated, be then Raising efficiency, the node deleted from board heap can not be preserved for the business for only using part playing card, and for needing The business of whole playing card, then need that the playing card deleted are placed again into board heap in failed regeneration.
Meet the board type combination information or institute as shown in figure 4, how to judge whether to have obtained in above-mentioned steps 40 The complete hands data mode for stating game role hands number information gives related embodiment explanation.Following examples can be based on Optimum embodiment extension 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 " receives what user provided Game type specifies signal and/or board type to specify signal, and parses generation snipsnapsnorum species beacon information, game role hand Number information in board type combination information and/or game role hands in board ", wherein, board type combination information is root The board type combination that may be constructed the complete hands data of game role formed according to the demand board type of user's input, then performing After step 35 output board sequence structure of arrays shown in complete Fig. 4 or Fig. 5, when performing step 40, judge whether to have obtained and meet The complete hands data of the board type combination information, if being then sequentially generated trip according to multiple board ordinal number group structure output Play role's hands data, otherwise, continue executing with the specified board type request.Here by corresponding board type combination information Board type number multiple calling figure 5 in step 31 to 35, and by whether the board type combination information needed for meeting restrains Multiple invoked procedure.
Embodiment as shown in Figure 7, if board type combination information is part board type demand, it is necessary to logical in above-mentioned steps 10 When crossing the situation of the next composition complete hands data of game role in combination of other board types of random screening, such as, carrying out three people When fighting landlord is played, user is needed in the game hands of assignment comprising specific board types such as big Xiao Wang by especially experiencing, then Remaining 15 need to ask in multiple calling figure 4 or Fig. 5 step 31 to 35 come random sampling board type by setting the sampling of board type, So as to specifying step 31 to the 35 big small trump type board sequences of generation in board type request call Fig. 4 or Fig. 5 to merge by setting Generation is assigned to the complete hands data of game role.Then, as shown in fig. 7, performing the step 35 shown in Fig. 4 or Fig. 5 After exporting board sequence structure of arrays, the step 40 of execution is changed to:First, step 124 is performed:Judge whether to have obtained and meet institute The complete hands data of board type combination information are stated, if otherwise continuing executing with described specified board type request call Fig. 4 or Fig. 5 Step 31 is to 35;If so, then perform step 125:Judge whether to have obtained and meet the complete of the game role hands number information One card hand data, if otherwise continuing executing with the board type sampling request call Fig. 4 or Fig. 5 step 31 to 35;If then according to Multiple board ordinal number group structure output is sequentially generated game role hands data.Here by whether meeting the board type combination specified Role's hands number corresponding to mode information and game rule combines judgment mode to restrain step in multiple calling figure 4 or Fig. 5 31 to 35 process.
Embodiment as shown in Figure 8, if user does not input board type demand in above-mentioned steps 10, playing card can be only generated Number information in board game type beacon information and game role hands, and unlicensed type combination information, then as shown in figure 8, After process of the step 31 to 35 in multiple calling figure 4 or Fig. 5, when performing step 40:Judge whether to have been met The complete hands data of the game role hands number information, if otherwise continuing executing with described board type sampling request call Fig. 4 Or in Fig. 5 step 31 to 35;If then it is sequentially generated game role hands data according to multiple board ordinal number group structure output.This Embodiment is only by judging whether the game role hands data of generation meet role's hands number requirement as defined in game rule To restrain whole invoked procedure.
Based on above-mentioned each embodiment, the present embodiment can quickly generate the special board type specified, and disclosure satisfy that tester Testing requirement of the member for special board type.Meanwhile above-mentioned playing card board type board sequence data handling system and method are added into game When middle, also dynamic controls the probability of occurrence of special board type, is effectively increased the excitant of game.The configurability of the present embodiment By force, required board type can be specified by user, or according to configuration probability generation;The present embodiment can also carry out flexible extension And renewal.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of data handling system of playing card board type sequence, it is characterised in that the system includes:
External command receiving module, for receiving the specified board containing snipsnapsnorum species beacon information winning type kind of information Type is asked or the sampling request of board type;
Model building module, for pre-establishing a board type repository, record at least one snipsnapsnorum various board types with The board type allocation list of Attribute Association between probability interval;
Model construction module, for generating two-dimensional dynamic data structure, to flutterring for board heap needed for associated record snipsnapsnorum Gram board logical value and suit information;
Board type decimation blocks, for the board type allocation list sampled according to the board type described in request call in board type repository, Using random sampling pattern, selection target board type, generation target board type instruct from the board type allocation list, or according to described The request of board type is specified to determine target board type, the type instruction of generation target board;
Board sequence generation module, for according to the target board type instruction structure for registration plate sequence memory space, and according to The playing card logical value of machine sampling searches the two-dimensional dynamic data structure, is corresponded to from the playing card logical value in list structure A kind of pattern is selected, the playing card logical value and the pattern accordingly sampled association are inserted into the memory space, form board sequence Structure of arrays;And
Board sequence output module, for reading the memory space, and by the board ordinal number group structure output.
2. the data handling system of playing card board type sequence according to claim 1, it is characterised in that the system is also wrapped Include:Repository test interface, each board type in the board type repository is adjusted for receiving adjust instruction, and according to adjust instruction Probability interval corresponding to various board types in allocation list.
3. the data handling system of playing card board type sequence according to claim 1, it is characterised in that the board type sampling Module includes:
Allocation list call unit, for corresponding board type configuration in the board type repository according to board type sampling request call Table;
Random sampling unit, for generating an integer, generation sampling instruction, the default sample at random from default sample space This space includes the probability interval in the board type allocation list;
Searching unit, for receiving the sampling instruction, the board type allocation list being called according to the integer searching will be described whole Board type corresponding to the probability interval scolded is defined as target board type;And
Board type generation unit, for the target board type to be generated into the instruction of target board type, or foundation according to communications protocol form The specified board type request determines target board type, generates the instruction of target board type according to communications protocol form, and transmit to the board Sequence generation module.
4. the data handling system of playing card board type sequence according to claim 1, it is characterised in that the board sequence generation Module includes:
Board type input interface, for receiving the target board type instruction from the board type decimation blocks;
Memory space generation unit, for instructing structure memory space according to the target board type;
Playing card logical value generation unit, for the random sampling one or more from all playing card logical values of required board heap Individual playing card logical value, and sequentially it is filled into the memory space;
Playing card pattern generation unit, described in being searched according to the obtained one or more of playing card logical values of sampling Two-dimensional dynamic data structure, each playing card logical value is taken to correspond to last a kind of or the first pattern in list structure, and The corresponding playing card logical value that the suit information connective marker is given in the memory space, so as to the shape in the memory space Into the board sequence structure of arrays of association board type, playing card logical value and pattern.
5. a kind of data processing equipment of playing card board sequence sequence, it is characterised in that described device includes:
The data handling system of playing card board type sequence described in any one claim of Claims 1-4;
Command reception interface, specify signal and/or board type to specify signal for receiving the game type that user provides, and parse life Into in the board type combination information and/or game role hands in snipsnapsnorum species beacon information, game role hands Number information;And
Complete board sequence output interface, for according to the snipsnapsnorum species beacon information, board type combination information and/or Specifying for the playing card board type sequence data processing system is repeatedly called in number information in the game role hands, generation Board type is asked and/or the sampling request of board type, and receives the board sequence structure of arrays from the board sequence output module in order, until Obtain the complete hands data for meeting number information in the board type combination information or the game role hands.
A kind of 6. data of playing card board type sequence based on the playing card board type sequence data processing system described in claim 1 Processing method, it is characterised in that methods described includes:
Receive the specified board type request containing snipsnapsnorum species beacon information winning type kind of information or the sampling of board type please Ask;
The playing card logical value and suit information of board heap needed for associated record snipsnapsnorum, generate two-dimensional dynamic data structure;
A board type allocation list in the board type repository pre-established according to board type sampling request call, the board type configuration Storehouse is used for the board type allocation list for recording Attribute Association between various board types and probability interval at least one snipsnapsnorum, utilizes Random sampling pattern selection target board type from the board type allocation list, or according to the board type kind in the specified board type request Category information determines target board type;
Memory space for registration plate sequence is built according to the target board type, the playing card logical value according to random sampling is searched The two-dimensional dynamic data structure, corresponded to from the playing card logical value and a kind of pattern is selected in list structure, by the playing card The memory space is inserted in board logical value and the pattern association accordingly sampled, and forms board sequence structure of arrays;
Read the memory space, and by the board ordinal number group structure output.
7. the data processing method of playing card board type sequence according to claim 6, it is characterised in that in methods described according to The two-dimensional dynamic data structure is searched according to the playing card logical value of random sampling and corresponds to chained list from the playing card logical value The step of a kind of pattern is selected in structure includes:
One or more playing card logical value of random sampling from all playing card logical values of required board heap, and sequentially insert To the memory space;
The one or more of playing card logical values obtained according to sampling search the two-dimensional dynamic data structure, judge institute State whether suit information corresponding to playing card logical value described in two-dimensional dynamic data structure is empty, if so, then returning to the life of board type Into the information of failure, sampling playing card logical value is redefined;
If it is not, then take the playing card logical value to correspond to last a kind of pattern or the first pattern in list structure, it is determined that For target pattern, while delete from the two-dimensional dynamic data structure associating for the target pattern and corresponding playing card logical value Node.
8. the data processing method of playing card board type sequence according to claim 6, it is characterised in that mesh in methods described The random sampling pattern of label type includes:
One integer of generation, generation sampling instruction, the default sample space include the board at random from default sample space Probability interval in type allocation list;
Receive the sampling instruction, the board type allocation list being called according to the integer searching, the probability that the integer is fallen into Board type corresponding to section is defined as target board type.
A kind of 9. data processing method of playing card board sequence sequence based on claim 6, it is characterised in that methods described bag Include:
Receiving the game type that user provides specifies signal and/or board type to specify signal, and parses generation snipsnapsnorum species Number information in board type combination information and/or game role hands in beacon information, game role hands;
According in the snipsnapsnorum species beacon information, board type combination information and/or the game role hands Number information, generate repeatedly specified board type request and/or the sampling request of board type;
Procedure below is performed a plurality of times according to the specified board type request and/or the sampling request of board type:
Receive the specified board type request or the sampling request of board type;
The playing card logical value and suit information of board heap needed for associated record snipsnapsnorum, generate two-dimensional dynamic data structure;
A board type allocation list in the board type repository pre-set according to board type sampling request call, the board type configuration Storehouse is used for the board type allocation list for recording Attribute Association between various board types and probability interval at least one snipsnapsnorum, utilizes Random sampling pattern selection target board type from the board type allocation list, or according to the board type kind in the specified board type request Category information determines target board type;
Memory space for registration plate sequence is built according to the target board type, and looked into according to the playing card logical value of random sampling The two-dimensional dynamic data structure is looked for, a kind of pattern is selected from list structure corresponding to the playing card logical value, by described in The memory space is inserted in playing card logical value and the pattern association accordingly sampled, and forms board sequence structure of arrays;
Read the memory space, and by the board ordinal number group structure output;
Judge whether to have obtained the complete hand for meeting the board type combination information or the game role hands number information Board data, if so, then game role hands data are sequentially generated according to multiple board ordinal number group structure output, if it is not, then continuing Perform the specified board type request or the sampling request of board type.
10. the data processing method of playing card board sequence sequence according to claim 9, it is characterised in that in methods described Playing card logical value according to random sampling searches the two-dimensional dynamic data structure and corresponds to chain from the playing card logical value The step of selecting a kind of pattern in table structure includes:
One or more playing card logical value of random sampling from all playing card logical values of required board heap, and sequentially insert To the memory space;
The one or more of playing card logical values obtained according to sampling search the two-dimensional dynamic data structure, judge institute State whether suit information corresponding to playing card logical value described in two-dimensional dynamic data structure is empty, if so, then returning to the life of board type Into the information of failure, sampling playing card logical value is redefined;
If it is not, then taking the playing card logical value to correspond to last a kind of or the first pattern in list structure, it is defined as target Pattern, while delete from the two-dimensional dynamic data structure associated nodes of the target pattern and corresponding playing card logical value.
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 CN105447296A (en) 2016-03-30
CN105447296B true 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)

Families Citing this family (9)

* 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
CN109011567B (en) * 2018-08-07 2021-07-30 深圳市东方博雅科技有限公司 Equipment and system capable of enabling participants to play games
CN109739753A (en) * 2018-12-24 2019-05-10 网易(杭州)网络有限公司 Chess/card game test method, device, equipment and storage medium
CN112134912B (en) * 2019-06-25 2023-07-21 湖南云帆流量科技有限公司 Block chain-based distribution method and device
CN110443284B (en) * 2019-07-15 2022-04-05 超参数科技(深圳)有限公司 Artificial intelligence AI model training method, calling method, server and readable storage medium
CN110548277B (en) * 2019-09-29 2020-12-25 腾讯科技(深圳)有限公司 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
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

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7303398B2 (en) * 2004-10-14 2007-12-04 Susan Lynn Soto Educational game

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN105447296A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105447296B (en) Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence
US20060003823A1 (en) Dynamic player groups for interest management in multi-character virtual environments
CN106412277B (en) The loading method and device of virtual scene
CN104899040B (en) Game background program generation system and method
CN104133667B (en) Realize method, device and the artificial intelligence editing machine of artificial intelligence behavior
CN109413480A (en) Picture processing method, device, terminal and storage medium
KR20130028084A (en) Rendering control apparatus, control method thereof, recording medium, rendering server, and rendering system
CN101539968B (en) Go human-computer chess-playing system
CN105959177A (en) Game server stress test script generation method and device
CN109985389B (en) Cheating-preventing method and system for card games based on intelligent block chain contracts
CN108647145A (en) software memory safety detection method and system
CN104965695B (en) The method and apparatus of analog subscriber real-time operation
EP1754393A1 (en) Apparatuses and methods for use in creating an audio scene
CN109248440B (en) A kind of method and system for realizing the real-time dynamically load configuration of game
CN107122201A (en) Resource loading, the generation method of resource file and device
CN111786983A (en) Construction method of virtualized attack and defense confrontation environment
CN106844397A (en) Multiplexed transport method, apparatus and system based on point storehouse point table
CN107147730A (en) Game scene management method and scene management server
CN110070609A (en) Processing method, device, storage medium, processor and the terminal of terrain data
CN110289984A (en) A kind of network scenario emulation background traffic generates and management method and device
CN110058829A (en) A kind of image processing method, device and storage medium
CN106897281A (en) A kind of daily record sharding method and device
CN105957133B (en) A kind of method and apparatus for loading textures
CN107648854A (en) One kind game classification method, apparatus and electronic equipment
CN112860579B (en) Service testing method, device, storage medium and equipment

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