X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FHidden.js;h=046fe99e02d55fcc68931d3bff6639bd02b88750;hb=f53871dbb29b5f7f4dd8d72e76387ad8f1d7863b;hp=c79267a56ac40e795de4dfb780bf66990ba3a42f;hpb=e71161fbfffe53b0f4b174e0467cdd98cc70b7b0;p=vchess.git diff --git a/client/src/variants/Hidden.js b/client/src/variants/Hidden.js index c79267a5..046fe99e 100644 --- a/client/src/variants/Hidden.js +++ b/client/src/variants/Hidden.js @@ -16,9 +16,9 @@ export const VariantRules = class HiddenRules extends ChessRules { return false; } - // Moves are revealed only when game ends + // Moves are revealed only when game ends, but are highlighted on board static get ShowMoves() { - return "none"; + return "highlight"; } static get HIDDEN_DECODE() { @@ -157,6 +157,7 @@ export const VariantRules = class HiddenRules extends ChessRules { return moves; } + // Ignore randomness here: placement is always random asymmetric static GenRandInitFen() { let pieces = { w: new Array(8), b: new Array(8) }; // Shuffle pieces + pawns on two first ranks