ChineseChess library
Project description
# cchess
cchess是一个Python版的中国象棋库,主要功能如下:
#1.棋盘显示
#2.走子(内部格式), 中文显示
#3.走子(ICCS纵线格式),中文显示
#4.走子(中文格式,尚待完善),中文显示
#5.产生某个棋子的合法走子
#6.产生所有合法走子
#6.将军检测
#7,将死对方检测
#8.走子被将军检测
#9.被对方将死检测
#10.读取xqf文件, 显示棋谱
以上参见demo/demo_base.py
#11.加载引擎进行对弈
参见examples/end_game.py
cchess库使用pytest进行单元测试,使用pytest-cov进行覆盖检查,目标实现100%覆盖(目前还未完成)。
测试执行:pytest -v –cov=cchess .tests
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cchess-0.6.tar.gz
(573.2 kB
view hashes)
Built Distribution
cchess-0.6-py3-none-any.whl
(36.2 kB
view hashes)