Skip to content

Instantly share code, notes, and snippets.

@kurokikaze
kurokikaze / process.py
Last active August 29, 2015 13:56
Переработка текстовых экспортированных кубов с CubeTutor в формат, подходящий для SPMF
import re, os
from random import shuffle
r_unwanted = re.compile("[\n\t\r]")
r_file = re.compile("cube([\d]+).txt") # шаблон имени файла
dic = dict()
num = 1000 # с чего начинаем нумерацию карт
censored = ["Temple Garden",
"Blood Crypt",