Gather data
This commit is contained in:
@@ -787,6 +787,8 @@ public record SwedishGenerator(int[] buff) {
|
||||
int bestSlot = -1;
|
||||
for (var s : slots) {
|
||||
if (assigned.containsKey(s.key())) continue;
|
||||
/* if (assigned.size()!= grid.clueCount())
|
||||
throw new RuntimeException();*/
|
||||
|
||||
var entry = dictIndex[s.len()];
|
||||
if (entry == null) return PICK_NOT_DONE;
|
||||
|
||||
@@ -25,8 +25,8 @@ public class ExportFormatTest {
|
||||
// This creates a slot starting at (0,1)
|
||||
|
||||
var clueMap = new HashMap<Integer, Lemma>();
|
||||
// key = (r << 8) | (c << 4) | d
|
||||
int key = (0 << 8) | (0 << 4) | 2;
|
||||
// key = (cellIndex << 4) | direction
|
||||
int key = (0 << 4) | 2;
|
||||
Lemma lemma = new Lemma("TEST", 1, "A test word");
|
||||
clueMap.put(key, lemma);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user