Player movement #38

Merged
fabianthome merged 14 commits from player-movement into main 2021-06-18 08:20:22 +00:00
Showing only changes of commit a5ec342005 - Show all commits

View File

@ -14,6 +14,8 @@ class Game {
let move_to_next_round = false;
// move on to next player; skip dead players
do {
if(this.players.length === 0) break;
this.currentPlayerIndex++;
if (this.currentPlayerIndex >= this.players.length) {
this.currentPlayerIndex = 0;