示例#1
0
        public MoveList Clone()
        {
            var ml = new MoveList();

            foreach (var move in this)
            {
                ml.Add(move);
            }

            return(ml);
        }
示例#2
0
        public static MoveList ParseMoveList(String s)
        {
            var ml          = new MoveList();
            var splitString = s.Split('|');
            var stringMoves = splitString[1].Split(';');

            foreach (var stringMove in stringMoves)
            {
                var move = Move.FromString(stringMove);
                ml.Add(move);
            }
            ml.Score = Convert.ToInt32(splitString[0]);
            return(ml);
        }