Ejemplo n.º 1
0
        private static Score CalculateScore(IMove player1Move, IMove player2Move)
        {
            if (player1Move.Beats(player2Move))
            {
                return(Score.Player1Wins);
            }

            if (player2Move.Beats(player1Move))
            {
                return(Score.Player2Wins);
            }

            return(Score.Draw);
        }