projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Antiking
[xogo.git]
/
variants
/
Suction
/
class.js
diff --git
a/variants/Suction/class.js
b/variants/Suction/class.js
index
a66855d
..
cf5ae16
100644
(file)
--- a/
variants/Suction/class.js
+++ b/
variants/Suction/class.js
@@
-107,8
+107,8
@@
export default class SuctionRules extends ChessRules {
getCurrentScore() {
const color = this.turn;
const kingPos = super.searchKingPos(color);
getCurrentScore() {
const color = this.turn;
const kingPos = super.searchKingPos(color);
- if (color == "w" && kingPos[0] == 0) return "0-1";
- if (color == "b" && kingPos[0] == this.size.x - 1) return "1-0";
+ if (color == "w" && kingPos[0]
[0]
== 0) return "0-1";
+ if (color == "b" && kingPos[0]
[0]
== this.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 "*";
}