Beispiel #1
0
    public void SimulatePlay()
    {
        Random rnd         = new Random();
        int    winnerScore = 0;

        if (rnd.Next(0, 2) == 0)
        {
            Winner = player1;
            Loser  = player2;

            winnerScore = player1Score = 12;
        }
        else
        {
            Winner = player2;
            Loser  = player1;

            winnerScore = player2Score = 12;
        }

        Winner.Winner();
        Loser.Loser();

        Winner.AddScore(winnerScore, Loser);
    }