protected Man ParseManTransformation(Player player, string moveString) { Match match = Regex.Match(moveString, PATTERN_MAN_TRANSFORMATION); if (match.Success) { ManType manType = ManTypeUtility.ManFromGermanChar(match.Groups[1].Value); return(new Man(player, manType)); } return(null); }
public override string ToFritzString() { String output = string.Empty; output += ManTypeUtility.ManToEnglishChar(this.man.ManType); output += oldPosition.ToString(); if (capture) { output += "x"; } output += newPosition.ToString(); if (this.transformedMan != null) { output += ManTypeUtility.ManToEnglishChar(this.transformedMan.ManType); } return(output); }