internal static MoveList Quiets(Board position) { MoveList quietMoves = new MoveList(); position.CollectQuiets(m => quietMoves.Add(m, 0)); return(quietMoves); }
public static MoveList SortedQuiets(Board position, History history) { MoveList quiets = new MoveList(); position.CollectQuiets(m => quiets.Add(m, history.Value(position, m))); quiets.Sort(); return(quiets); }
internal static MoveList SortedCaptures(Board position) { MoveList captures = new MoveList(); position.CollectCaptures(m => captures.Add(m, ScoreMvvLva(m, position))); captures.Sort(); return(captures); }