fix
This commit is contained in:
@ -97,7 +97,7 @@ export class DominoesGame extends EventEmitter {
|
||||
tiles.push(...player.hand);
|
||||
}
|
||||
const canPlay = tiles.some(tile => tile.pips[0] === freeEnds[0] || tile.pips[1] === freeEnds[0] || tile.pips[0] === freeEnds[1] || tile.pips[1] === freeEnds[1]);
|
||||
return !canPlay;
|
||||
return this.blockedCount >= 4 && !canPlay;
|
||||
}
|
||||
|
||||
isGameOver(): boolean {
|
||||
|
Reference in New Issue
Block a user