added the logic for the gamestate if a player has won (#2)

master
Evan Powell 4 years ago
parent ce030c346e
commit 152f1fa776

@ -302,6 +302,12 @@ export class GameStateService {
}
}
let winner = this.get_winner();
if(winner) {
this.current_state = GameState.PlayerVictory;
this.current_player = winner;
}
}

Loading…
Cancel
Save