projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Omegachess computer play
[vchess.git]
/
client
/
src
/
variants
/
Wormhole.js
diff --git
a/client/src/variants/Wormhole.js
b/client/src/variants/Wormhole.js
index
41c934a
..
20c9d11
100644
(file)
--- a/
client/src/variants/Wormhole.js
+++ b/
client/src/variants/Wormhole.js
@@
-1,6
+1,6
@@
import { ChessRules } from "@/base_rules";
import { ChessRules } from "@/base_rules";
-export c
onst VariantRules = c
lass WormholeRules extends ChessRules {
+export class WormholeRules extends ChessRules {
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
@@
-270,8
+270,7
@@
export const VariantRules = class WormholeRules extends ChessRules {
}
getCurrentScore() {
}
getCurrentScore() {
- if (this.atLeastOneMove())
- return "*";
+ if (this.atLeastOneMove()) return "*";
// No valid move: I lose
return this.turn == "w" ? "0-1" : "1-0";
}
// No valid move: I lose
return this.turn == "w" ? "0-1" : "1-0";
}