Esempio n. 1
0
        internal static MoveList Quiets(Board position)
        {
            MoveList quietMoves = new MoveList();

            position.CollectQuiets(m => quietMoves.Add(m, 0));
            return(quietMoves);
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        internal static MoveList SortedCaptures(Board position)
        {
            MoveList captures = new MoveList();

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