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

master
Evan Powell 4 years ago
parent ce030c346e
commit 152f1fa776

@ -301,7 +301,13 @@ export class GameStateService {
throw new InvalidAdvanceStateError("the player has not fired a missle");
}
}
let winner = this.get_winner();
if(winner) {
this.current_state = GameState.PlayerVictory;
this.current_player = winner;
}
}

Loading…
Cancel
Save