1 import ChessRules
from "/base_rules.js";
3 export default class ProgressiveRules
extends ChessRules
{
7 select: C
.Options
.select
,
14 ].concat(C
.Options
.check
),
15 styles: C
.Options
.styles
.filter(s
=> s
!= "progressive")
20 o
.options
["progressive"] = true;
25 return !this.options
["logical"];
29 let res
= super.pieces(color
, x
, y
);
30 if (this.options
["logical"]) {
31 const pawnShift
= (color
== "w" ? -1 : 1);
33 steps: [[pawnShift
, 0]],