public AlphaEngine Create(Map map) { AlphaEngine alphaEngine = new AlphaEngine(map); if (_isDocSummerized) { alphaEngine = new AlphaEngineDocDecorator(alphaEngine, summerizedDocBoard); } if (isQueryPretty) { alphaEngine = new AlphaEngineQueryDecorator(alphaEngine, prettyQueryBoard); } return(alphaEngine); }
public AlphaEngineDocDecorator(AlphaEngine decorate, int board) : base(decorate) { this.board = board; }
protected override AlphaEngine CreateThisEngine(AlphaEngine decorate) => new AlphaEngineDocDecorator(decorate, board);