get("#485") -- containsColor -- Job: Distinguish two classes of images -- Two images are supplied at once, one of each class. -- Task is to find out if the two images are swapped or not. -- -- input variables: img1, img2 -- output: a function returning true or false (swapped or no) -- -- variables set by learner: color, class2sampled return function() flag1 = containsColor(img1, color) flag2 = containsColor(img2, color) if flag1 == flag2 then return false end return flag1 == class2sampled end