Create a rating system for a hexagon's surface

How to create an optimization in order to create a rating system for this hexagon’s surface. My idea is to generate this surface with three types of hexagons by their heights where the green is 0, blue is 1 and purple is 2. But I need to create an optimization for this design for example a rating system. Maybe analyzing the best position of them. The idea is these modules blue and purple should always be beside green in order to have a good score.
HoneyComb4.gh (44.8 KB)