X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FGrasshopper.js;h=416f63256a078ab5c7dd217ca09eb6729b6bf145;hb=bfed878da7f9f78c955527ab51fe6094adede20f;hp=8f24340ad9e6b9b90ac3ff4288be6e19a8f9d6c6;hpb=b627d118ab41dccbda68f4523de8f063d0fa89df;p=vchess.git diff --git a/client/src/variants/Grasshopper.js b/client/src/variants/Grasshopper.js index 8f24340a..416f6325 100644 --- a/client/src/variants/Grasshopper.js +++ b/client/src/variants/Grasshopper.js @@ -133,8 +133,12 @@ export const VariantRules = class GrasshopperRules extends ChessRules { ); } - static GenRandInitFen() { - return ChessRules.GenRandInitFen() + static get SEARCH_DEPTH() { + return 2; + } + + static GenRandInitFen(randomness) { + return ChessRules.GenRandInitFen(randomness) .replace("w 0 1111 -", "w 0 1111") .replace( "/pppppppp/8/8/8/8/PPPPPPPP/",