five-on-it / packages/catalogue/src/city/draw
packages/catalogue/src/city/draw
Random city specs for the generators' gates (@foi/catalogue/testing's drawCitySpec): 300 to 700 m (a big one 1000 m, its grid four to six blocks each way), now and then a river across the map with a road along each bank, a turned grid of two to four blocks each way, a roundabout at the end of its middle street with roads out of its other arms (a main street across the town without a grid), a parkway ringing the town, spurs and closes off the grid, a hill with a lane up to its top, two to five districts in random styles, a park on a block. Drawn freely, so the solver refuses many of them, at their own paths. Never imported by the game.