projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft Coregal variant - still getCastleMoves() and updateCastleFlags() TODO
[vchess.git]
/
client
/
src
/
variants
/
Suction.js
diff --git
a/client/src/variants/Suction.js
b/client/src/variants/Suction.js
index
d15a7c8
..
ac3aeb0
100644
(file)
--- a/
client/src/variants/Suction.js
+++ b/
client/src/variants/Suction.js
@@
-182,10
+182,8
@@
export class SuctionRules extends ChessRules {
getCurrentScore() {
const color = this.turn;
const kp = this.kingPos[color];
getCurrentScore() {
const color = this.turn;
const kp = this.kingPos[color];
- if (color == "w" && kp[0] == 0)
- return "0-1";
- if (color == "b" && kp[0] == V.size.x - 1)
- return "1-0";
+ if (color == "w" && kp[0] == 0) return "0-1";
+ if (color == "b" && kp[0] == V.size.x - 1) return "1-0";
// King is not on the opposite edge: game not over
return "*";
}
// King is not on the opposite edge: game not over
return "*";
}