h-docs

Search

Search IconIcon to open search

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.

1
java -jar sfinder.jar percent --tetfu <fumen> --patterns <pattern>
1
java -jar sfinder.jar percent -t <fumen> -p <pattern>

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.

Patterns (--patterns, -p): Determines the queues checked by sfinder. Read more about this parameter here.

OptionHarddropSoftdrop90 spins180 spinsMust also do:
harddrop-
softdrop
180
t-softdropT onlyT 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.

Failed Count (--failed-count, -fc): determines the number of failed queues displayed at the end of the output.


Miscellaneous Parameters

Log path (--log-path, -lp): create a .txt file output from the output of the command.

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.

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.

Threads (--threads, -th): Specify the number of threads to use when sfinder is running.


Summary

Input Parameters
ParameterShorthandDefault
--tetfu-tnull
--page-P1
--clear-line-c4
--patterns-pnull
--hold-Huse
--drop-dsoftdrop
--kicks-Ksrs

Output Parameters
ParameterShorthandDefault
--tree-depth-td3
--failed-count-fc100

Miscellaneous Parameters
ParameterShorthandDefault
--log-path-lpoutput/last_output.txt
--field-path-fpinput/field.txt
--patterns-path-ppinput/patterns.txt
--threads-th-1

Example Command and Output

An example output of the percent command

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Command Line Input
java -jar sfinder.jar percent --tetfu v115@9gE8DeG8CeH8BeG8CeA8JeAgH --patterns *p4 -td 1 -fc 5

# Setup Field
XXXXX____X
XXXXXX___X
XXXXXXX__X
XXXXXX___X

# Initialize / User-defined
Max clear lines: 4
Using hold: use
Drop: softdrop
Searching patterns:
  *p4

# Initialize / System
Threads = 4
Version = 1.0
Necessary Pieces = 3

# Enumerate pieces
Piece pop count = 4
Searching pattern size (duplicate) = 840
Searching pattern size ( no dup. ) = 840

# Search
  -> Stopwatch start
  -> Stopwatch stop : avg.time = 115 ms [1 counts]

# Output
success = 61.19% (514/840)

# Tree Depth (--tree-depth, -td)
Success pattern tree [Head 1 pieces]:
* -> 61.19 %
? T -> 85.83 %
? I -> 73.33 %
? L -> 67.50 %
? J -> 43.33 %
? S -> 58.33 %
? Z -> 52.50 %
? O -> 47.50 %

# Failed Count (--failed-count, -fc)
-------------------
Fail pattern (max. 5)
[J, L, T, O]
[S, L, T, O]
[L, J, T, O]
[S, J, T, O]
[Z, J, T, O]

# Finalize
done