introduce bitloops
This commit is contained in:
@@ -107,9 +107,7 @@ public record Export() {
|
||||
}).limit(Long.bitCount(lo)));
|
||||
}
|
||||
}
|
||||
//public boolean isLetterSet(int idx) { return isLetter(g[idx]); }
|
||||
char NOT_CLUE_NOT_LETTER_TO(byte b, char fallback) {
|
||||
if (b == SwedishGenerator.DASH) throw new RuntimeException();
|
||||
char NOT_CLUE_NOT_LETTER_TO(byte b) {
|
||||
return (char) (64 | b);
|
||||
}
|
||||
String gridToString(Clues clues) {
|
||||
@@ -146,7 +144,7 @@ public record Export() {
|
||||
if (clues.isClue(offset)) {
|
||||
sb.append(clueChar.replace(new Cell(grid, clues, offset, clues.digitAt(offset))));
|
||||
} else if (grid.lisLetterAt(offset)) {
|
||||
sb.append(NOT_CLUE_NOT_LETTER_TO(grid.letter32At(offset), emptyFallback));
|
||||
sb.append(NOT_CLUE_NOT_LETTER_TO(grid.letter32At(offset)));
|
||||
} else {
|
||||
sb.append(emptyFallback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user