You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
386 B
Python
16 lines
386 B
Python
5 years ago
|
|
||
|
from ebermergen.lib import generate_map
|
||
|
|
||
|
|
||
|
class Map:
|
||
|
def __init__(self, dimensions):
|
||
|
self.dimensions = dimensions
|
||
|
self.terrain = generate_map(dimensions)
|
||
|
|
||
|
def get_positions(self):
|
||
|
positions = set()
|
||
|
for x in range(self.dimensions[0]):
|
||
|
for y in range(self.dimensions[1]):
|
||
|
positions.add((x, y))
|
||
|
return positions
|