WMICraft/algorithms/genetic/map_generator.py
2022-05-31 22:13:16 +02:00

18 lines
503 B
Python

from map_importer_exporter import export_map
from genome import Genome
from common import get_islands
def main() -> None:
example_genome = Genome()
print(example_genome.knights_red)
print(example_genome.knights_blue)
print(example_genome.grid)
islands = get_islands(example_genome.grid, example_genome.knights_red)
print(f'Roots {islands} and islands count {len(islands)}')
# export_map(example_genome.grid) fixme: FileNotFoundError
if __name__ == '__main__':
main()