X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FExtinction.js;h=45ace336df4db209d710658b9430b55cd4685cf0;hp=8896292acd26bfd31f42e92df2460481824f57b5;hb=6b7b2cf720e6255e4da0dc34fee363c456346a58;hpb=f5a31ba0f98d215d432b7d3c86388af749df33a4 diff --git a/client/src/variants/Extinction.js b/client/src/variants/Extinction.js index 8896292a..45ace336 100644 --- a/client/src/variants/Extinction.js +++ b/client/src/variants/Extinction.js @@ -85,8 +85,8 @@ export const VariantRules = class ExtinctionRules extends ChessRules { return true; //always at least one possible move } - underCheck() { - return false; //there is no check + filterValid(moves) { + return moves; //there is no check } getCheckSquares() { @@ -117,7 +117,7 @@ export const VariantRules = class ExtinctionRules extends ChessRules { getCurrentScore() { if (this.atLeastOneMove()) { - // game not over? + // Game not over? const color = this.turn; if ( Object.keys(this.material[color]).some(p => {