Gather data
This commit is contained in:
@@ -26,14 +26,14 @@ public final class ExportFormat {
|
||||
|
||||
public static ExportedPuzzle exportFormatFromFilled(PuzzleResult puz, int difficulty, Rewards rewards) {
|
||||
Objects.requireNonNull(puz, "puz");
|
||||
var g = puz.filled().grid;
|
||||
var g = puz.filled().grid();
|
||||
var H = g.length;
|
||||
var W = g[0].length;
|
||||
|
||||
// 1) extract "placed" list from all clue digits in the filled grid
|
||||
var placed = new ArrayList<Placed>();
|
||||
var allSlots = extractSlots(g);
|
||||
var clueMap = puz.filled().clueMap;
|
||||
var clueMap = puz.filled().clueMap();
|
||||
|
||||
for (var s : allSlots) {
|
||||
var word = clueMap.get(s.key());
|
||||
@@ -170,7 +170,7 @@ public final class ExportFormat {
|
||||
return new Placed(
|
||||
lemma,
|
||||
lemma.word(),
|
||||
dict.words().get(lemma.word()).clue().toArray(String[]::new), // clue placeholder
|
||||
lemma.clue()/*dict.words()[lemma.index()].clue()*/.toArray(String[]::new), // clue placeholder
|
||||
startRow,
|
||||
startCol,
|
||||
direction,
|
||||
|
||||
Reference in New Issue
Block a user