Gather data
This commit is contained in:
@@ -111,7 +111,7 @@ public final class ExportFormat {
|
||||
p.arrowRow - minR,
|
||||
p.arrowCol - minC,
|
||||
p.isReversed,
|
||||
puz.dict().words().get(p.word).cross()
|
||||
puz.dict().words().get(p.word).simpel()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ public final class ExportFormat {
|
||||
|
||||
return new Placed(
|
||||
word,
|
||||
dict.words().get(word).clue(), // clue placeholder
|
||||
dict.words().get(word).clue().toArray( String[]::new), // clue placeholder
|
||||
startRow,
|
||||
startCol,
|
||||
direction,
|
||||
@@ -187,13 +187,13 @@ public final class ExportFormat {
|
||||
* @param direction "h" | "v"
|
||||
* @param cells word cells
|
||||
* @param arrow [arrowRow, arrowCol] */
|
||||
private record Placed(String word, String clue, int startRow, int startCol, String direction, String answer, int arrowRow, int arrowCol, List<int[]> cells, int[] arrow,
|
||||
private record Placed(String word, String[] clue, int startRow, int startCol, String direction, String answer, int arrowRow, int arrowCol, List<int[]> cells, int[] arrow,
|
||||
boolean isReversed) { }
|
||||
|
||||
public record Rewards(int coins, int stars, int hints) { }
|
||||
|
||||
/// @param direction "h" | "v"
|
||||
public record WordOut(String word, String clue, int startRow, int startCol, String direction, String answer, int arrowRow, int arrowCol, boolean isReversed, int complex) { }
|
||||
public record WordOut(String word, String[] clue, int startRow, int startCol, String direction, String answer, int arrowRow, int arrowCol, boolean isReversed, int complex) { }
|
||||
|
||||
public record ExportedPuzzle(List<String> gridv2, List<WordOut> words, int difficulty, Rewards rewards) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user