Python-chess: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
Line 15: Line 15:
* [https://lichess.org/editor/8/8/8/8/8/8/8/8_w_-_-_0_1 8/8/8/8/8/8/8/8] empty board
* [https://lichess.org/editor/8/8/8/8/8/8/8/8_w_-_-_0_1 8/8/8/8/8/8/8/8] empty board


Given a FEN you can continue playing from that position.
Given a FEN you can continue playing from that position. E.g given
[https://lichess.org/editor/8/5k2/8/5K1P/8/8/8/8_w_-_-_0_1 8/5k2/8/5K1P/8/8/8/8]


Example:
a game might continue as:
<html>
<html>
<iframe src="https://lichess.org/embed/XynYr4v1?theme=auto&bg=auto"
<iframe src="https://lichess.org/embed/XynYr4v1?theme=auto&bg=auto"

Revision as of 06:24, 27 December 2019

Click here to comment see PlayChessWithAWebCam

python-chess is a pure Python chess library with move generation, move validation and support for common formats. It is open sourced at https://github.com/niklasf/python-chess

Request for more detailed documentation

Documentation

Glossary

FEN Forsyth–Edwards Notation

The Forsyth–Edwards Notation describes a board position.

Examples:

Given a FEN you can continue playing from that position. E.g given 8/5k2/8/5K1P/8/8/8/8

a game might continue as: