X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FExtinction.js;h=bdea80b52adff649bb23003a048f6a51c6cbe91f;hp=8c97068202497e39f78ebf02d03a34de34b08175;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/variants/Extinction.js b/client/src/variants/Extinction.js index 8c970682..bdea80b5 100644 --- a/client/src/variants/Extinction.js +++ b/client/src/variants/Extinction.js @@ -27,7 +27,7 @@ export class ExtinctionRules extends ChessRules { setOtherVariables(fen) { super.setOtherVariables(fen); const pos = V.ParseFen(fen).position; - // NOTE: no need for safety "|| []", because each piece type must be present + // NOTE: no need for safety "|| []", because each piece type is present // (otherwise game is already over!) this.material = { w: { @@ -107,7 +107,8 @@ export class ExtinctionRules extends ChessRules { return this.material[color][p] == 0; }) ) { - // Very negative (resp. positive) if white (reps. black) pieces set is incomplete + // Very negative (resp. positive) + // if white (reps. black) pieces set is incomplete return (color == "w" ? -1 : 1) * V.INFINITY; } return super.evalPosition();