Skip to content

HelinXu/ChinesePokerPlayer

Repository files navigation

AI Project 1: Chinese Poker

Author: HelinXu

image-20211105140356503

Requirements

  • macOS Big Sur 11.5.2
  • python 3.7.10
  • tk 8.6.10
  • pillow 8.3.2
  • numpy 1.20.2

File organization

.
├── bfs_play.py # 宽度优先搜索算法实现,但是效率过低。
├── card_game.py # 动态规划算法实现。
├── contest.py # 选做:模拟一对一对打。
├── dfs_play.py # 第一问:深度优先搜索算法实现。
├── dfs_play_2.py # 第二问:深度优先搜索算法实现。
├── play.py # 界面:运行此程序以可视化。
├── readme.md
└── resource # 扑克牌png
    └── pokers

Usage

To run UI:

cd source
python play.py

You should see UI within seconds.

To test 1.1 and 1.2 separately:

python dfs_play.py -n NUM_OF_CARDS
python dfs_play_2.py -n NUM_OF_CARDS

About

Chinese Poker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages