projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First draft of Shinobi (unworking)
[vchess.git]
/
client
/
src
/
variants
/
Rugby.js
diff --git
a/client/src/variants/Rugby.js
b/client/src/variants/Rugby.js
index
209def8
..
d802ca1
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;
}
@@
-61,4
+62,9
@@
export class RugbyRules extends ChessRules {
// Stalemate (will probably never happen)
return "1/2";
}
// Stalemate (will probably never happen)
return "1/2";
}
+
+ getNotation(move) {
+ return V.CoordsToSquare(move.start) + V.CoordsToSquare(move.end);
+ }
+
};
};