From 37ef9094a8b3d457ae2d397cd4abb046fa4f24fa Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sat, 27 Apr 2019 07:13:52 +0900 Subject: [PATCH] =?UTF-8?q?Misskey=20v11=20=E5=AF=BE=E5=BF=9C=20(#32)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/reversi/back.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/reversi/back.ts b/src/modules/reversi/back.ts index a0f3226..68bcd9d 100644 --- a/src/modules/reversi/back.ts +++ b/src/modules/reversi/back.ts @@ -107,10 +107,10 @@ class Session { }); // リバーシエンジン初期化 - this.o = new Reversi(this.game.settings.map, { - isLlotheo: this.game.settings.isLlotheo, - canPutEverywhere: this.game.settings.canPutEverywhere, - loopedBoard: this.game.settings.loopedBoard + this.o = new Reversi(this.game.map, { + isLlotheo: this.game.isLlotheo, + canPutEverywhere: this.game.canPutEverywhere, + loopedBoard: this.game.loopedBoard }); //#region 各マスの価値を計算しておく @@ -280,7 +280,7 @@ class Session { }); // ロセオならスコアを反転 - if (this.game.settings.isLlotheo) score = -score; + if (this.game.isLlotheo) score = -score; // 接待ならスコアを反転 if (this.isSettai) score = -score; @@ -333,7 +333,7 @@ class Session { let score; - if (this.game.settings.isLlotheo) { + if (this.game.isLlotheo) { // 勝ちは勝ちでも、より自分の石を少なくした方が美しい勝ちだと判定する score = this.o.winner ? base - (this.o.blackCount * 100) : base - (this.o.whiteCount * 100); } else {