chess-board-0.3.1


توضیحات

A python chessboard library for representing game positions.
ویژگی مقدار
سیستم عامل -
نام فایل chess-board-0.3.1
نام chess-board
نسخه کتابخانه 0.3.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ahira Adefokun
ایمیل نویسنده justiceahira@gmail.com
آدرس صفحه اصلی https://github.com/ahira-justice/chess-board
آدرس اینترنتی https://pypi.org/project/chess-board/
مجوز GPLv3
# chess-board ## What is chess-board? chess-board is a Python chessboard package with a flexible "just a board" API for graphically representing game positions. ## What chess-board is **not** - A chess engine - A legal move validator - A PGN parser While chess-board is designed to work well with any of these, the idea behind chess-board is that the logic that controls the board should be independent of those other problems. ## Entry Points ```sh from chessboard import display valid_fen = 'rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2' # Initialization game_board = display.start() # Position change/update display.update(valid_fen, game_board) # Checking GUI window for QUIT event. (Esc or GUI CANCEL) display.check_for_quit() # Close window display.terminate() ``` ## Usage **test.py** - _example_ ```sh from chessboard import display valid_fen = 'rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2' game_board = display.start() while True: display.check_for_quit() display.update(valid_fen, game_board) display.terminate() ``` ## Installation Download and install the latest release: ```sh # install into virtualenv source env/bin/activate pip install chess-board or # install with pipenv pipenv install chess-board or # install system-wide pip install chess-board ``` Alternatively, you could **git clone** this repo and add the directory to your package. ```sh git clone https://github.com/ahira-justice/chess-board.git ``` ## Dependencies ```sh pygame==2.1.2 ``` **chess-board** installation automatically installs latest **pygame** version. ## License [GNU GENERAL PUBLIC LICENSE](LICENSE)


نیازمندی

مقدار نام
- pygame


زبان مورد نیاز

مقدار نام
>=3.6.0 Python


نحوه نصب


نصب پکیج whl chess-board-0.3.1:

    pip install chess-board-0.3.1.whl


نصب پکیج tar.gz chess-board-0.3.1:

    pip install chess-board-0.3.1.tar.gz