X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FAvalam%2Fclass.js;h=5fe5ed32e13894c8d241518d4b05acfa5021ae8e;hb=bc97fdd1302473b774cfb19e65dc3ed3ed388901;hp=aaa2cf33401d8bdd1c95c496a5eec010793c5c9d;hpb=df3fdaff8fa7b3046eb67e4bc4da37a5bcc8c4d7;p=xogo.git diff --git a/variants/Avalam/class.js b/variants/Avalam/class.js index aaa2cf3..5fe5ed3 100644 --- a/variants/Avalam/class.js +++ b/variants/Avalam/class.js @@ -156,7 +156,7 @@ export default class AvalamRules extends ChessRules { 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) &&