Description
Create the entrypoint that the CLI and the service call, something like generate_tile(seed, x, y). Work out the tile seed using the function from the previous ticket, build a store and a pipeline for the region, hand them to #4, and return the finished grid.
Take the sampler as an argument rather than building it in here so this can be tested with a fake.
Testing:
- Assert the returned grid is one tile at full resolution
- Assert the same seed and coordinate twice give identical grids
- Assert two different coordinates give different grids
- Assert the sampler was handed the tile seed and not the global seed
Description
Create the entrypoint that the CLI and the service call, something like
generate_tile(seed, x, y). Work out the tile seed using the function from the previous ticket, build a store and a pipeline for the region, hand them to #4, and return the finished grid.Take the sampler as an argument rather than building it in here so this can be tested with a fake.
Testing: