diff options
Diffstat (limited to 'scripts/mapgen.py')
-rw-r--r-- | scripts/mapgen.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/mapgen.py b/scripts/mapgen.py new file mode 100644 index 0000000..9595061 --- /dev/null +++ b/scripts/mapgen.py @@ -0,0 +1,20 @@ +from random import randint + +high = [' ',',','.',':',';'] +low = ['O','0'] + +x = 300 +y = 100 + +f = open("map","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() |