public bool Equals(Board other) { foreach (Piece piece in other.Pieces) { if (!Pieces.Contains(piece)) { return(false); } } return(true); }
public bool CheckEndPattern() { foreach (Piece piece in BoardSetting.EndPieces) { if (!Pieces.Contains(piece)) { return(false); } } return(true); }