From 630f59055af607e892cf4cfed11afecaa3f49e0a Mon Sep 17 00:00:00 2001 From: Namonay Date: Sun, 24 Mar 2024 23:34:25 +0100 Subject: [PATCH] add: base backend interaction --- frontend/static/js/api/game/TicTacToeGame.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/static/js/api/game/TicTacToeGame.js b/frontend/static/js/api/game/TicTacToeGame.js index a6a3f2e..871a465 100644 --- a/frontend/static/js/api/game/TicTacToeGame.js +++ b/frontend/static/js/api/game/TicTacToeGame.js @@ -62,6 +62,13 @@ class TicTacToe return -1; targetCase = findSquare(x, this.rectsize * 3 * findPlace(x, this) + this.gap, this) + findSquare(y, this.rectsize * 3 * findPlace(y, this) + this.gap, this) * 3; console.log("TargetMorpion :" + targetMorpion + " targetCase :" + targetCase); + + + // if (sendCase(targetCase, targetMorpion)) // si la case est disponible + // putCase(targetCase, targetMorpion); // print the case + // else + // return ; + } DrawSuperMorpion()