Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,21 @@ Features
+---------------------------+
先手の持駒: 銀

* Render board as SVG.

.. code:: python

>>> print(board.svg())
<svg>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if we could embed a real image generated by the command board.svg().
But I know it's not easy.

...
</svg>
>>> with open('board.svg', 'w') as tfile:
... print >> tfile, board.svg() # python 2.7
... print(board.svg(), file=tfile) # python 3+

.. image:: data/images/board.svg
:align: center

* Detects checkmates, stalemates.

.. code:: python
Expand Down
Loading