gunyarakun / python-shogi

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

nice to have svg or png support #65

Open sugizo opened 1 year ago

sugizo commented 1 year ago

nice to have svg or png support

when execute print(board), it will show the ASCII, like python-shogi already have print(board)

result

 l  n  s  g  k  g  s  n  l
 .  r  .  .  .  .  .  b  .
 p  p  p  p  p  p  p  p  p
 .  .  .  .  .  .  .  .  .
 .  .  .  .  .  .  .  .  .
 .  .  .  .  .  .  .  .  .
 P  P  P  P  P  P  P  P  P
 .  B  .  .  .  .  .  R  .
 L  N  S  G  K  G  S  N  L

when execute board

result Board('lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1')

expected result like in python-chess, when execute board it will get svg or png draw

best regards

gunyarakun commented 1 year ago

ref.) #36