h-docs

Search

Search IconIcon to open search

Cover-To-Path Script

A demonstration of the use of Hillosanation’s Cover-to-Path Script.

Downloading

  1. Download the Cover-to-Path script and place it in the folder where sfinder.jar is.
  2. Download the unglueFumen script and place it in the folder where sfinder.jar is.

Download NodeJS and a unglueFumen Dependency:

  1. Go to the NodeJS download page. Installing it should be straight-forward.
    • When installing, make sure that NodeJS and npm are added to PATH. This appears in the Custom Setup step of installation.
  2. Open a terminal (Command Prompt, PowerShell, etc.)
  3. 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:

  1. Get all the unique solutions for the field through path.
  2. Convert it all to their glued versions.
  3. Run cover with --mode tetris-end.
  4. Convert the cover.csv file to path.csv.

v115@VgC8GeC8GeC8GeE8CeH8AeI8AeI8AeI8AeC8JeAgH

Getting all the unique solutions:

1
2
3
4
5
6
7
8
Input:
java -jar sfinder.jar path -t v115@VgC8GeC8GeC8GeE8CeH8AeI8AeI8AeI8AeC8JeAgH -p *! -c 8

Output:
...
# Output file
Found path [unique] = 28
Found path [minimal] = 26

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.

  1. Right click the first link in the path_unique.html file and select “Copy link”.
  2. 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.
  3. In the folder where sfinder.jar is, go to the /input/ folder and open the field.txt file. Paste the results in there and save it.

Run cover with --mode tetris-end:

1
java -jar sfinder.jar cover -p *! -m 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:

1
py cover-to-path.py output/cover.csv

The resulting file should be in the /output/ folder, named cover_to_path.csv.