Python脚本:sgf2asy.py - nixBlog
关于Python函数的默认参数
Python走迷宫,递归

Python脚本:sgf2asy.py

nix posted @ 2012年1月26日 12:39 in Python with tags python SGF 围棋 棋谱 asy , 3647 阅读

 

项目地址: https://github.com/nixzhu/sgf2asy

简单来说,就是将SGF格式的围棋棋谱变成 Asymptote 格式的矢量图脚本。

原来我想写一些围棋方面的文档,也想自己整理一些棋谱,或者每个礼拜出个Kindle版的棋谱,用PDF格式,那么使用矢量图会看着很舒服。而且,控制脚本,就可以输出一盘棋不同阶段的图像,还可以将棋谱里的评论提出来作为文档的文字。如果这一切都是自动化的肯定很舒服。

截止到2012-01-26,脚本基本可以工作,还要处理一些棋盘方向、坐标重复以及很重要的棋谱分支情况。现在能生成棋谱树,但是还没有实现分支输出。

 

http://ubuntuone.com/11jdRTzXPGkeci5W2rZaZ9

这是我原来写的一个围棋介绍文章《围棋急速入门》,有兴趣可以看看。

或者包含tex源文件和asy矢量图脚本的完整文档,可以fork。
https://github.com/nixzhu/rushGo

maids in dubai 说:
2021年9月08日 16:40

Youngster care alternatives are beyond any doubt - nanny, manny (any male nanny), babysitter, au couple, baby registered nurse, governess, evening care, youngster care revealing, mother's associate, and relatives and buddies. But, frequently, the selection is among hiring any babysitter or even a nanny.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter