Advance on problems page
[vchess.git] / public / javascripts / components / board.js
index e786e89..2861cf7 100644 (file)
@@ -8,7 +8,9 @@
                        vr: null, //object to check moves, store them, FEN..
        orientation: "w", //useful if click on "flip board"     
        
-       
+
+// TODO: watch for property change "fen"
+// send event after each move, to notify what was played
        
        const [sizeX,sizeY] = [V.size.x,V.size.y];
                // Precompute hints squares to facilitate rendering
                                this.possibleMoves = [];
                                if (this.score == "*")
                                {
+
+// TODO: essentially adapt this (all other things do not change much)
+// if inside a real game, mycolor should be provided ? (simplest way)
+
                                        const color = ["friend","problem"].includes(this.mode)
                                                ? this.vr.turn
                                                : this.mycolor;