Work on sockets + challenge system
[vchess.git] / _tmp / TODO
index cb4b8a9..86d36fe 100644 (file)
--- a/_tmp/TODO
+++ b/_tmp/TODO
@@ -1,3 +1,33 @@
+--> correspondance: stocker sur serveur lastMove + uid + color + movesCount + gameId + variant + timeleft
+fin de partie corr: supprimer partie du serveur au bout de 7 jours (arbitraire)
+// TODO: au moins l'échange des coups en P2P ? et game chat ?
+
+// TODO: surligner "hall" (menu) si nouveau défi perso (reçu) et pas affichage courant
+// de même surligner "my games" si c'est à nous de jouer dans une partie (corr)
+// ==> myGames componentn + Game component must listen for "new move" events
+
+Hall + problems : similar pages, with "New game[problem]" button
+with a list of variants.
+--> but display all challenges (and all problems)
+Possible filter: write a few variant names, to keep only these.
+--> In settings !
+
+Use better-sqlite3 instead of node-sqlite3:
+https://www.npmjs.com/package/better-sqlite3
+
+Canvas for hexagonal board Vue reactivity :
+https://stackoverflow.com/questions/40177493/drawing-onto-a-canvas-with-vue-js
+custom directives ?
+
+Desktop notifications:
+https://developer.mozilla.org/fr/docs/Web/API/notification
+
+Think about this:
+https://alligator.io/vuejs/component-communication/
+https://alligator.io/vuejs/global-event-bus/
+
+CRON task remove unlogged users, finished corr games after 7 days, individual challenges older than 7 days
+
 tell opponent that I got the move, for him to start timer (and lose...)
   --> no, not needed and impossible if everybody is offline
        ==> just store this time locally (cheating possible but...)
@@ -68,3 +98,7 @@ Mode contre ordinateur : seulement accessible depuis onglet "Rules" (son princip
 Hexachess: McCooey et Shafran (deux tailles, randomisation OK)
 http://www.math.bas.bg/~iad/tyalie/shegra/shegrax.html
 http://www.quadibloc.com/chess/ch0401.htm
+
+Inspiration for refactor:
+https://github.com/triestpa/Vue-Chess/blob/master/src/components/chessboard/chessboard.js
+https://github.com/gustaYo/vue-chess