summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-07 23:08:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-07 23:08:42 +0900
commit08c6c8b91735a0c4ea2b4356f69b7e50b28b6360 (patch)
tree4a97b3b4ccfa461d21fb8fa573587b264388dc6f /src
parentv4013 (diff)
downloadsharkey-08c6c8b91735a0c4ea2b4356f69b7e50b28b6360.tar.gz
sharkey-08c6c8b91735a0c4ea2b4356f69b7e50b28b6360.tar.bz2
sharkey-08c6c8b91735a0c4ea2b4356f69b7e50b28b6360.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/common/othello.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/othello.ts b/src/common/othello.ts
index 5d95fd2fe1..1da8ad36da 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;