Skip to content

Simple AI for the game Connect-4 that makes use of the mini-max algorithm

Notifications You must be signed in to change notification settings

sachinparyani/Minimax-Connect-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Minimax-Connect-4

This is a simple implementation of the mini-max AI algorithm in the form of a 2 player(1v1) game called connect-4 (https://en.wikipedia.org/wiki/Connect_Four). Just run the java source file and enter the depth. Depth should be a small positive integer. Large depth ( >5) would mean that the algorithm is finer but the time taken by the computer would also be high. After entering the depth, the computer will play it's first turn. When it's your turn, enter a value between 0 and 6 ( both inclusive) because the width of the grid is 7( can be customized ). The program exits when a player wins.

About

Simple AI for the game Connect-4 that makes use of the mini-max algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages