From 08c6c8b91735a0c4ea2b4356f69b7e50b28b6360 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Mar 2018 23:08:42 +0900 Subject: [PATCH] Fix bug --- src/common/othello.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/othello.ts b/src/common/othello.ts index 5d95fd2fe..1da8ad36d 100644 --- a/src/common/othello.ts +++ b/src/common/othello.ts @@ -216,7 +216,7 @@ export default class Othello { // 右下 iterate = createIterater(); - for (let c = 0, i = 1; i <= Math.min(BOARD_SIZE - targetx, BOARD_SIZE - targety); c++, i++) { + for (let c = 0, i = 1; i < Math.min(BOARD_SIZE - targetx, BOARD_SIZE - targety); c++, i++) { if (iterate(targetx + i, targety + i)) { res.push([3, c]); break;