Пример #1
0
        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);
        }
Пример #2
0
        internal static MoveList SortedCaptures(Board position)
        {
            MoveList captures = new MoveList();

            position.CollectCaptures(m => captures.Add(m, ScoreMvvLva(m, position)));
            captures.Sort();
            return(captures);
        }