About Connect 4
Connect Four is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.
We are playing against an AI that calculates all the possibilities to win against us.
The Player makes the first move. We give an input which will add a DOT (we are playing as the red dot) to the table.
_ - Empty Space
R - Red Dot
Y - Yellow Dot
Then AI will also join the game by adding a YELLOW dot.
We keep adding dots until someone connects four dots in a line and wins the game. As we can see, the winner of this round is the AI. (we have 4xY dots in a line)