Wed Jul 5 10:11:00 UTC 2023 inscode

上级 41133aa6
...@@ -177,15 +177,11 @@ function getScore(board, row, col, win_size) { ...@@ -177,15 +177,11 @@ function getScore(board, row, col, win_size) {
let _col = col + x let _col = col + x
while (true) { while (true) {
if (inRange(_row, ROW) && inRange(_col, COL) && board[_row][_col]) { if (inRange(_row, ROW) && inRange(_col, COL) && board[_row][_col] === is_white) {
res += 1 res += 1
_row += y _row += y
_col += x _col += x
} else {
if (_row >= 0 && _col >= 0) {
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册