CN107909626A - Elimination series is poised for battle drawing generating method and device - Google Patents
Elimination series is poised for battle drawing generating method and device Download PDFInfo
- Publication number
- CN107909626A CN107909626A CN201711142201.5A CN201711142201A CN107909626A CN 107909626 A CN107909626 A CN 107909626A CN 201711142201 A CN201711142201 A CN 201711142201A CN 107909626 A CN107909626 A CN 107909626A
- Authority
- CN
- China
- Prior art keywords
- wheel
- match
- troop
- packet count
- wheel match
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
Abstract
The invention discloses a kind of elimination series to be poised for battle drawing generating method and device, and this method includes:For the i-th wheel match, compete for the i-th wheel, based on the packet count of the i-th 1 wheel matches, determine to participate in troop's number of the i-th wheel match, the initial value of i is 0, and there is no the 0th wheel to compete, and troop's number of the 1st wheel match is the troop's number initially taken in competition;According to the odd even attribute of troop's number of the i-th wheel match, the packet count that i-th wheel is competed is determined;If the packet count of the i-th wheel match is equal to default value, elimination series is generated to the system of battle formations according to the packet count of fixed each wheel match;If packet count of the i-th wheel match is more than above-mentioned default value, i=i+1 is made, return and perform the above-mentioned packet count competed based on the i-th 1 wheels, determine to participate in the i-th step for taking turns the troop's number competed, reduced with limitation, from the limitation of troop number, the advantages that strong applicability.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of elimination series to be poised for battle drawing generating method and device.
Background technology
With the development of athletics sports, the species of sports tournament is more and more, various race rules, race schedule etc.
Demand it is more and more, and complexity is increasing, in order to ensure that race is carried out in order, safeguards the contest of fair, just and open
Environment is, it is necessary to be effectively performed the orderly management of race concerns.
It is elimination series to have a kind of match rule in athletic competition, and each round of common elimination series is all 2 Nth power troop,
The 2 Nth power troops that so must all gather together enough when holding elimination series every time could realize that limitation is larger.
The content of the invention
It is a primary object of the present invention to provide a kind of elimination series to be poised for battle drawing generating method and device, it is intended to solve existing skill
Team participating in the contest's number is necessary for 2 Nth power, the big technical problem of existing limitation when elimination series is held in art.
To achieve the above object, a kind of elimination series of first aspect present invention offer is poised for battle drawing generating method, including:
For the i-th wheel match, based on the packet count of the i-th -1 wheel match, determine to participate in troop's number of the i-th wheel match, the i
Initial value be 0, and there is no the 0th wheel to compete, and troop's number of the 1st wheel match is troop's number for initially taking in competition;
According to the odd even attribute of troop's number of the described i-th wheel match, the packet count that i-th wheel is competed is determined;
If the packet count of the i-th wheel match is equal to default value, institute is generated according to the packet count of fixed each wheel match
Elimination series is stated to the system of battle formations;
If the packet count of the i-th wheel match is more than the default value, i=i+1 is made, is returned described in performing based on the i-th -1 wheel
The packet count of match, determines to participate in the step of troop's number of the i-th wheel match.
To achieve the above object, second aspect of the present invention provides a kind of elimination series to system of battle formations generating means, including:
First determining module, for competing for the i-th wheel, based on the packet count of the i-th -1 wheel match, determines to participate in i-th wheel
Troop's number of match, the initial value of the i is 0, and takes turns and compete there is no the 0th, and troop's number of the 1st wheel match initially to be taken in competition
Troop's number;
Second determining module, for the odd even attribute of troop's number according to the described i-th wheel match, determines the i-th wheel match
Packet count;
Generation module, if the packet count for the described i-th wheel match is equal to default value, according to fixed each wheel match
Packet count generates the elimination series to the system of battle formations;
Module is returned, if the packet count for the described i-th wheel match is more than the default value, i=i+1 is made, returns and perform institute
State the first determining module.
The present invention provides a kind of elimination series and is poised for battle drawing generating method, and this method includes:For the i-th wheel match, for the i-th wheel
Match, based on the packet count of the i-th -1 wheel match, determines to participate in troop's number of the i-th wheel match, the initial value of i is 0, and is not present
0th wheel match, troop's number of the 1st wheel match is the troop's number initially taken in competition;According to the odd even category of troop's number of the i-th wheel match
Property, determine the packet count that i-th wheel is competed;If the packet count of the i-th wheel match is equal to default value, according to fixed each
The packet count of wheel match generates elimination series to the system of battle formations;If the packet count of the i-th wheel match is more than above-mentioned default value, i=i+ is made
1, return and perform the above-mentioned packet count based on the i-th -1 wheel match, determine to participate in the step of troop's number of the i-th wheel match.Relative to
The prior art, by the packet count of last round of match, determines troop's number of this wheel match, and the troop's number competed is taken turns based on this
Odd even attribute, determines the packet count of this wheel match so that the troop's number no matter competed is odd number or even number, can be divided
Group, and finally obtain elimination series to the system of battle formations, be only capable of reducing for 2 Nth powers, limitation relative to troop's number in the prior art,
And from troop's number limitation, strong applicability.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those skilled in the art, without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is the flow diagram that elimination series is poised for battle drawing generating method in first embodiment of the invention;
Fig. 2 is the flow diagram that elimination series is poised for battle drawing generating method in second embodiment of the invention;
Schematic diagrames of the Fig. 3 for elimination series in the embodiment of the present invention to the present graphical of the system of battle formations;
Structure diagrams of the Fig. 4 for elimination series in third embodiment of the invention to the program module of system of battle formations generating means;
Structure diagrams of the Fig. 5 for elimination series in fourth embodiment of the invention to the program module of system of battle formations generating means.
Embodiment
Goal of the invention, feature, advantage to enable the present invention is more obvious and understandable, below in conjunction with the present invention
Attached drawing in embodiment, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art
Member's all other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Since team participating in the contest's number is necessary for 2 Nth power when holding elimination series in the prior art, existing limitation is big
Technical problem.
In order to solve the above-mentioned technical problem, the present invention proposes that elimination series is poised for battle drawing generating method, in the method, by upper
The packet count of one wheel match, determines troop's number of this wheel match, and the odd even attribute of troop's number based on this wheel match, determines this
Take turns match packet count so that the troop's number no matter competed is odd number or even number, can be grouped, and finally obtain it is naughty
Eliminate match to the system of battle formations, be only capable of reducing for 2 Nth powers, limitation relative to troop's number in the prior art, and from troop's number limit
System, strong applicability.
Referring to Fig. 1, it is poised for battle the flow diagram of drawing generating method for a kind of elimination series in first embodiment of the invention, should
Method includes:
Step 101, compete for the i-th wheel, based on the packet count of the i-th -1 wheel match, determines to participate in the troop of the i-th wheel match
Number, the initial value of the i is 0, and there is no the 0th wheel match, troop's number of the 1st wheel match is the troop's number initially taken in competition;
In embodiments of the present invention, above-mentioned elimination series is poised for battle drawing generating method by elimination series to system of battle formations generating means(Hereinafter referred to as
For:Generating means)Realize, which is made of program module, and is stored in the computer-readable recording medium of terminal,
Processor in the terminal can call the program module for being stored in the generation module readable storage medium storing program for executing Nei and operation, with reality
Existing above-mentioned elimination series is poised for battle drawing generating method.
Wherein, above-mentioned generation method is suitable for the elimination series of various athletics sports, before elimination series starts, can be based on
Above-mentioned elimination series is poised for battle drawing generating method and generates elimination series to the system of battle formations, it may be said that bright, which is only to wash in a pan to the system of battle formations
Eliminate the packet displaying of match, wherein and not comprising the group where actual each troop, but will be each by artificial or random manner
Troop is filled into corresponding present graphical., at this time can be definite each by will manually draw lots for example, for first round
Group, which is poised for battle in the present graphical for the packet count that troop is added to first round, to be shown, alternatively, can pass through random side
Multiple troops are grouped by formula, and are added in the present graphical of the packet count of first round and are shown.
For the i-th wheel match, the packet count that generating means will be competed based on the i-th -1 wheel, determines to participate in the i-th wheel match
Troop's number, wherein, the initial value of the i is 0, it is to be understood that since there is no the 0th wheel match, therefore, for the 1st wheel ratio
The troop's number initially taken in competition is determined as participating in troop's number of the 1st wheel match by match, generating means.For other wheels, such as the 5th wheel ratio
Match, then the packet count that generating means will be competed based on the 4th wheel, determines to participate in troop's number of the 5th wheel match.
It is understood that since packet refers to using Liang Ge troops as one group, and after one group of match, one will be obtained
Champion team 5, usually a failure troop, failure troop compete all without next round is entered, therefore, if the packet of the i-th wheel match
Number is N groups, then the troop's number for showing to participate in the match of i+1 wheel is N.That is, if the packet count of the 3rd wheel match is 10 groups, this 10
After group is competed respectively, 10 champion teams 5 will be obtained, there will be 10 troops to participate in the 4th wheel match.
The odd even attribute of step 102, the troop's number competed according to the described i-th wheel, determines the packet of the i-th wheel match
Number;Perform step 103 or perform step 104;
In embodiments of the present invention, after determining to participate in troop's number of the i-th wheel match, by the troop according to the i-th wheel match
Several odd even attributes, determines the packet count of the i-th wheel match.
Specifically:If i-th wheel match troop's number be odd number, by i-th wheel match troop's number add after 1 with divided by
2, obtain the packet count of the i-th wheel match;It is this such as if troop's number of the i-th wheel match is 5, shows to realize and is grouped two-by-two
In the case of, troop's number of the i-th wheel match is added 1, is 6, then the packet count that can obtain the match of the i-th wheel is 3 groups, it is possible to understand that
, in this case, in actual packet, will there is a troop to be individually for one group, which will be and straight without match
Tap into the packet into next round.Further, in order to more fair, which can be powerful team
5, either draw lots definite troop or the randomly selected troop of system.And when next round is grouped, and will ginseng
Add in the packet of next round.If it is above-mentioned i-th wheel match troop's number be even number, by this i-th wheel compete troop's number divided by
2, obtain the packet count of the i-th wheel match.
If step 103, the packet count of the i-th wheel match are equal to default value, according to fixed each wheel match
Packet count generates the elimination series to the system of battle formations;
If step 104, the packet count of the i-th wheel match are more than the default value, i=i+1 is made, returns and performs the step
Rapid 101.
In embodiments of the present invention, determine i-th wheel match packet count after, will be determined whether need to generate at this time it is naughty
Match is eliminated to the system of battle formations, that is, judges whether the packet count of the i-th wheel match is equal to default value, which can be 1, Huo Zhewei
2 or other pre-set numerical value.
If the packet count of the i-th wheel match is equal to default value, at this time, generating means will be according to fixed each wheel match
Packet count generate elimination series to the system of battle formations, if this i-th wheel match packet count be more than above-mentioned default value, demonstrate the need for carrying out
The match of next round, military order i=i+1, returns and performs above-mentioned steps 101 at this time.
In embodiments of the present invention, take turns and compete for i-th, compete for the i-th wheel, the packet count competed based on the i-th -1 wheel,
Determine to participate in the i-th troop's number for taking turns match, the initial value of i is 0, and there is no the 0th wheel match, troop's number that the 1st wheel is competed to be
The troop's number initially taken in competition;According to the odd even attribute of troop's number of the i-th wheel match, the packet count that i-th wheel is competed is determined;If
The packet count of the i-th wheel match is equal to default value, then is poised for battle according to the packet count generation elimination series of fixed each wheel match
Figure;If the packet count of the i-th wheel match is more than above-mentioned default value, i=i+1 is made, return execution is above-mentioned to be based on the i-th -1 wheel ratio
The packet count of match, determines to participate in the step of troop's number of the i-th wheel match.Relative to the prior art, pass through point of last round of match
Group number, determines troop's number of this wheel match, and the odd even attribute of troop's number based on this wheel match, determines the packet of this wheel match
Number so that the troop's number no matter competed is odd number or even number, can be grouped, and finally obtains being poised for battle for elimination series
Figure, is only capable of reducing for 2 Nth powers, limitation relative to troop's number in the prior art, and from troop's number limitation, strong applicability.
Based on first embodiment, referring to Fig. 2, being poised for battle the stream of drawing generating method for elimination series in second embodiment of the invention
Journey schematic diagram, including:
Step 201, compete for the i-th wheel, based on the packet count of the i-th -1 wheel match, determines to participate in the troop of the i-th wheel match
Number, the initial value of the i is 0, and there is no the 0th wheel match, troop's number of the 1st wheel match is the troop's number initially taken in competition;
The odd even attribute of step 202, the troop's number competed according to the described i-th wheel, determines the packet count of the i-th wheel match;Hold
Row step 203 performs step 205;
It is understood that above-mentioned steps 201 and step 202 respectively with the step 101 and step in first embodiment shown in Fig. 1
The content of 102 descriptions is similar, does not repeat herein.
If step 203, the packet count of the i-th wheel match are equal to 1, it is determined that the elimination series to the wheel number of the system of battle formations,
And obtain the packet count for often taking turns match;
Step 204, according to it is described wheel number and the packet count carry out elimination series layout, obtain the elimination series to the system of battle formations;
If step 205, the packet count of the i-th wheel match are more than the default value, i=i+1 is made, returns and performs the step
Rapid 201.
In embodiments of the present invention, if the packet count of the i-th wheel match is equal to 1, show that the match of the i-th wheel only has one group of progress
Match, and a champion team 5 and a failure troop are most obtained at last, in this case, next round can not be just carried out again
Match, also indicates that elimination series terminates at this time, which is the champion of elimination series, which is the Asia of elimination series
Army.
Wherein, when the packet count of the i-th wheel match is equal to 1, due to the match of no next round, completed to eliminate at this time
The packet division of match, generating means often take turns the wheel number of the system of battle formations and acquisition by the elimination series is determined the packet count of match, wherein,
Wheel number be packet count be equal to 1 when it is corresponding i-th wheel match i, if for example, the 5th wheel match packet count be equal to 1, table
The bright elimination series is 5 to the wheel number of the system of battle formations.Further, elimination series layout will be carried out according to above-mentioned wheel number and packet count,
Elimination series is obtained to the system of battle formations.
Specifically, will be laid out as follows, according to the order of above-mentioned wheel number from small to large, layout is every successively
The corresponding display area of wheel;In display area, the displaying figure of the packet count of the corresponding wheel number of display area is laid out successively
Shape and the present graphical of champion team 5.For example, referring to Fig. 3, it is elimination series in the embodiment of the present invention to the present graphical of the system of battle formations
Schematic diagram.Wherein, which is to be generated based on initial troop's number for 5 to the system of battle formations, shares the match of 3 wheels, and take turns number
It is arranged in order since the first round to third round, wherein, unfilled small square frame represents that the position can show a team
5 title, the small square frame for having been filled with black represents that the title of troop cannot be filled in the square frame, in the group where the square frame
An only troop, in the square frame where the first round, six small square frames on right side are divided into three groups, represent the packet of the first round
Number, the three small square frame on right side represent that the champion team 5 of the first round counts, and to carry out troop's number of the second wheel, wherein, the first round
Troop's number be 5, champion team 5 number be 3, then participate in second wheel troop's number be 3, second wheel champion team 5 number be 2, then join
The troop's number for adding third round is 2, and the last winning troop of third round, which is champion 5.
In embodiments of the present invention, if packet count of the i-th wheel match is equal to default value, at this time, generating means are by root
The packet count competed according to fixed each wheel generates elimination series to the system of battle formations, if packet count of the i-th wheel match is more than above-mentioned preset
Numerical value, then demonstrate the need for carrying out the match of next round, at this time military order i=i+1, return and perform above-mentioned steps 201.
Further, in embodiments of the present invention, the present graphical of the champion team 5 of last wheel can also be identified as
Champion position, second place position is identified as by the failure troop of last wheel.It is understood that third place position etc. can also be identified,
In practical application, it can be demarcated according to specific rule.
In embodiments of the present invention, by the packet count of last round of match, determine troop's number of this wheel match, and be based on this
Take turns match troop's number odd even attribute, determine this wheel match packet count so that the troop's number no matter competed be odd number or
Even number, can be grouped, and finally obtain elimination series to the system of battle formations, be only capable of relative to troop's number in the prior art as 2 N
Power, limitation reduce, and from troop's number limitation, strong applicability.
Referring to Fig. 4, the structure of the program module of system of battle formations generating means is shown for elimination series in third embodiment of the invention
It is intended to, which includes:
First determining module 401, for competing for the i-th wheel, based on the packet count of the i-th -1 wheel match, determines to participate in described i-th
Troop's number of match is taken turns, the initial value of the i is 0, and takes turns and compete there is no the 0th, and troop's number of the 1st wheel match is initially competition
Troop's number;
For the i-th wheel match, the packet count that generating means will be competed based on the i-th -1 wheel, determines to participate in the troop of the i-th wheel match
Number, wherein, the initial value of the i is 0, it is to be understood that since there is no the 0th wheel match, therefore, competes for the 1st wheel, it is raw
The troop's number initially taken in competition is determined as participating in troop's number of the 1st wheel match into device.For other wheels, such as the 5th wheel is competed, then
Packet count based on the 4th wheel match, definite participation the 5th are taken turns troop's number of match by generating means.
It is understood that since packet refers to using Liang Ge troops as one group, and after one group of match, one will be obtained
Champion team 5, usually a failure troop, failure troop compete all without next round is entered, therefore, if the packet of the i-th wheel match
Number is N groups, then the troop's number for showing to participate in the match of i+1 wheel is N.That is, if the packet count of the 3rd wheel match is 10 groups, this 10
After group is competed respectively, 10 champion teams 5 will be obtained, there will be 10 troops to participate in the 4th wheel match.
Second determining module 402, for the odd even attribute of troop's number according to the described i-th wheel match, determines i-th wheel
The packet count of match;
Generation module 403, if the packet count for the described i-th wheel match is equal to default value, according to fixed each wheel ratio
The packet count of match generates the elimination series to the system of battle formations;
Module 404 is returned, if the packet count for the described i-th wheel match is more than the default value, makes i=i+1, return the
One determining module 401.
Wherein, the second determining module 402 is specifically used for:
If it is described i-th wheel match troop's number be odd number, by described i-th wheel match troop's number add after 1 with divided by 2,
Obtain the packet count of the i-th wheel match;
If troop's number of the i-th wheel match is even number, by troop's number divided by 2 of the described i-th wheel match, described i-th is obtained
Take turns the packet count of match.
In embodiments of the present invention, after determining to participate in troop's number of the i-th wheel match, by according to the i-th wheel match
The odd even attribute of troop's number, determines the packet count of the i-th wheel match.
Specifically:If i-th wheel match troop's number be odd number, by i-th wheel match troop's number add after 1 with divided by
2, obtain the packet count of the i-th wheel match;It is this such as if troop's number of the i-th wheel match is 5, shows to realize and is grouped two-by-two
In the case of, troop's number of the i-th wheel match is added 1, is 6, then the packet count that can obtain the match of the i-th wheel is 3 groups, it is possible to understand that
, in this case, in actual packet, will there is a troop to be individually for one group, which will be and straight without match
Tap into the packet into next round.Further, in order to more fair, which can be powerful team
5, either draw lots definite troop or the randomly selected troop of system.And when next round is grouped, and will ginseng
Add in the packet of next round.If it is above-mentioned i-th wheel match troop's number be even number, by this i-th wheel compete troop's number divided by
2, obtain the packet count of the i-th wheel match.
In embodiments of the present invention, take turns and compete for i-th, compete for the i-th wheel, the packet count competed based on the i-th -1 wheel,
Determine to participate in the i-th troop's number for taking turns match, the initial value of i is 0, and there is no the 0th wheel match, troop's number that the 1st wheel is competed to be
The troop's number initially taken in competition;According to the odd even attribute of troop's number of the i-th wheel match, the packet count that i-th wheel is competed is determined;If
The packet count of the i-th wheel match is equal to default value, then is poised for battle according to the packet count generation elimination series of fixed each wheel match
Figure;If the packet count of the i-th wheel match is more than above-mentioned default value, i=i+1 is made, return execution is above-mentioned to be based on the i-th -1 wheel ratio
The packet count of match, determines to participate in the step of troop's number of the i-th wheel match.Relative to the prior art, pass through point of last round of match
Group number, determines troop's number of this wheel match, and the odd even attribute of troop's number based on this wheel match, determines the packet of this wheel match
Number so that the troop's number no matter competed is odd number or even number, can be grouped, and finally obtains being poised for battle for elimination series
Figure, is only capable of reducing for 2 Nth powers, limitation relative to troop's number in the prior art, and from troop's number limitation, strong applicability.
Based on 3rd embodiment, referring to Fig. 5, being poised for battle map generalization device for elimination series in fourth embodiment of the invention
The structure diagram of program module, the device include:Such as the first determining module 401, the second determining module in 3rd embodiment
403rd, generation module 403 and return module 404, and it is similar to the content described in figure 3rd embodiment, do not repeat herein.
If the default value is 1, the generation module 403 includes:
3rd determining module 501, if the packet count for the described i-th wheel match is equal to 1, it is determined that the elimination series is to the system of battle formations
Number is taken turns, and obtains the packet count for often taking turns match;
Layout modules 502, for carrying out elimination series layout according to the wheel number and the packet count, obtain the elimination series pair
The system of battle formations.
Wherein, layout modules 502 are specifically used for:
According to the order of the wheel number from small to large, it is laid out often takes turns corresponding display area successively;In the display area
It is interior, the present graphical of packet count and the present graphical of champion team 5 of the corresponding wheel number of the display area are laid out successively.
In embodiments of the present invention, if the packet count of the i-th wheel match is equal to 1, show that the match of the i-th wheel only has one group of progress
Match, and a champion team 5 and a failure troop are most obtained at last, in this case, next round can not be just carried out again
Match, also indicates that elimination series terminates at this time, which is the champion of elimination series, which is the Asia of elimination series
Army.
Wherein, when the packet count of the i-th wheel match is equal to 1, due to the match of no next round, completed to eliminate at this time
The packet division of match, generating means often take turns the wheel number of the system of battle formations and acquisition by the elimination series is determined the packet count of match, wherein,
Wheel number be packet count be equal to 1 when it is corresponding i-th wheel match i, if for example, the 5th wheel match packet count be equal to 1, table
The bright elimination series is 5 to the wheel number of the system of battle formations.Further, elimination series layout will be carried out according to above-mentioned wheel number and packet count,
Elimination series is obtained to the system of battle formations.
Specifically, will be laid out as follows, according to the order of above-mentioned wheel number from small to large, layout is every successively
The corresponding display area of wheel;In display area, the displaying figure of the packet count of the corresponding wheel number of display area is laid out successively
Shape and the present graphical of champion team 5.For example, referring to Fig. 3, it is elimination series in the embodiment of the present invention to the present graphical of the system of battle formations
Schematic diagram.Wherein, which is to be generated based on initial troop's number for 5 to the system of battle formations, shares the match of 3 wheels, and take turns number
It is arranged in order since the first round to third round, wherein, unfilled small square frame represents that the position can show a team
5 title, the small square frame for having been filled with black represents that the title of troop cannot be filled in the square frame, in the group where the square frame
An only troop, in the square frame where the first round, six small square frames on right side are divided into three groups, represent the packet of the first round
Number, the three small square frame on right side represent that the champion team 5 of the first round counts, and to carry out troop's number of the second wheel, wherein, the first round
Troop's number be 5, champion team 5 number be 3, then participate in second wheel troop's number be 3, second wheel champion team 5 number be 2, then join
The troop's number for adding third round is 2, and the last winning troop of third round, which is champion 5.
In embodiments of the present invention, which further includes:
Mark module 503, the present graphical of the champion team 5 for last to be taken turns is identified as champion position, by the mistake of last wheel
Lose troop and be identified as second place position.
Further, in embodiments of the present invention, the present graphical of the champion team 5 of last wheel can also be identified as
Champion position, second place position is identified as by the failure troop of last wheel.It is understood that third place position etc. can also be identified,
In practical application, it can be demarcated according to specific rule.
In embodiments of the present invention, by the packet count of last round of match, determine troop's number of this wheel match, and be based on this
Take turns match troop's number odd even attribute, determine this wheel match packet count so that the troop's number no matter competed be odd number or
Even number, can be grouped, and finally obtain elimination series to the system of battle formations, be only capable of relative to troop's number in the prior art as 2 N
Power, limitation reduce, and from troop's number limitation, strong applicability.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can pass through it
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module
Letter connection, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module
The component shown may or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
Embody, which is stored in a storage medium, including some instructions are used so that a computer
Equipment(Can be personal computer, server, or network equipment etc.)Perform the complete of each embodiment the method for the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only
Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It should be noted that for foregoing each method embodiment, describe, therefore it is all expressed as a series of for simplicity
Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because
According to the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is the description for being poised for battle drawing generating method and device to a kind of elimination series provided by the present invention above, for this area
Technical staff, according to the embodiment of the present invention thought, there will be changes, comprehensive in specific embodiments and applications
On, this specification content should not be construed as limiting the invention.
Claims (10)
1. a kind of elimination series is poised for battle drawing generating method, it is characterised in that the described method includes:
For the i-th wheel match, based on the packet count of the i-th -1 wheel match, determine to participate in troop's number of the i-th wheel match, the i
Initial value be 0, and there is no the 0th wheel to compete, and troop's number of the 1st wheel match is troop's number for initially taking in competition;
According to the odd even attribute of troop's number of the described i-th wheel match, the packet count that i-th wheel is competed is determined;
If the packet count of the i-th wheel match is equal to default value, institute is generated according to the packet count of fixed each wheel match
Elimination series is stated to the system of battle formations;
If the packet count of the i-th wheel match is more than the default value, i=i+1 is made, is returned described in performing based on the i-th -1 wheel
The packet count of match, determines to participate in the step of troop's number of the i-th wheel match.
2. the according to the method described in claim 1, it is characterized in that, odd even of troop's number according to the described i-th wheel match
Attribute, determines the packet count of the i-th wheel match, including:
If it is described i-th wheel match troop's number be odd number, by described i-th wheel match troop's number add after 1 with divided by 2,
Obtain the packet count of the i-th wheel match;
If troop's number of the i-th wheel match is even number, by troop's number divided by 2 of the described i-th wheel match, described i-th is obtained
Take turns the packet count of match.
3. if according to the method described in claim 1, it is characterized in that, the default value is 1, if i-th wheel
The packet count of match is equal to default value, then generates the elimination series to the system of battle formations according to the packet count of fixed each wheel match,
Including:
If the packet count of the i-th wheel match is equal to 1, it is determined that the elimination series is to the wheel number of the system of battle formations, and obtains and often take turns ratio
The packet count of match;
Elimination series layout is carried out according to the wheel number and the packet count, obtains the elimination series to the system of battle formations.
4. according to the method described in claim 3, it is characterized in that, described washed in a pan according to the wheel number and the packet count
Match layout is eliminated, obtains the elimination series to the system of battle formations, including:
According to the order of the wheel number from small to large, it is laid out often takes turns corresponding display area successively;
In the display area, the present graphical of packet count of the corresponding wheel number of the display area and winning is laid out successively
The present graphical of troop.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
The present graphical of the champion team 5 of last wheel is identified as champion position, the failure troop of last wheel is identified as second place
Position.
6. a kind of elimination series is to system of battle formations generating means, it is characterised in that described device includes:
First determining module, for competing for the i-th wheel, based on the packet count of the i-th -1 wheel match, determines to participate in i-th wheel
Troop's number of match, the initial value of the i is 0, and takes turns and compete there is no the 0th, and troop's number of the 1st wheel match initially to be taken in competition
Troop's number;
Second determining module, for the odd even attribute of troop's number according to the described i-th wheel match, determines the i-th wheel match
Packet count;
Generation module, if the packet count for the described i-th wheel match is equal to default value, according to fixed each wheel match
Packet count generates the elimination series to the system of battle formations;
Module is returned, if the packet count for the described i-th wheel match is more than the default value, i=i+1 is made, returns and perform institute
State the first determining module.
7. device according to claim 6, it is characterised in that second determining module is specifically used for:
If it is described i-th wheel match troop's number be odd number, by described i-th wheel match troop's number add after 1 with divided by 2,
Obtain the packet count of the i-th wheel match;
If troop's number of the i-th wheel match is even number, by troop's number divided by 2 of the described i-th wheel match, described i-th is obtained
Take turns the packet count of match.
8. device according to claim 6, it is characterised in that if the default value is 1, the generation module bag
Include:
3rd determining module, if the packet count for the described i-th wheel match is equal to 1, it is determined that wheel of the elimination series to the system of battle formations
Number, and obtain the packet count for often taking turns match;
Layout modules, for carrying out elimination series layout according to the wheel number and the packet count, obtain the elimination series and are poised for battle
Figure.
9. device according to claim 8, it is characterised in that the layout modules are specifically used for:
According to the order of the wheel number from small to large, it is laid out often takes turns corresponding display area successively;
In the display area, the present graphical of packet count of the corresponding wheel number of the display area and winning is laid out successively
The present graphical of troop.
10. device according to claim 9, it is characterised in that described device further includes:
Mark module, the present graphical of the champion team 5 for last to be taken turns is identified as champion position, by the failure of last wheel
Troop is identified as second place position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711142201.5A CN107909626A (en) | 2017-11-17 | 2017-11-17 | Elimination series is poised for battle drawing generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711142201.5A CN107909626A (en) | 2017-11-17 | 2017-11-17 | Elimination series is poised for battle drawing generating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107909626A true CN107909626A (en) | 2018-04-13 |
Family
ID=61846076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711142201.5A Pending CN107909626A (en) | 2017-11-17 | 2017-11-17 | Elimination series is poised for battle drawing generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107909626A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0778548B1 (en) * | 1995-05-24 | 2003-07-09 | Sega Enterprises, Ltd. | Image processor and game machine using the same |
CN105184428A (en) * | 2015-10-30 | 2015-12-23 | 哈尔滨工程大学 | Curling match against combination design method based on multi-layer genetic algorithm |
CN106447543A (en) * | 2016-11-04 | 2017-02-22 | 球宝互动(北京)网络科技有限公司 | System for generating agenda of sports event |
CN106779303A (en) * | 2016-11-24 | 2017-05-31 | 简极科技有限公司 | A kind of race management system |
-
2017
- 2017-11-17 CN CN201711142201.5A patent/CN107909626A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0778548B1 (en) * | 1995-05-24 | 2003-07-09 | Sega Enterprises, Ltd. | Image processor and game machine using the same |
CN105184428A (en) * | 2015-10-30 | 2015-12-23 | 哈尔滨工程大学 | Curling match against combination design method based on multi-layer genetic algorithm |
CN106447543A (en) * | 2016-11-04 | 2017-02-22 | 球宝互动(北京)网络科技有限公司 | System for generating agenda of sports event |
CN106779303A (en) * | 2016-11-24 | 2017-05-31 | 简极科技有限公司 | A kind of race management system |
Non-Patent Citations (1)
Title |
---|
陈坚 等: ""球类竞赛的排名式积分编排方法研究"", 《湖北财经高等专科学校学报》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106919790A (en) | The role of game recommends, battle array construction method and device, method for gaming and device | |
CN103838982B (en) | Virtual game object generating method and device | |
CN109091868B (en) | Method, apparatus, computer equipment and the storage medium that battle behavior determines | |
Moravcik et al. | Refining subgames in large imperfect information games | |
CN110339564A (en) | Virtual objects display methods, device, terminal and storage medium in virtual environment | |
CN109902820A (en) | AI model training method, device, storage medium and equipment | |
CN111185009B (en) | Map generation method and device | |
CN108289246A (en) | Data processing method, device, storage medium and electronic device | |
Xia et al. | Strategic sequential voting in multi-issue domains and multiple-election paradoxes | |
CN110465090A (en) | Control method, device, terminal and the storage medium of virtual objects | |
CN109011580A (en) | Final phase of a chess game board face acquisition methods, device, computer equipment and storage medium | |
CN102096664B (en) | Report generating method | |
CN110659023B (en) | Method for generating programming content and related device | |
CN102096753B (en) | Server and client for contest report generation | |
Mertens et al. | Emergence and robustness of a community discussion network on mercury contamination and health in the Brazilian Amazon | |
CN107909626A (en) | Elimination series is poised for battle drawing generating method and device | |
CN103577705B (en) | A kind of system controls the data processing method and device of group | |
CN109847360A (en) | 3D effect processing method, device, electronic equipment and the medium of game item | |
CN107609015A (en) | A kind of methods of exhibiting of hot list, device, live Platform Server and medium | |
Gawasmeh et al. | A computational basis for the presence of sub-cultures in cultural algoithms | |
CN108090782A (en) | Method and server are recommended in a kind of network game | |
CN106390460A (en) | Amateur electronic sports player and team information obtaining method and system and server | |
Zhang et al. | Emergence of cooperation in non-scale-free networks | |
Hamiez et al. | A linear-time algorithm to solve the Sports League Scheduling Problem (prob026 of CSPLib) | |
Schiff | An ant algorithm for the Sudoku problem |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180413 |