Skip to content

Instantly share code, notes, and snippets.

@Iktomist
Created December 1, 2011 15:00
Show Gist options
  • Save Iktomist/1417377 to your computer and use it in GitHub Desktop.
Save Iktomist/1417377 to your computer and use it in GitHub Desktop.
formats audouard coordinates, for use with games of shusaku and ingrainia-would-audibly-fume
#!/usr/bin/env python
# coding=UTF-8
import os, sys, tempfile
for file in sys.argv[1:]:
f = open(file)
fs = f.read()
r1 = fs.replace('a','a ')
r2 = r1.replace('b','b ')
r3 = r2.replace('c','c ')
r4 = r3.replace('d','d ')
r5 = r4.replace('. ','.\n')
f.close()
print r5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment