Ejemplo n.º 1
0
        public PieceBasedExtractor(IConfig config)
        {
            _thresholdNextPiece    = config.Read("Game.Tetris.Extractor.ThresholdNextPiece", 0.2);
            _thresholdCurrentPiece = config.Read("Game.Tetris.Extractor.ThresholdCurrentPiece", 0.5);
            _thresholdMovedPiece   = config.Read("Game.Tetris.Extractor.ThresholdMovedPiece", 0.5);

            var matcher = new TemplateMatcher();

            _pieceExtractor = new PieceExtractor(matcher);
        }
Ejemplo n.º 2
0
 public void Init()
 {
     _templateMatcher = new TemplateMatcher();
     _pieceExtractor  = new PieceExtractor(_templateMatcher);
 }