From 5c11abb19cb0378d740ab833a7e89d3da0c74c47 Mon Sep 17 00:00:00 2001 From: 63db3122f0950a2aef64df95 <63db3122f0950a2aef64df95@devide> Date: Wed, 28 Jun 2023 07:07:00 +0000 Subject: [PATCH] Wed Jun 28 07:07:00 UTC 2023 inscode --- src/utils/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index 68da472..fc2d952 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -28,7 +28,6 @@ export function checkWin({ row, col, board, player, win_size, direction }) { const pieceType = player ?? board[row][col] let res = [] - const _directions = direction ? [direction] : directions; for (let i = 0; i < _directions.length; i++) { -- GitLab