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

The results screen knows who wins #720

Description

@TheoPannetier

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mediorSuitable for medior devs

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions