fixes bug
This commit is contained in:
parent
7c91ca112e
commit
96dfc35b1e
1 changed files with 1 additions and 1 deletions
|
|
@ -478,7 +478,7 @@ export class Game {
|
||||||
const alreadyClosedPlayers = this.players.filter(
|
const alreadyClosedPlayers = this.players.filter(
|
||||||
(player) => player.closedRound
|
(player) => player.closedRound
|
||||||
);
|
);
|
||||||
if (alreadyClosedPlayers.length > 1) return;
|
if (alreadyClosedPlayers.length > 0) return; // TODO: check if this is correct with more than 2 players
|
||||||
|
|
||||||
const playerWithAllCardsRevealed = this.players.find((player) =>
|
const playerWithAllCardsRevealed = this.players.find((player) =>
|
||||||
player.knownCardPositions.every(
|
player.knownCardPositions.every(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue