X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=c2cce62c642cd17bd1b06642560a9bd0b54a3719;hp=fec3df543d180067f14e105aef5949a3473ac69f;hb=298c42e63ae321526693e9ce418c4113af36e025;hpb=067c675b75072c496f9665c4bf801cdc3d40398d diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index fec3df54..c2cce62c 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -1480,17 +1480,15 @@ Vue.component('my-game', { }, }) -// TODO: keep moves list here -get lastMove() - { - const L = this.moves.length; - return (L>0 ? this.moves[L-1] : null); - } - -// here too: - move.notation = this.getNotation(move); - // Hash of current game state *after move*, to detect repetitions - move.hash = hex_md5(this.getBaseFen() + this.getTurnFen() + this.getFlagsFen()); +//// TODO: keep moves list here +//get lastMove() +// { +// const L = this.moves.length; +// return (L>0 ? this.moves[L-1] : null); +// } +// +//// here too: +// move.notation = this.getNotation(move); //TODO: confirm dialog with "opponent offers draw", avec possible bouton "prevent future offers" + bouton "proposer nulle" //+ bouton "abort" avec score == "?" + demander confirmation pour toutes ces actions, //comme sur lichess