PieceInfo.pinned is not the same, and the algorithm needs a coherent
idea of what counts.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
let p = pieces[piece]!;
+ let p_pinned = lower_treat_pinned(p);
if (bottommost_unpinned === null) { // state A
- if (!p.pinned) {
+ if (!p_pinned) {
console.log('LOWER WALK', piece, 'STATE A -> Z');
bottommost_unpinned = { p, piece };
} else {
}
// state B
- if (p.pinned) {
+ if (p_pinned) {
console.log('LOWER WALK', piece, 'STATE B MIS-STACKED');
tomove_misstacked.push({ p, piece });
} else {