X-Git-Url: https://git.auder.net/parser.js?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FBall.js;h=ceddb61a8e3be97099c24f6f53002250ee18b671;hb=107dc1bd5361e2538b1551bdcc37c1e90a444b83;hp=e3c8e5ec40fd27b33ea59f6f406fd270f44e1cd7;hpb=6f252ccbf794acae91aa51e45244fd2696d9b4cf;p=vchess.git diff --git a/client/src/variants/Ball.js b/client/src/variants/Ball.js index e3c8e5ec..ceddb61a 100644 --- a/client/src/variants/Ball.js +++ b/client/src/variants/Ball.js @@ -3,6 +3,21 @@ import { ArrayFun } from "@/utils/array"; import { shuffle } from "@/utils/alea"; export class BallRules extends ChessRules { + static get Lines() { + return [ + // White goal: + [[0, 3], [0, 6]], + [[0, 6], [1, 6]], + [[1, 6], [1, 3]], + [[1, 3], [0, 3]], + // Black goal: + [[9, 3], [9, 6]], + [[9, 6], [8, 6]], + [[8, 6], [8, 3]], + [[8, 3], [9, 3]] + ]; + } + static get PawnSpecs() { return Object.assign( {}, @@ -126,7 +141,7 @@ export class BallRules extends ChessRules { ); } - getCheckSquares(color) { + getCheckSquares() { return []; }