This is my final project for Introduction to Artificial Intelligence at FAMU-FSU College of Engineering (Summer 2021 - Dr. Jerris Hooker). Click the columns where you would like to place your disc. Human is red and the AI is yellow. The AI uses the greedy algorithm, so it is not perfect. It will sometimes inadvertently give the human a winning move, so there is a small chance that the AI will give out a free win. The optimal way to code a Connect 4 AI is with the minimax algorithm, which you can see in action here.
引用格式
Kelvin Hamilton (2024). Connect 4 (https://www.mathworks.com/matlabcentral/fileexchange/96758-connect-4), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2021a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |