projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Pandemonium + Janggi (first move)
[vchess.git]
/
client
/
src
/
variants
/
Cylinder.js
diff --git
a/client/src/variants/Cylinder.js
b/client/src/variants/Cylinder.js
index
2324bdc
..
8b68e9c
100644
(file)
--- a/
client/src/variants/Cylinder.js
+++ b/
client/src/variants/Cylinder.js
@@
-3,6
+3,7
@@
import { ArrayFun } from "@/utils/array";
import { randInt, shuffle } from "@/utils/alea";
export class CylinderRules extends ChessRules {
import { randInt, shuffle } from "@/utils/alea";
export class CylinderRules extends ChessRules {
+
// Output basically x % 8 (circular board)
static ComputeY(y) {
let res = y % V.size.y;
// Output basically x % 8 (circular board)
static ComputeY(y) {
let res = y % V.size.y;
@@
-154,4
+155,5
@@
export class CylinderRules extends ChessRules {
k: 1000
};
}
k: 1000
};
}
+
};
};