projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Musketeer, Joker, Shinobi. Start draft of Cwda
[vchess.git]
/
client
/
src
/
variants
/
Cwda.js
diff --git
a/client/src/variants/Colorbound.js
b/client/src/variants/Cwda.js
similarity index 98%
rename from
client/src/variants/Colorbound.js
rename to
client/src/variants/Cwda.js
index
90e54dc
..
6e30e68
100644
(file)
--- a/
client/src/variants/Colorbound.js
+++ b/
client/src/variants/Cwda.js
@@
-2,7
+2,7
@@
import { ChessRules, Move, PiPo } from "@/base_rules";
import { ArrayFun } from "@/utils/array";
import { randInt } from "@/utils/alea";
import { ArrayFun } from "@/utils/array";
import { randInt } from "@/utils/alea";
-export class C
olorbound
Rules extends ChessRules {
+export class C
wda
Rules extends ChessRules {
static get PawnSpecs() {
return Object.assign(
static get PawnSpecs() {
return Object.assign(
@@
-18,7
+18,7
@@
export class ColorboundRules extends ChessRules {
getPpath(b) {
if ([V.C_ROOK, V.C_KNIGHT, V.C_BISHOP, V.C_QUEEN].includes(b[1]))
getPpath(b) {
if ([V.C_ROOK, V.C_KNIGHT, V.C_BISHOP, V.C_QUEEN].includes(b[1]))
- return "C
olorbound
/" + b;
+ return "C
wda
/" + b;
return b;
}
return b;
}