1 import { ChessRules
} from "@/base_rules";
3 export class AntimatterRules
extends ChessRules
{
5 getPotentialMovesFrom([x
, y
]) {
6 let moves
= super.getPotentialMovesFrom([x
, y
]);
7 // Handle "matter collisions"
10 m
.vanish
.length
> 1 &&
11 m
.appear
.length
<= 1 &&
12 m
.vanish
[0].p
== m
.vanish
[1].p