From 542dcc266a5fd90bbef95776237ba4fbd5b6c357 Mon Sep 17 00:00:00 2001
From: zm343 <2639-zm343@users.noreply.gitlab.cci.drexel.edu>
Date: Fri, 30 Aug 2024 16:53:18 +0000
Subject: [PATCH] Game Border Code

---
 public/gameClient.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/public/gameClient.js b/public/gameClient.js
index 2f37c94..63805ad 100644
--- a/public/gameClient.js
+++ b/public/gameClient.js
@@ -82,6 +82,16 @@ let gameBoardHandler = (event) => {
         );
         ctx.fillStyle = "white";
       }
+      if (board[i][j].type === 5) {
+        ctx.fillStyle = "black";
+        ctx.fillRect(
+          j * widthStep + 1,
+          i * heightStep + 1,
+          widthStep - 2,
+          heightStep - 2,
+        );
+        ctx.fillStyle = "white";
+      }
     }
   }
 };
-- 
GitLab