Connect Four

버전 1.1.0.0 (5.23 KB) 작성자: Mathias Benedek
The classic game connect four can be played on a 7x7 board against a computer-opponent at 3 levels.
다운로드 수: 1.3K
업데이트 날짜: 2011/10/21

라이선스 보기

Start game by entering: connect4_start

The game is played by two players each of which can be human or computer. You can choose between 3 levels corresponding to the depth of evaluation by the program. The program plays far from optimal but it may still be challenging to some casual players.

The program uses a minimax algorithm and employs a brute-force search of the search tree. Evaluation of positions follows the simple tactic of maximizing the weighted amount of same-color pieces in empty arrays of 4.
The actual depth of search (usually 2-3) corresponds to the depth reached after computing a predefined minimum number of available moves. Despite the usage of only one simple tactic the program appears to show some reasonable or even intelligent behavior.

At each move, the figure title gives information on the round-nr, computed depth, nr of computed moves, assessment of current position, and
evaluation of the best-possible position at computed depth. Positive/negative values indicate an assumed advantage for player 1/2.

인용 양식

Mathias Benedek (2024). Connect Four (https://www.mathworks.com/matlabcentral/fileexchange/33187-connect-four), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Board games에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Program description (help) updated

1.0.0.0