Given a square two dimensional array of a fixed size, say 100x100, with integer values ranging from 1-16, how would you go about finding the index/indices of a point/points with the most amount of unique values surrounding it? The closer the unique values are to the point, the better its "score" is and the more likely it is to be picked.
If this script was properly made, and, say the 2D array it was given had 4 degrees of symmetry along the diagonals, the script would pick a point somewhere along the diagonal as the most "unique" point.
I'm not sure if I'm properly describing what I want the script to do nor if it is possible, but if anyone has any ideas I would be interested in hearing them.