/// <summary> /// Constructor /// </summary> /// <param name="plieDepth">Depth to plie</param> /// <param name="doTranstable">Use transposition table</param> public MiniMax(int plieDepth, bool doTranstable) { this.plieDepth = plieDepth; this.transtable = doTranstable; if (this.transtable) table = new TranspositionTable(); }
/// <summary> /// Constructor /// </summary> /// <param name="plieDepth">Depth to plie</param> /// <param name="doMoveOrdering">Use move ordering</param> /// <param name="doTranstable">Use transposition table</param> public AlphaBeta(int plieDepth, bool doMoveOrdering, bool doTranstable) { this.plieDepth = plieDepth; this.moveOrdering = doMoveOrdering; this.transtable = doTranstable; if (this.transtable) table = new TranspositionTable(); }