Gather data
This commit is contained in:
@@ -158,7 +158,7 @@ public record Export() {
|
||||
for (var r = 0; r < R; r++) {
|
||||
var sb = new StringBuilder(C);
|
||||
for (var c = 0; c < C; c++) {
|
||||
sb.append(g.isLetterAt(r,c) ? (char) g.byteAt(Grid.offset(r, c)) : '#');
|
||||
sb.append(g.isLetterSet(r, c) ? (char) g.byteAt(Grid.offset(r, c)) : '#');
|
||||
}
|
||||
gridv2.add(sb.toString());
|
||||
}
|
||||
@@ -189,7 +189,7 @@ public record Export() {
|
||||
for (var c : p.cells) {
|
||||
int rr = Grid.r(c), cc = Grid.c(c);
|
||||
int idx = Grid.offset(rr,cc);
|
||||
if (inBounds(rr, cc) && g.isLetterAt(idx)) {
|
||||
if (inBounds(rr, cc) && g.isLetterSet(idx)) {
|
||||
letterAt.put(Bit.pack(rr, cc), (char) g.byteAt(idx));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user