Fix a minor bug

This commit is contained in:
Anthony Wang 2021-05-09 13:17:24 -05:00
parent e1d06740a9
commit 02964186a8
Signed by: a
GPG key ID: 6FD3502572299774

View file

@ -92,10 +92,11 @@ export default class Game {
}
async round() {
this.phase = 0;
this.players.forEach((p: Player) => { p.stack = []; });
this.players.forEach((p: Player) => { p.flipped = []; });
await this.prepare(); // Phase 0
this.phase = 1;
this.lastPlayed = 0;
this.players.forEach((p: Player) => { p.flipped = []; });
while (true) { // Phase 1
const p = this.players[this.playerTurn];
if (p.rank || p.disconnected) {