return {
'b': {
"class": "stack",
- moves: [{steps: steps, range: 1}]
+ both: [{steps: steps, range: 1}]
},
'c': {
"class": "stack2",
if (height == 5)
return [];
let moves = [];
- for (let s of this.pieces()['b'].moves[0].steps) {
+ for (let s of this.pieces(this.turn, x, y)['b'].both[0].steps) {
const [i, j] = [x + s[0], y + s[1]];
if (
this.onBoard(i, j) &&