projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Spartan Chess
[vchess.git]
/
client
/
src
/
variants
/
Rugby.js
diff --git
a/client/src/variants/Rugby.js
b/client/src/variants/Rugby.js
index
04306c2
..
bbe25cb
100644
(file)
--- a/
client/src/variants/Rugby.js
+++ b/
client/src/variants/Rugby.js
@@
-2,6
+2,7
@@
import { ChessRules } from "@/base_rules";
import { ArrayFun } from "@/utils/array";
export class RugbyRules extends ChessRules {
import { ArrayFun } from "@/utils/array";
export class RugbyRules extends ChessRules {
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
@@
-14,6
+15,8
@@
export class RugbyRules extends ChessRules {
);
}
);
}
+ scanKings() {}
+
getPotentialMovesFrom(sq) {
// There are only pawns:
return this.getPotentialPawnMoves(sq);
getPotentialMovesFrom(sq) {
// There are only pawns:
return this.getPotentialPawnMoves(sq);
@@
-44,6
+47,10
@@
export class RugbyRules extends ChessRules {
preUndo() {}
postUndo() {}
preUndo() {}
postUndo() {}
+ getCheckSquares() {
+ return [];
+ }
+
getCurrentScore() {
// Turn has changed:
const color = V.GetOppCol(this.turn);
getCurrentScore() {
// Turn has changed:
const color = V.GetOppCol(this.turn);
@@
-55,4
+62,5
@@
export class RugbyRules extends ChessRules {
// Stalemate (will probably never happen)
return "1/2";
}
// Stalemate (will probably never happen)
return "1/2";
}
+
};
};