Gregory Shikhman b21a199ccd Initial hex grid generation in gmap.
Added small script that will be expanded to give backend web scripts
info on the map being parsed. Grid alignment is still incorrect and
the actual hexes are not exactly the right shape.
2009-07-21 22:07:23 +00:00

9 lines
195 B
Python

import os,sys
for infile in sys.argv[1:]:
map = open(infile,"r")
lines = map.readlines()
rows = len(lines) - 3
columns = lines[3].count(',')+1
print "%d rows x %d columns" % (rows,columns)