diff --git a/public/gameClient.js b/public/gameClient.js index 2f37c9492da3ed383aa303c638ba68281a587536..63805ad7d6c35dba4741e0317cb35720b38cde3b 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"; + } } } };