This commit is contained in:
syuilo
2018-03-10 13:07:17 +09:00
parent 59fbf693ed
commit a8d086596f
2 changed files with 39 additions and 0 deletions

View File

@ -49,6 +49,15 @@ export default class Othello {
b: this.blackP,
w: this.whiteP
}];
// ゲームが始まった時点で片方の色の石しかないか、始まった時点で勝敗が決定するようなマップの場合がある
if (this.canPutSomewhere('black').length == 0) {
if (this.canPutSomewhere('white').length == 0) {
this.turn = null;
} else {
this.turn = 'white';
}
}
}
/**