Skip to content

实现中国象棋下棋功能,按照象棋规则下棋,然后让双方按照象棋规则随机走棋,能吃子则吃子,直到一方获胜为止。

Notifications You must be signed in to change notification settings

horse007666/Chinese-chess-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

中国象棋AI程序

项目功能

提供中国象棋的下棋界面,界面简洁且易实现。 对战双方为红黑两方,界面提供棋盘以及棋子。 运行程序后可以让双方AI按照象棋规则走棋, 直到两边某一方获胜为止,游戏结束。 该界面如图所示:

嗯,就是这样的~

运行程序

该项目基于python实现,只要你安装了python就可以运行该项目了。 在命令行中输入以下命令即可运行该程序(一行一行运行):

git clone  https://github.com/horse007666/Chinese-chess-python.git
cd Chinese-chess-python
python chess.py 

然后你就能看到双方AI按照规则走棋了。

About

实现中国象棋下棋功能,按照象棋规则下棋,然后让双方按照象棋规则随机走棋,能吃子则吃子,直到一方获胜为止。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages