648ee299933de66e66ca1a32c9d5a6258ad40f6e
1 import { Move
, PiPo
} from "@/base_rules";
2 import { Stealthbomb1Rules
} from "@/variants/Stealthbomb1";
4 export class Stealthbomb2Rules
extends Stealthbomb1Rules
{
6 // Initiate the game by choosing a pawn holding the bomb:
10 this.movesCount
>= 2 ||
12 (c
== 'w' && square
[0] != 6) ||
13 (c
== 'b' && square
[0] != 1)
18 const [x
, y
] = square
;
20 appear: [ new PiPo({ x: x
, y: y
, c: c
, p: 's' }) ],
21 vanish: [ new PiPo({ x: x
, y: y
, c: c
, p: 'p' }) ],
22 start: { x: -1, y: -1 },
23 end: { x: x
, y: y
, noHighlight: true }