public CricketGame(int overs, int target, BatsmanType batsmanType, BowlerType bowlerType, IPlayerFactory playerFactory, IOutStrategyFactory outstrategyFactory) { BallCount = overs * 6; Target = target; Overs = overs; PlayerFactory = playerFactory; Bowler = PlayerFactory.GetBowler(bowlerType); Batsman = PlayerFactory.GetBatsman(batsmanType); outStrategyFactory = outstrategyFactory; outStrategy = outstrategyFactory.GetOutStrategy(batsmanType); }