Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.
/ Score-Finder Public archive

Simple python script to find possible permutations of a ten-ring scorecard/target in pistol or archery competitions.

License

Notifications You must be signed in to change notification settings

MarkIvanowich/Score-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Score-Finder

Simple python script to find possible permutations of a ten-ring scorecard/target in pistol or archery competitions.

In archery and shooting sports, a ten-ring target is used as a metric for accuracy. In the centre of the target/scorecard, there is the 'X'. A competitor has the goal to hit the 'X' as many times as possible in their given round. Outwards from the centre, are ten additional rings descending in score value from 10. Both the 'X' and the 10 ring are worth 10 points. Since a score is the summation of each hit on each ring, the 'X' count is the most valuable metric for settling ties of equal score.

In Precison Pistol Competitions (PPC) as defined by the Canadian Police Combat Association (CPCA) rulebook, only B29 targets are used. A B29 target is a silhouette with only 7 numbered rings plus the X bullseye. score_finder_b29.py should be the script used to calculate those dispersions.

As the 'X'-count is the tie-settling metric for scores of equal value, another question arises: what permutations of hits on the target create that score? Along with this, we must accept the possibility that some shots on target were a miss, with a score value of 0.

This python script, given adequate information, will output permutations of hits on a target that equal the score. Since the 'X'-count is a metric whose boundaries are based on a judge's discretion, (IE: Is a hit on 'X' based off the centre or circumference of the projectile's marking?) this script does not permute an 'X'-count.

Usage

Within the directory of the score_finder.py file, the script should be used as:

python score_finder.py SCORE X_COUNT SHOTS SHOW_ZEROS_OR_COUNT

Example

Numerous targets may be combined to find permutations which are physically unfeasible: In PPC (Precision Pistol Competitions) matches there are a total of 150 shots fired across 10 stages. If all 150 shots were on one paper target, there will be more hole than paper. This is no obstacle for mathematics or statistics.

python score_finder.py 1418 48 150 f

Shows all permutations of 150 shots on a ten-ring scorecard to make a score of 1418 points, with a 48 'X'-count. Does not show permutations where hits were missed.

python score_finder_b29.py 1418 48 150 2

Shows all permutations of 150 shots on a B29 scorecard to make a score of 1418 points, with a 48 'X'-count, and maximum of 2 missed shots.

SCORE

Type: Integer
Required: Yes

The sum of all hits on target. Each hit is multiplied by their point value as described above. This value's maximum is 10 * SHOTS and has a minimum of 0. Scores that are a maximum, minimum, or near minimum should not use this script, as the number of permutations are too few to warrant usage.

X_COUNT

Type: Integer
Required: Yes

The number of hits on the centre of the target. This is a supplementary input and an aspect of the resulting permutation. Where this metric is not required, this argument's value should be 0. As the 'X'-count is the most valuable metric, it is more directly influenced by bias than other scores. The 'X'-count column of output permutations is not modified in any way, but is required for score and shot count calculations.

SHOTS

Type: Integer
Required: Yes

The number of shots on the target. This value is equal to the number of projectiles fired or launched at the target for one competitor. This is the most independent variable in the system, thus the most important.

SHOW_ZEROS

Type: Char
Required: false

Set to t or y to enable. Set to f or n to disable (default). Enabled if user desires permutations where some shots fired missed the target, and are worth zero points. Optionally, enter a numerical value for a predefined number of missed shots. (Including missed count does not increase or decrease search time compared to this setting being disabled.) These permutations are printed to the screen after every non-miss permutation has been found. This also sorts results from best-to-worst case scenarios.

Licensing

The code in this project is licensed under MIT license. Please find included LICENSE file for complete details.

About

Simple python script to find possible permutations of a ten-ring scorecard/target in pistol or archery competitions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages