Ejemplo n.º 1
0
    public override string SolvePart2()
    {
        IGame game = new Game2(_deck1.GetCopy(), _deck2.GetCopy());

        game.Play();
        if (game.Winner is null)
        {
            throw new InvalidOperationException("No winner after the game.");
        }
        int score = game.Winner.Score;

        return(score.ToString());
    }