projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix shadow piece bug: reserve count is now updated as expected
[vchess.git]
/
client
/
src
/
variants
/
Hamilton.js
diff --git
a/client/src/variants/Hamilton.js
b/client/src/variants/Hamilton.js
index
69dd9e5
..
47af232
100644
(file)
--- a/
client/src/variants/Hamilton.js
+++ b/
client/src/variants/Hamilton.js
@@
-2,6
+2,7
@@
import { ChessRules, Move, PiPo } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class HamiltonRules extends ChessRules {
import { randInt } from "@/utils/alea";
export class HamiltonRules extends ChessRules {
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
@@
-18,7
+19,7
@@
export class HamiltonRules extends ChessRules {
return "xx";
}
return "xx";
}
- hoverHighlight(
x, y
) {
+ hoverHighlight() {
return this.movesCount == 0;
}
return this.movesCount == 0;
}
@@
-158,4
+159,5
@@
export class HamiltonRules extends ChessRules {
// First game move:
return "N@" + V.CoordsToSquare(move.end);
}
// First game move:
return "N@" + V.CoordsToSquare(move.end);
}
+
};
};