const withPrefix =
Object.keys(V.HAS_BALL_DECODE)
.concat([V.PHOENIX])
- .concat(['a']);
+ .concat(['a', 'w']); //TODO: 'w' for backward compatibility - to remove
if (withPrefix.includes(b[1])) prefix = "Ball/";
return prefix + b;
}
if (rem2 == positions[1] % 2) {
// Fix bishops (on different colors)
for (let i=4; i<9; i++) {
- if (positions[i] % 2 != rem2)
+ if (positions[i] % 2 != rem2) {
[positions[1], positions[i]] = [positions[i], positions[1]];
+ break;
+ }
}
}
rem2 = positions[2] % 2;