X-Git-Url: https://git.auder.net/game/current/git-logo.png?a=blobdiff_plain;f=base_rules.js;h=0b71cf4ccd027030e077f36377ab9566b6fbfe50;hb=52718c94d69b40e79f9ba4fd4ff70376bbf8a774;hp=9cedfd054e9819a8408285fb916cb4a1828e718d;hpb=296f846a620c361b3fe4e61f6bb369adc361d312;p=xogo.git diff --git a/base_rules.js b/base_rules.js index 9cedfd0..0b71cf4 100644 --- a/base_rules.js +++ b/base_rules.js @@ -233,7 +233,7 @@ export default class ChessRules { ['r', 'n', 'b', 'q', 'k', 'b', 'n', 'r'], { randomness: this.options["randomness"], - between: {p1: 'k', p2: 'r'}, + between: [{p1: 'k', p2: 'r'}], diffCol: ['b'], flags: ['r'] } @@ -1838,8 +1838,6 @@ export default class ChessRules { } } - // TODO here: should/could use getPotentialMovesFrom ?! (not sure) - // --> would be useful for variants like Copycat. // Search for enemy (or not) pieces attacking [x, y] findCapturesOn([x, y], o, allowed) { if (!o.byCol)