From a760b9339a98281a8a1072d03dbf41f08eb696a6 Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 18 Nov 2015 19:59:47 -0600 Subject: shovelling --- scripts/mapgen.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/mapgen.py (limited to 'scripts/mapgen.py') 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() -- cgit v1.2.3