Skip to content

This program takes an input image of a connect four board, uses the OpenCV computer vision library to calculate the positions of all the pieces in the board and their positions, and then uses minimax to approximate the optimal move for the player.

Notifications You must be signed in to change notification settings

ScottBouloutian/OpenCV-Connect-Four-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV-Connect-Four-AI

This program takes an input image of a connect four board, uses the OpenCV computer vision library to calculate the positions of all the pieces in the board and their positions, and then uses minimax to approximate the optimal move for the player.

This project requires OpenCV as a dependency. The following project includes a script which can be used to install OpenCV on Ubuntu. https://github.com/sgjava/install-opencv

Optionally specify a custom image path: gradle run -PimagePath=/build/resources/main/connect_four.jpg

About

This program takes an input image of a connect four board, uses the OpenCV computer vision library to calculate the positions of all the pieces in the board and their positions, and then uses minimax to approximate the optimal move for the player.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published