This commit is contained in:
syuilo 2018-03-07 23:08:42 +09:00
parent d78fa2daf8
commit 08c6c8b917

View File

@ -216,7 +216,7 @@ export default class Othello {
// 右下 // 右下
iterate = createIterater(); 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)) { if (iterate(targetx + i, targety + i)) {
res.push([3, c]); res.push([3, c]);
break; break;