Wed Jun 28 07:07:00 UTC 2023 inscode

上级 691cfb00
...@@ -28,7 +28,6 @@ export function checkWin({ row, col, board, player, win_size, direction }) { ...@@ -28,7 +28,6 @@ export function checkWin({ row, col, board, player, win_size, direction }) {
const pieceType = player ?? board[row][col] const pieceType = player ?? board[row][col]
let res = [] let res = []
const _directions = direction ? [direction] : directions; const _directions = direction ? [direction] : directions;
for (let i = 0; i < _directions.length; i++) { for (let i = 0; i < _directions.length; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册