Changeset - f0b8120281b9
[Not reviewed]
default
9 0 8
Laman - 8 years ago 2017-01-21 21:08:33

saner directory structure
9 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/diana.py
Show inline comments
 
file renamed from src/diana/diana.py to src/diana.py
 
import os
 
import re
 
import sys
 
 
import go
 
import sgf
 
import go
 
 
if len(sys.argv)>1:
 
	files=sys.argv[1:]
 
else:
 
	sys.exit("no input file specified")
 
 
movesPerDiagram=75
 
minMovesPerDiagram=10
 
 
t=sys.stdout
 
c=28
 
padding=15
 
@@ -121,25 +121,25 @@ class Tikz:
 
		labelColor="white" if color=="b" else "black"
 
		if (not self.highNumbers) and isinstance(label,int) and label%100!=0: label=label%100 # dost neobratná logika
 
		
 
		self.content+=r'  \filldraw[draw=black,fill={0}] ({1}\boardSquare,{2}\boardSquare) circle[radius=0.5\boardSquare] node[color={3}]{{{4}}};'.format(fill,x,18-y,labelColor,label)+'\n'
 
		
 
	def getContent(self):
 
		return self.content+self.footer
 
 
 
def processFile(fileName):
 
	shortName="".join(re.split(r'[/\\]',fileName)[-1].split('.')[:-1])
 
	
 
	game=go.Go()
 
	game= go.Go()
 
	global t
 
	
 
	record= sgf.Sgf(open(fileName, 'r', encoding="utf-8").read())
 
	moves=record.getMoves()
 
 
	localBoard=dict()
 
	overlays=""
 
	letters=dict()
 
	letter='a'
 
 
	diagramsNeeded=(len(moves)-minMovesPerDiagram)//movesPerDiagram+1
 
	moveNumber=0
src/diana/__init__.py
Show inline comments
 
deleted file
src/go.py
Show inline comments
 
file renamed from src/diana/go.py to src/go.py
src/sgf.py
Show inline comments
 
file renamed from src/diana/sgf.py to src/sgf.py
src/sgfParser.py
Show inline comments
 
file renamed from src/diana/sgfParser.py to src/sgfParser.py
src/tests/__init__.py
Show inline comments
 
file renamed from src/diana/tests/__init__.py to src/tests/__init__.py
src/tests/data/kogos.sgf
Show inline comments
 
file renamed from src/diana/tests/data/kogos.sgf to src/tests/data/kogos.sgf
src/tests/data/simple.sgf
Show inline comments
 
file renamed from src/diana/tests/data/simple.sgf to src/tests/data/simple.sgf
src/tests/testSgfParser.py
Show inline comments
 
file renamed from src/diana/tests/sgfParser.py to src/tests/testSgfParser.py
0 comments (0 inline, 0 general)