View Code? Open in Web Editor
NEW
Connect four game AI algorithm using game tree search and rule based.
connect-four's Introduction
- connect four 게임을 플레이하는 프로그램입니다.
- Game tree search algorithm와 Rule based을 이용한 AI를 구현하였습니다.
- Mini-Max algorithm
- Alpha-Beta pruning
- Partial tree
- Heuristic function
- Iterative deepening
- Dynamic programming
- 사용자가 번갈아가며 진행합니다. 선공은 'O', 후공은 'X'로 표시됩니다.
- 원하는 column number를 고르면 board에 표시가 됩니다.
- 언어 : Python 3.7.3
- OS : Mac OS, Windows 10 등
- play.py : connect four 게임을 플레이하기 위해 기본적으로 실행하는 파일입니다.
- board.py : connect four 게임을 하기 위해 board에서 이루어지는 기능들을 구현한 파일입니다.
- heuristic.py : heuristic value를 계산하는 파일입니다.
- gameTree.py : connect four에서 최적의 수를 두기 위한 game tree를 구현한 파일입니다.
- rule.py : rule based 방식에 사용되는 rule들을 구현한 파일입니다.
connect-four's People
Contributors
Watchers