five-on-it / packages/catalogue/src/testing
packages/catalogue/src/testing
Random level specs for the generators' gates (@foi/catalogue/testing): a drawer per template makes a valid spec from a seed, on createPrng, so a failure is one number away from its replay. drawRegionSpec draws a region (its size, biome, features, roads and landuse, rich or plain, towns only when asked: they need Blender), and drawTownSpec a grid town (its blocks, avenues, themed districts, parks, dressed or not), and drawCitySpec a city (city/draw.ts). The runner that builds and audits them is the worker's (npm run level:fuzz). Never imported by the game.
Functions
References
drawCitySpec
Re-exports drawCitySpec