projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some thoughts on Chakart + fix Hiddenqueen moves notation + better moveslist display
[vchess.git]
/
client
/
src
/
variants
/
Ball.js
diff --git
a/client/src/variants/Ball.js
b/client/src/variants/Ball.js
index
e3c8e5e
..
ceddb61
100644
(file)
--- 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 {
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(
{},
static get PawnSpecs() {
return Object.assign(
{},
@@
-126,7
+141,7
@@
export class BallRules extends ChessRules {
);
}
);
}
- getCheckSquares(
color
) {
+ getCheckSquares() {
return [];
}
return [];
}