Solution Finder: Percent
Solution Finder’s Percent command outputs the probability of getting a perfect clear from a specified field, given a specified pattern. This output is written in the terminal and the specified log path.
| |
| |
Input Parameters
Specified Field (--tetfu, -t): the fumen code that sfinder begins working with. If not specified, the file field.txt in the input folder is used.
- Page (
--page,-P): Specify the page of the fumen. The default is the first page.--page 2
- Clear Line (–clear-line, -c): Specify the number of line clears for a perfect clear. The default is 4
--clear-line 6
Patterns (--patterns, -p): Determines the queues checked by sfinder. Read more about this parameter here.
- Hold (
--hold,-H): Specify whether or not a hold slot is usable. By default, it is enabled.-H useor-H avoid
- Drop (
--drop,-d): Specify what movements are usable. By default, it usessoftdrop.
| Option | Harddrop | Softdrop | 90 spins | 180 spins | Must also do: |
| harddrop | ✓ | ✗ | ✗ | ✗ | - |
| softdrop | ✓ | ✓ | ✓ | ✗ | |
| 180 | ✓ | ✓ | ✓ | ✓ | |
| t-softdrop | ✓ | T only | T only | ✗ | - |
Kick table (--kicks, -K):
WIP
This section isn’t filled out yet.
Output Parameters
Tree Depth (--tree-depth, -td): determines the depth of the tree diagram of the output. The tree output checks for the sol% of the field if the first few pieces of the queue is known.
- By default, tree depth is 3.
--tree-depth 1
Failed Count (--failed-count, -fc): determines the number of failed queues displayed at the end of the output.
- By default, failed count is 100.
--failed-count -1displays as many failed queues as possible.
Miscellaneous Parameters
Log path (--log-path, -lp): create a .txt file output from the output of the command.
- By default, the log path is
output/last_output.txt. --log-path output/chances.txt
Specified Field from a file (--field-path, -fp): instead of defining the fumen code using --tetfu, you can specify a .txt file that contains a fumen code instead.
- By default, the field path is
input/field.txt. --field-path input/sdpc.txt
Patterns from a file (--patterns-path, -pp): instead of defining patterns using --patterns, you can specify a .txt file that contains either the actual queues, or patterns.
- By default, the patterns path is
input/patterns.txt. --patterns-path input/filteredqueue.txt
Threads (--threads, -th): Specify the number of threads to use when sfinder is running.
- By default, the number of threads used is 1.
--threads 0will allow sfinder to use as many threads as is present in the execution environment.
Summary
| Input Parameters | ||
|---|---|---|
| Parameter | Shorthand | Default |
| --tetfu | -t | null |
| --page | -P | 1 |
| --clear-line | -c | 4 |
| --patterns | -p | null |
| --hold | -H | use |
| --drop | -d | softdrop |
| --kicks | -K | srs |
| Output Parameters | ||
|---|---|---|
| Parameter | Shorthand | Default |
| --tree-depth | -td | 3 |
| --failed-count | -fc | 100 |
| Miscellaneous Parameters | ||
|---|---|---|
| Parameter | Shorthand | Default |
| --log-path | -lp | output/last_output.txt |
| --field-path | -fp | input/field.txt |
| --patterns-path | -pp | input/patterns.txt |
| --threads | -th | -1 |
Example Command and Output
An example output of the percent command
| |