Use files.
Abstract this.
Write-map-as-dot
Write-map-as-png
Random-map
Test `write-map-as-png'.