Source

RockPaperScissors / RockPaperScissors / RockPaperScissors.cs

Full commit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RockPaperScissors
{
  public class RockPaperScissors
  {
    public Player Play( string player1Move, string player2Move )
    {
      switch ( player1Move )
      {
        case "R":
          if ( player2Move == "S" ) return Player.First;
          else return Player.Second;
        case "S":
          if ( player2Move == "P" ) return Player.First;
          else return Player.Second;
        case "P":
          if ( player2Move == "R" ) return Player.First;
          else return Player.Second;
        default:
          throw new NotSupportedException( "No matches" );
      }
    }
  }
}