public Board Copy() { var result = new Board(); result.Black = Black.Copy(); result.White = White.Copy(); return(result); }
public static RealColor Average(IEnumerable <RealColor> values) { RealColor col = Black.Copy(); foreach (RealColor val in values) { col.Add(val); } col.Multiply(1f / (float)values.Count()); return(col); }
public static RealColor Average(RealColor[] values) { RealColor col = Black.Copy(); for (int x = 0; x < values.Length; x++) { col.Add(values[x]); } col.Multiply(1f / (float)values.Length); return(col); }