Skip to content

Connect 4 game with Python and Pygame

License

Notifications You must be signed in to change notification settings

fuji37450/Connect4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect4

Connect 4 game with Python and Pygame

Requirement

pip install pygame

How To Play

玩家為先手(紅),電腦為後手(藍)

按下鍵盤 1~7 或直接用滑鼠點選可選擇要下的 column

先獲得四子連線的玩家獲勝

Technique Used

  • 採用 minimax algorithm 搭配審局函數來判定下一步的走法
  • 優化搜尋
    • alpha-beta pruning
    • exploration 時優先 travel 較好的盤面

About

Connect 4 game with Python and Pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%