How would you do the following:
I want to have a list of pictures that has tags on them (I am thinking maybe an array) which describes what is in the picture. For instance
Code:
imageTags = [Caucasian, BlueLingerie, Brunette]
I would like every time a person is edging to a picture - the tags are registered.
In the final part, I would like to evaluate which tags have been edged to the most, and randomly select a final image that has that tag.
I am thinking of making an integer variable for each tag - determine which integer is the largest (the tag which has been triggered the most) - and basically make a for-loop which runs through every single picture to determine if it has the tag - if it has add it to an array - and then randomly select one from the array.
I think there might be a much more elegant solution, as I feel this is a huge workaround.