public RealPlayerVsRealPlayer(PlayerFactory playerFactory, ControlEnums.Player player)
        {
            _realPlayer1 = playerFactory.BuildRealPlayer();
            _realPlayer2 = playerFactory.BuildRealPlayer();

            _realPlayer1.Player = player;
            _realPlayer2.Player = player == ControlEnums.Player.O ? ControlEnums.Player.X : ControlEnums.Player.O;
        }
예제 #2
0
 public RealPlayerVsRealPlayer BuildRealPlayerVsRealPlayer(ControlEnums.Player player)
 {
     return new RealPlayerVsRealPlayer(_playerFactory, player);
 }