✌️
This commit is contained in:
parent
59fbf693ed
commit
a8d086596f
2 changed files with 39 additions and 0 deletions
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue