Connect Four

Game Options Game Speed
Rows Columns Winning Length
Players

About

This project started as an assignment question for a university class. It is the classic game of Connect Four, with an AI opponent that uses some interesting methods to play. Give it a try and see if you can win!

Details

How it works

The AI opponent has 10 difficulties (1 - 10). The difficulty is how many moves it is allowed to 'look ahead' while searching for the best move. So if the difficulty is set to 4, the AI will look at all of the possible states the game could be in after 4 more turns have been played. Each possible move that the AI can make is assigned a score, based on how 'good' it thinks that move is. The move with the highest score is the one that the AI will choose.

For source code, visit the github page for this project.