projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generalize pawn movements: cleaner and smaller code
[vchess.git]
/
client
/
src
/
variants
/
Cylinder.js
diff --git
a/client/src/variants/Cylinder.js
b/client/src/variants/Cylinder.js
index
44d1ab1
..
f26f3e6
100644
(file)
--- a/
client/src/variants/Cylinder.js
+++ b/
client/src/variants/Cylinder.js
@@
-2,7
+2,7
@@
import { ChessRules, PiPo, Move } from "@/base_rules";
import { ArrayFun } from "@/utils/array";
import { randInt, shuffle } from "@/utils/alea";
import { ArrayFun } from "@/utils/array";
import { randInt, shuffle } from "@/utils/alea";
-export c
onst VariantRules = c
lass CylinderRules extends ChessRules {
+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;