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.
-
Notifications
You must be signed in to change notification settings - Fork 6
sachinparyani/Minimax-Connect-4
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published