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