Exemplo n.º 1
0
 public virtual TickTackToePlayer ChangeActivePlayer(TickTackToePlayer player)
 {
     if (player == null || Player1 == null || Player2 == null)
     {
         throw new InvalidOperationException("Players have not been setup");
     }
     if (player == Player1)
     {
         return(Player2);
     }
     return(Player1);
 }
Exemplo n.º 2
0
 public abstract TickTackToeGameResult TakeTurn(TickTackToePlayer player);