mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-04 16:14:53 +01:00
Fix bug
This commit is contained in:
parent
d78fa2daf8
commit
08c6c8b917
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue