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); }
public void Init() { _templateMatcher = new TemplateMatcher(); _pieceExtractor = new PieceExtractor(_templateMatcher); }