X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAtomic.js;h=35def3faa0fe53ce4bf180d123abc8dc18da5064;hp=2fcb5a6b5f7736864773ecc896b82c14c80719e6;hb=e9b736ee3e72e2ddb9bf4da0c0f1e22a70f7448f;hpb=78d64531113d4b5045ff588dd43f301a332ebae8 diff --git a/client/src/variants/Atomic.js b/client/src/variants/Atomic.js index 2fcb5a6b..35def3fa 100644 --- a/client/src/variants/Atomic.js +++ b/client/src/variants/Atomic.js @@ -76,7 +76,7 @@ export const VariantRules = class AtomicRules extends ChessRules { updateVariables(move) { super.updateVariables(move); if (move.appear.length == 0) { - //capture + // Capture const firstRank = { w: 7, b: 0 }; for (let c of ["w", "b"]) { // Did we explode king of color c ? (TODO: remove move earlier) @@ -143,10 +143,9 @@ export const VariantRules = class AtomicRules extends ChessRules { const color = this.turn; const kp = this.kingPos[color]; if (kp[0] < 0) - //king disappeared + // King disappeared return color == "w" ? "0-1" : "1-0"; if (this.atLeastOneMove()) - // game not over return "*"; if (!this.isAttacked(kp, [V.GetOppCol(color)])) return "1/2"; return color == "w" ? "0-1" : "1-0"; //checkmate