ConnectFour solver
This is a program that can predict a best move in ConnectFour game using Alpha-Beta pruning MiniMax algorithm.
row0,row1,row2,row3,row4,row5indicates starting position, each row with 7 characters could be eitherr,yor.to represent a red, yellow or empty token.redoryellowrepresents the starting player- For example, if the program is given the following arguments:
java ConnectFour .ryyrry,.rryry.,..y.r..,..y....,.......,....... red A 4. Then this would be built into the game board below, indicating that it is red’s turn to play, and the algorithm should use alpha‐beta pruning with a maximum search depth of 4.
- The program will print out the board and suggest the best move for the current player.
- Player should input number between [0, 6] to play.
