gunyarakun / python-shogi

A pure Python shogi library with move generation and validation and handling of common formats.
GNU General Public License v3.0
179 stars 43 forks source link

kif.exporter.kif() and kif parse.parsefile() win result is not same #61

Closed sugizo closed 1 year ago

sugizo commented 1 year ago

tested on google colab, using the steps mention on pypi.

as you can see in this image below, the exporter written, win : b

but

when save it into file and parse again, the win result is different, win : w

image

best regards

gunyarakun commented 1 year ago

@sugizo Thank you for your report. An example code in README.rst was wrong, the win must be w in that case. I added a test case to check the inconsistency in the pull request #63. The sample code you wrote will raise an exception in the new version.