This commit is contained in:
Jose Conde 2024-07-25 16:20:22 +02:00
parent f52bea91ac
commit 8fb6fac75d
2 changed files with 4 additions and 2 deletions

View File

@ -3,9 +3,11 @@ All notable changes to this project will be documented in this file.
## Unreleased
## 0.1.5 - 2024-07-24
## 0.1.5 - 2024-07-25
### Added
- socket.io room management
### Fixed
- Blocked game not waiting for all turns to complete
## 0.1.4 - 2024-07-20

View File

@ -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 {