The application of the Voronoi Algorithm to a map's political boundaries as two players place bases or cities. It was written in Unity and essentially the system continuously loops over each cube and determines which of the existing bases (or mouse) is closest. One quirk, is there is a limit to how far away a cube can be or it will simply remain neutral.
Click to place a Base. The team sides will automatically alternate, forever.