projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix and complete Apocalypse variant
[vchess.git]
/
client
/
src
/
variants
/
Rugby.js
diff --git
a/client/src/variants/Rugby.js
b/client/src/variants/Rugby.js
index
04306c2
..
209def8
100644
(file)
--- a/
client/src/variants/Rugby.js
+++ b/
client/src/variants/Rugby.js
@@
-14,6
+14,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
+46,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);