Cover-To-Path Script
A demonstration of the use of Hillosanation’s Cover-to-Path Script.
Downloading
- Download the
Cover-to-Path script and place it in the folder where
sfinder.jar
is. - Download the
unglueFumen script and place it in the folder where
sfinder.jar
is.
Download NodeJS and a unglueFumen Dependency:
- Go to the
NodeJS download page. Installing it should be straight-forward.
- When installing, make sure that
NodeJS
andnpm
are added to PATH. This appears in the Custom Setup step of installation.
- When installing, make sure that
- Open a terminal (Command Prompt, PowerShell, etc.)
- Set your directory to the sfinder folder, then enter
npm install yargs
.
Example Path and Usage
We're going to get the minimal Quad PC solutions for this particular board. To do this we'll:
- Get all the unique solutions for the field through path.
- Convert it all to their glued versions.
- Run cover with
--mode tetris-end
. - Convert the
cover.csv
file topath.csv
.
Getting all the unique solutions:
|
|
Open the path_unique.html
file in the /output/
folder. At the top of the page should be a link to all the solutions.
Gluing all the fumen solutions:
“Glued” fumens are required as input for sfinder’s cover command.
- Right click the first link in the
path_unique.html
file and select “Copy link”. - Go to this fumen editor and paste the link into the input field and select the “Glue” option. This should return a list of fumens in the output field.
- In the folder where
sfinder.jar
is, go to the/input/
folder and open thefield.txt
file. Paste the results in there and save it.
Run cover with --mode tetris-end
:
|
|
Since you don’t specify the --tetfu
parameter, the field.txt
file is what’s being used for this command. Use the same -p
value as the path command from earlier. -m tetris-end
makes it so that cover is only returned as successful if the last clear in the sequence is a quad or tetris line clear.
The result should show OR = 72.46 % [3652/5040]
.
Converting the cover.csv
to path.csv
:
|
|
The resulting file should be in the /output/
folder, named cover_to_path.csv
.