projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft Ball variant + some fixes, enhancements and code cleaning
[vchess.git]
/
client
/
src
/
variants
/
Magnetic.js
diff --git
a/client/src/variants/Magnetic.js
b/client/src/variants/Magnetic.js
index
a59ce41
..
ee9fe28
100644
(file)
--- a/
client/src/variants/Magnetic.js
+++ b/
client/src/variants/Magnetic.js
@@
-1,6
+1,6
@@
import { ChessRules, PiPo } from "@/base_rules";
import { ChessRules, PiPo } from "@/base_rules";
-export c
onst VariantRules = c
lass MagneticRules extends ChessRules {
+export class MagneticRules extends ChessRules {
static get HasEnpassant() {
return false;
}
static get HasEnpassant() {
return false;
}
@@
-196,7
+196,7
@@
export const VariantRules = class MagneticRules extends ChessRules {
// King disappeared
return color == "w" ? "0-1" : "1-0";
if (this.atLeastOneMove())
// King disappeared
return color == "w" ? "0-1" : "1-0";
if (this.atLeastOneMove())
- //
g
ame not over
+ //
G
ame not over
return "*";
return "1/2"; //no moves but kings still there
}
return "*";
return "1/2"; //no moves but kings still there
}