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