| 1 | import ChessRules from "/base_rules.js"; |
| 2 | |
| 3 | export default class RecycleRules extends ChessRules { |
| 4 | |
| 5 | static get Options() { |
| 6 | return { |
| 7 | select: C.Options.select, |
| 8 | input: [ |
| 9 | { |
| 10 | label: "Capture king", |
| 11 | variable: "taking", |
| 12 | type: "checkbox", |
| 13 | defaut: false |
| 14 | }, |
| 15 | { |
| 16 | label: "Falling pawn", |
| 17 | variable: "pawnfall", |
| 18 | type: "checkbox", |
| 19 | defaut: true |
| 20 | } |
| 21 | ], |
| 22 | styles: C.Options.styles.filter(s => s != "recycle") |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | constructor(o) { |
| 27 | o.options["recycle"] = true; |
| 28 | super(o); |
| 29 | } |
| 30 | |
| 31 | }; |