Skip to content

generateMap beta ​

Function of @v12-engine/engine

ts
export declare function generateMap(generator: MapGenerator, options: GeneratorOptions, registry: Registry): {
    map: GameMap;
    problems: MapProblem[];
    seed: number;
};

The map a generator makes of options: its passes run in order on a map of the size and players asked, with the game's tiles; then checked (checkMap). A map with a problem that keeps it from being played (a start cut off from the others, or where nothing walks) is thrown away and the next seed tried, tries times; the last is given with its problems. The map says how it was made (GameMap.generated)