The game ends in one of two ways:
1) As soon as 2 rows of buildings are completed—buildings must fill the designated length, and all buildings in those 2 rows must have a Rooftop.
2) It is impossible to complete any more buildings; no more Rooftops or Floor cubes are available.
EXAMPLE:
The upper and middle rows are complete. The scores of the buildings in the upper row are doubled because of the Mayor.
The Building Permits in this example have been placed in all 3 rows. The upper row has been made 2 lots shorter while the middle row and bottom row were made longer by 1 and 3 lots, respectively.