Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

The results screen knows who wins #720

Open
1 of 2 tasks
TheoPannetier opened this issue Feb 10, 2023 · 0 comments
Open
1 of 2 tasks

The results screen knows who wins #720

TheoPannetier opened this issue Feb 10, 2023 · 0 comments
Labels
medior Suitable for medior devs

Comments

@TheoPannetier
Copy link
Contributor

TheoPannetier commented Feb 10, 2023

Depends

Context

The results screen should know who wins the game and display it, so it should be able to fetch this info from the game.

Test

Below is a proposed test, feel free to adapt as necessary.

// (720) The results screen knows who is winning
{
  game_view gv;
  player &player_two = gv.get_game().get_player(1);
  player_two.grow();
  const int winner = gv.get_results_screen().get_winner();
  assert(winner == 1);
}
TheoPannetier pushed a commit that referenced this issue Feb 10, 2023
@TheoPannetier TheoPannetier self-assigned this Feb 10, 2023
@TheoPannetier TheoPannetier added the medior Suitable for medior devs label Feb 11, 2023
@TheoPannetier TheoPannetier removed their assignment Feb 11, 2023
@janclod janclod assigned janclod and Luxwor and unassigned janclod and Luxwor Mar 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
medior Suitable for medior devs
Projects
None yet
Development

No branches or pull requests

3 participants