summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-01-26 11:30:30 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-01-26 11:30:30 +0900
commit95d4937e162f19d1ac9dcad8c7fb3ba8124bd448 (patch)
tree33b0c61d4372efe5ed372c2b97b5724c306c236f /src
parentUpdate style.styl (#3986) (diff)
downloadmisskey-95d4937e162f19d1ac9dcad8c7fb3ba8124bd448.tar.gz
misskey-95d4937e162f19d1ac9dcad8c7fb3ba8124bd448.tar.bz2
misskey-95d4937e162f19d1ac9dcad8c7fb3ba8124bd448.zip
Remove whiteP and blackP from Reversi (#3736)
Diffstat (limited to 'src')
-rw-r--r--src/games/reversi/core.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/games/reversi/core.ts b/src/games/reversi/core.ts
index a198e8dd27..bb27d6f803 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);