projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Yote
[vchess.git]
/
client
/
src
/
variants
/
Konane.js
diff --git
a/client/src/variants/Konane.js
b/client/src/variants/Konane.js
index
8f285ef
..
1ff77ee
100644
(file)
--- a/
client/src/variants/Konane.js
+++ b/
client/src/variants/Konane.js
@@
-1,7
+1,5
@@
import { ChessRules, Move, PiPo } from "@/base_rules";
import { ChessRules, Move, PiPo } from "@/base_rules";
-// TODO: Maybe more flexible end of game messages (V.ColorsReversed ?!)
-
export class KonaneRules extends ChessRules {
static get HasFlags() {
export class KonaneRules extends ChessRules {
static get HasFlags() {
@@
-12,10
+10,18
@@
export class KonaneRules extends ChessRules {
return false;
}
return false;
}
+ static get ReverseColors() {
+ return true;
+ }
+
static get PIECES() {
return V.PAWN;
}
static get PIECES() {
return V.PAWN;
}
+ getPiece() {
+ return V.PAWN;
+ }
+
getPpath(b) {
return "Konane/" + b;
}
getPpath(b) {
return "Konane/" + b;
}