projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update TODO, improve style for Crazyhouse variant, fix an introduced bug in example...
[vchess.git]
/
client
/
src
/
variants
/
Crazyhouse.js
diff --git
a/client/src/variants/Crazyhouse.js
b/client/src/variants/Crazyhouse.js
index
d677823
..
16db148
100644
(file)
--- a/
client/src/variants/Crazyhouse.js
+++ b/
client/src/variants/Crazyhouse.js
@@
-118,6
+118,14
@@
export const VariantRules = class CrazyhouseRules extends ChessRules {
getReservePpath(index, color) {
return color + V.RESERVE_PIECES[index];
}
getReservePpath(index, color) {
return color + V.RESERVE_PIECES[index];
}
+// // Version if some day I have pieces with numbers printed on it:
+// getReservePpath(index, color) {
+// return (
+// "Crazyhouse/" +
+// color + V.RESERVE_PIECES[index] +
+// "_" + this.vr.reserve[playingColor][V.RESERVE_PIECES[i]]
+// );
+// }
// Ordering on reserve pieces
static get RESERVE_PIECES() {
// Ordering on reserve pieces
static get RESERVE_PIECES() {