X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FDark.js;h=96163bfb00715c62be201000d04c0e405b0f7eea;hp=81f87008b011353c0443cf36ea450a22a864c34a;hb=c3d16e78d99e27ddd294647f8f97751727069d5a;hpb=1051336271ad4d4128ef1f66953f54973601d774 diff --git a/client/src/variants/Dark.js b/client/src/variants/Dark.js index 81f87008..96163bfb 100644 --- a/client/src/variants/Dark.js +++ b/client/src/variants/Dark.js @@ -78,6 +78,11 @@ export const VariantRules = class DarkRules extends ChessRules { } } + filterValid(moves) { + // Used in the interface + return moves; + } + // Has to be redefined to avoid an infinite loop getAllValidMoves() { const color = this.turn;