Skip to content

Convert a kifu file into an animated gif, for easy sharing

License

Notifications You must be signed in to change notification settings

sokah2412/shogi-gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shogi-gif

Convert a kifu file into an animated gif, for easy sharing

Usage

Because of the early stage of this project, you can only convert kifu files with extention .kifu into an animated gif. In addition, as long as python-shogi do not fix its KIF parser (PR waiting), you cannot import kifu from 81dojo, because it inserts multiple space between move number and move coordinate. Though, you can remove them by hand to made it works.

usage: kg-converter.py [-h] [-r RESCALE] kifu_file gif_name

Create a GIF animation from a kifu file.

positional arguments:
  kifu_file             Kifu file to transform, must have '.kifu' extension
  gif_name          Produced gif name

optional arguments:
  -h, --help            show this help message and exit
  -r RESCALE, --rescale RESCALE
                        Size factor to rescale gif (default: 0.5 to minimize RAM usage)

Example

Game played 5th december 2020, by 羽生善治 九段 VS 豊島将之 竜王.

pro game gif

About

Convert a kifu file into an animated gif, for easy sharing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages