Add map generator
parent
aee29baad0
commit
bca41f2231
@ -0,0 +1,7 @@
|
||||
import random
|
||||
|
||||
TERRAIN_TYPES = [0, 1, 2, 3]
|
||||
|
||||
|
||||
def generate_map(x_len, y_len):
|
||||
return [[random.choice(TERRAIN_TYPES) for y in range(y_len)] for x in range(x_len)]
|
@ -1,2 +1,4 @@
|
||||
flask==1.1.1
|
||||
python-dotenv==0.10.3
|
||||
python-dotenv==0.10.3
|
||||
autopep8==1.4.4
|
||||
pylint==2.4.4
|
Loading…
Reference in New Issue