From 8c9fe1093ea0cd8cffc9c6246e7d39b5dfb2fadc Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sat, 26 Jan 2019 11:30:30 +0900 Subject: [PATCH] Remove whiteP and blackP from Reversi (#3736) --- src/games/reversi/core.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/games/reversi/core.ts b/src/games/reversi/core.ts index a198e8dd2..bb27d6f80 100644 --- a/src/games/reversi/core.ts +++ b/src/games/reversi/core.ts @@ -100,20 +100,6 @@ export default class Reversi { return count(WHITE, this.board); } - /** - * 黒石の比率 - */ - public get blackP() { - return this.blackCount == 0 && this.whiteCount == 0 ? 0 : this.blackCount / (this.blackCount + this.whiteCount); - } - - /** - * 白石の比率 - */ - public get whiteP() { - return this.blackCount == 0 && this.whiteCount == 0 ? 0 : this.whiteCount / (this.blackCount + this.whiteCount); - } - public transformPosToXy(pos: number): number[] { const x = pos % this.mapWidth; const y = Math.floor(pos / this.mapWidth);