Connect-4 is a very simple game to learn. It is played on a 8 X 8 board (actually should be 7 x 6 but in this project we changed it to 8 X 8) and, the goal is to get four consecutive cells either horizontally, vertically or diagonally. The first player to get four consecutive cells wins. It has been proven that there is an optimal strategy for this game i.e.
In this project, we worked on implementing a player that uses a minimax with alpha-beta pruning and a heuristic model using Java and Swing.
*please copy the pictures in the C drive or change the path in the code
Follow Connect 4 AI
Other Useful Business Software
Enterprise-grade ITSM, for every business
Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Connect 4 AI!