projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix notation and pieces setup for random asymmetric in Eightpieces
[vchess.git]
/
client
/
src
/
variants
/
Crazyhouse.js
diff --git
a/client/src/variants/Crazyhouse.js
b/client/src/variants/Crazyhouse.js
index
fb8c744
..
2307eaf
100644
(file)
--- a/
client/src/variants/Crazyhouse.js
+++ b/
client/src/variants/Crazyhouse.js
@@
-1,7
+1,7
@@
import { ChessRules, PiPo, Move } from "@/base_rules";
import { ArrayFun } from "@/utils/array";
import { ChessRules, PiPo, Move } from "@/base_rules";
import { ArrayFun } from "@/utils/array";
-export c
onst VariantRules = c
lass CrazyhouseRules extends ChessRules {
+export class CrazyhouseRules extends ChessRules {
static IsGoodFen(fen) {
if (!ChessRules.IsGoodFen(fen)) return false;
const fenParsed = V.ParseFen(fen);
static IsGoodFen(fen) {
if (!ChessRules.IsGoodFen(fen)) return false;
const fenParsed = V.ParseFen(fen);
@@
-22,10
+22,13
@@
export const VariantRules = class CrazyhouseRules extends ChessRules {
static ParseFen(fen) {
const fenParts = fen.split(" ");
static ParseFen(fen) {
const fenParts = fen.split(" ");
- return Object.assign(ChessRules.ParseFen(fen), {
- reserve: fenParts[5],
- promoted: fenParts[6]
- });
+ return Object.assign(
+ ChessRules.ParseFen(fen),
+ {
+ reserve: fenParts[5],
+ promoted: fenParts[6]
+ }
+ );
}
getEpSquare(moveOrSquare) {
}
getEpSquare(moveOrSquare) {