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

The game has a Results screen #718

Open
Tracked by #719 ...
TheoPannetier opened this issue Feb 10, 2023 · 2 comments
Open
Tracked by #719 ...

The game has a Results screen #718

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

Comments

@TheoPannetier
Copy link
Contributor

TheoPannetier commented Feb 10, 2023

Context

When the game is over, we need to display a screen to let the players know who has won this round. A first step is to create a structure for this screen.
First, decide what kind of screen we want: a window that shows up in the middle of the Game view? A new full-screen view? A pop-up? Once you have decided, make sure to write a test to ensure this screen exists.
The actual contents of the screen can be dealt with afterwards.

Test

I have added a draft test in game_view.cpp, feel free to change it to match your idea of the results screen

#ifdef FIX_ISSUE_718
  // (718) A game_view has a Results screen
  {
    game_view gv;
    gv.get_results_screen();
  }
  #endif // FIX_ISSUE_718
@TheoPannetier
Copy link
Contributor Author

Done, the game now has a results screen

@TheoPannetier
Copy link
Contributor Author

I lied

@TheoPannetier TheoPannetier reopened this Mar 8, 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

1 participant