From cd8979e187a007a9c41ea4015b2b5099e2f4816c Mon Sep 17 00:00:00 2001
From: Thomas de Brettes <thomas.de-brettes@etu.ec-lyon.fr>
Date: Tue, 1 Apr 2025 17:57:20 +0200
Subject: [PATCH] Update index.js

---
 htdocs/index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/htdocs/index.js b/htdocs/index.js
index ed85c5b..2e24b2a 100644
--- a/htdocs/index.js
+++ b/htdocs/index.js
@@ -10,7 +10,7 @@ const board = [
 ];
 const player = {
     host: false,
-    playedMove: board,
+    //playedMove: board,
     roomId: null,
     username: "",
     socketId: "",
@@ -324,6 +324,7 @@ function selectPiece(row, col) {
 }
 
 function highlightMoves(tour,piece, row, col) {
+    let direction = 0;
     if (player.isBlackPlayer===false){
         direction=-1;
     }
-- 
GitLab