summaryrefslogtreecommitdiff
path: root/scripts/mapgen.py
blob: a3d4b236111ed1433e23d2a1a4b7c2f8e1942d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from random import randint

high = [' ',',','.',':',';']
low = ['O','0']

x = 500 
y = 500

f = open("map.txt","w+")

for i in range(y):
    for j in range(x):
        k = randint(1,50)
        if k == 1:
            f.write(low[randint(0,len(low)-1)])
        else:
            f.write(high[randint(0,len(high)-1)])
    f.write('\n')

f.close()