Skip to content

kawagh/shogi-tools

Repository files navigation

shogi-tools

A tool to write shogi-board .svg file from .kif file.

example.mp4
board = Board(grid=initialize_grid())
moves = [
    parse_move("7六歩(77)"),
    parse_move("3四歩(33)"),
    parse_move("2二角成(88)"),
]
for move in moves:
    board.process_move(move)
with open("board.svg", "w") as f:
    write_svg(f, board)
subprocess.run(["eog", "board.svg"])

run

poetry run python kif_parser.py -f <kif_file>

run tests

poetry run pytest

generate mp4

poetry run python sfen2svg.py
./convert.sh
./png2mp4.sh

About

.kif file visualizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published