Fix a minor bug
This commit is contained in:
parent
e1d06740a9
commit
02964186a8
1 changed files with 2 additions and 1 deletions
|
@ -92,10 +92,11 @@ export default class Game {
|
||||||
}
|
}
|
||||||
async round() {
|
async round() {
|
||||||
this.phase = 0;
|
this.phase = 0;
|
||||||
|
this.players.forEach((p: Player) => { p.stack = []; });
|
||||||
|
this.players.forEach((p: Player) => { p.flipped = []; });
|
||||||
await this.prepare(); // Phase 0
|
await this.prepare(); // Phase 0
|
||||||
this.phase = 1;
|
this.phase = 1;
|
||||||
this.lastPlayed = 0;
|
this.lastPlayed = 0;
|
||||||
this.players.forEach((p: Player) => { p.flipped = []; });
|
|
||||||
while (true) { // Phase 1
|
while (true) { // Phase 1
|
||||||
const p = this.players[this.playerTurn];
|
const p = this.players[this.playerTurn];
|
||||||
if (p.rank || p.disconnected) {
|
if (p.rank || p.disconnected) {
|
||||||
|
|
Loading…
Reference in a new issue