Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (10 sloc) 0.279 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
import sys

def main(f):
tiles = open(f, 'r').readlines()
tiles = "".join(tiles).replace("\n","")
tiles = "".join(['{0},'.format(x) for x in tiles])[:-1]
tiles = "land = [" + tiles + "]"
print tiles

if __name__ == "__main__":
if len(sys.argv) == 2:
main(sys.argv[1])

Something went wrong with that request. Please try again.