public MoveList Clone() { var ml = new MoveList(); foreach (var move in this) { ml.Add(move); } return(ml); }
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); }